Function at 0x1004356c
Capabilities:
Connect to http server
Create http request
Download and write a file
Get common file path
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a2c
call fcn.100906a0
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x2a14], eax
mov edi, edx
xor eax, eax
mov dword [ebp - 0x2a10], ecx
push 0x103
push eax
mov dword [ebp - 0x2a28], eax
mov esi, eax
mov byte [ebp - 0x20c], al
lea eax, [ebp - 0x20b]
push eax
mov dword [ebp - 0x2a24], ebx
mov dword [ebp - 0x2a2c], 0x100cad34
call fcn.10090560
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push esi
push eax
call fcn.10090560
add esp, 0x18
test ebx, ebx
je 0x10043641
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
xor ebx, ebx
push eax
push ebx
push 0x100cad6c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
push ebx
push 2
push ebx
push 1
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10043643
xor eax, eax
jmp 0x100437b5
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
push 1
push ebx
push 3
mov ebx, 0x100bc7cc
mov dword [ebp - 0x2a20], eax
push ebx
push ebx
push edi
push dword [ebp - 0x2a10]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
push 1
push 0x4000000
lea ecx, [ebp - 0x2a2c]
mov dword [ebp - 0x2a1c], eax
push ecx
push 0
push 0x100cadb8
push dword [ebp - 0x2a14]
push 0x100cadf0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push ebx
mov edi, eax
mov ebx, 0x100cad38
push ebx
mov dword [ebp - 0x2a10], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, eax
test esi, esi
je 0x10043795
xor eax, eax
push 0x2800
push eax
mov dword [ebp - 0x2a18], eax
mov dword [ebp - 0x2a14], eax
lea eax, [ebp - 0x2a0c]
push eax
call fcn.10090560
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
lea eax, [ebp - 0x2a18]
push eax
push 0x27ff
lea eax, [ebp - 0x2a0c]
push eax
push dword [ebp - 0x2a10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10043766
mov eax, dword [ebp - 0x2a18]
test eax, eax
je 0x10043766
cmp eax, 0x2800
jae 0x100437c6
push 0
lea ecx, [ebp - 0x2a14]
mov byte [ebp + eax - 0x2a0c], 0
push ecx
push eax
lea eax, [ebp - 0x2a0c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10043759
mov eax, dword [ebp - 0x2a14]
cmp eax, dword [ebp - 0x2a18]
je 0x10043760
push esi
call ebx
xor esi, esi
xor edi, edi
test esi, esi
jne 0x100436ef
jmp 0x10043795
test esi, esi
je 0x10043795
push esi
call ebx
test edi, edi
je 0x10043795
lea eax, [ebp - 0x108]
push eax
push 0x100bc944
push 0x103
push 0x104
push dword [ebp - 0x2a24]
call fcn.1008bac3
add esp, 0x14
push dword [ebp - 0x2a10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x2a1c]
call esi
push dword [ebp - 0x2a20]
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret
call fcn.1008c5ac
int3