Function at 0x43a037
Capabilities:
Connect to http server
Create http request
Download and write a file
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
sub esp, 0x568
mov eax, dword [0x4a0d38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x55c], eax
push 7
pop eax
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x528], eax
xor eax, eax
mov word [ebp - 0x53c], ax
lea eax, [ebp - 0x53e]
push eax
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x520]
xor ebx, ebx
push eax
xor edx, edx
push ecx
mov dword [ebp - 0x568], edi
mov byte [ebp - 0x53d], bl
mov byte [ebp - 0x53e], bl
mov dword [ebp - 0x510], ebx
mov word [ebp - 0x520], dx
mov dword [ebp - 0x52c], ebx
call fcn.00439f37
add esp, 0x10
cmp dword [ebp - 0x510], ebx
jne 0x43a0fd
mov byte [ebp - 0x53d], bl
push ebx
push 1
lea ecx, [ebp - 0x53c]
call fcn.0040363d
push ebx
push 1
lea ecx, [ebp - 0x520]
call fcn.0040363d
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x53d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a7da
leave
ret
mov dword [ebp - 0x544], ebx
cmp esi, ebx
jne 0x43a10c
mov esi, 0x477818
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x548], eax
cmp eax, ebx
je 0x43a38f
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x558]
push ecx
push 5
push eax
mov dword [ebp - 0x558], 0x7530
call esi
push 4
lea eax, [ebp - 0x558]
push eax
push 6
push dword [ebp - 0x548]
call esi
cmp dword [ebp - 0x50c], 8
mov ecx, dword [ebp - 0x520]
jae 0x43a16b
lea ecx, [ebp - 0x520]
push ebx
push ebx
push 3
mov eax, 0x488b44
push eax
push eax
push 0x50
push ecx
push dword [ebp - 0x548]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x54c], eax
cmp eax, ebx
je 0x43a361
cmp dword [ebp - 0x528], 8
mov eax, dword [ebp - 0x53c]
jae 0x43a1a8
lea eax, [ebp - 0x53c]
push ebx
push 0x84280000
push ebx
push ebx
push ebx
push eax
push 0x477810
push dword [ebp - 0x54c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x544], eax
cmp eax, ebx
je 0x43a361
mov byte [ebp - 0x53e], bl
cmp dword [ebp + 0x14], ebx
jle 0x43a234
push 0x3ff
lea eax, [ebp - 0x503]
push ebx
push eax
mov byte [ebp - 0x504], bl
call fcn.0044bcb0
push dword [ebp + 0x14]
lea eax, [ebp - 0x504]
push 0x4777fc
push 0x400
push eax
call fcn.0044bb8f
add esp, 0x1c
push 0x10000000
push eax
lea eax, [ebp - 0x504]
push eax
push dword [ebp - 0x544]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x43a234
mov byte [ebp - 0x53e], 1
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x544]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x43a361
push 0xff
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.0044bcb0
add esp, 0xc
push ebx
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x13
push dword [ebp - 0x544]
mov dword [ebp - 0x560], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x43a361
lea eax, [ebp - 0x104]
push eax
call fcn.0044baaa
sub eax, 0xc8
pop ecx
je 0x43a2c8
sub eax, 6
jne 0x43a361
cmp byte [ebp - 0x53e], bl
je 0x43a2c8
push ebx
push ebx
push eax
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov esi, 0x10000
push esi
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x550], ebx
call fcn.0044a56c
pop ecx
mov edi, eax
mov eax, dword [ebp - 0x554]
cmp eax, ebx
jbe 0x43a32e
add dword [ebp - 0x550], eax
push ebx
lea ecx, [ebp - 0x564]
push ecx
push eax
push edi
push dword [ebp - 0x568]
mov dword [ebp - 0x564], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x55c], ebx
je 0x43a32e
push dword [ebp + 0x10]
push dword [ebp - 0x550]
push dword [ebp + 0x20]
push dword [ebp - 0x55c]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x554]
push eax
push esi
push edi
push dword [ebp - 0x544]
call dword [sym.imp.WININET.dll_InternetReadFile]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 0x53d], al
je 0x43a35a
cmp dword [ebp - 0x554], ebx
jne 0x43a2e2
push edi
call fcn.0044ba70
pop ecx
push dword [ebp - 0x548]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
cmp dword [ebp - 0x54c], ebx
je 0x43a37f
push dword [ebp - 0x54c]
call esi
cmp dword [ebp - 0x544], ebx
je 0x43a38f
push dword [ebp - 0x544]
call esi
mov al, byte [ebp - 0x53d]
mov byte [ebp - 0x53d], al
jmp 0x43a0cc