Function at 0x40d790
Capabilities:
Connect to http server
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x42b8a7
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x437050]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437050]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4b0]
mov ebp, dword [esp + 0x4ac]
push 0x42f176
xor edi, edi
mov esi, ecx
mov dword [esp + 0x38], eax
mov ebx, edx
mov dword [ebp], 0x194
call fcn.0040ea10
mov eax, dword [esp + 0x4b4]
mov ecx, dword [esp + 0x4a8]
push eax
push ecx
push esi
lea edx, [esp + 0x2c]
call fcn.0040c880
mov dword [esp + 0x4a0], edi
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
mov dword [esp + 0x38], str.text_
mov dword [esp + 0x3c], edi
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x4a0], 1
mov edx, dword [0x43832c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43832c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4ac], 2
call fcn.0040d610
test al, al
jne 0x40d8fd
mov byte [esp + 0x4a0], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4a0], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4a0], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40db9e
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x4c]
push edi
push edi
push 3
push edi
push edi
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x2c], ebx
je 0x40d87b
mov edx, dword [esp + 0x30]
push edi
push edi
lea ecx, [esp + 0x40]
push ecx
push edi
push str.HTTP_1.1
push edx
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, edi
jne 0x40d955
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40d87b
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
lea ecx, [esp + 0x28]
push ecx
push 0x400
lea edx, [esp + 0x9c]
mov byte [esp + 0x4a8], 3
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
push edx
push esi
mov dword [esp + 0x38], edi
call ebx
test eax, eax
je 0x40d9da
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40d9da
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x64]
call fcn.00406ff0
lea ecx, [esp + 0x28]
push ecx
push 0x400
lea edx, [esp + 0x9c]
push edx
push esi
mov dword [esp + 0x38], edi
call ebx
test eax, eax
jne 0x40d9a3
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
cmp dword [esp + 0x70], 3
lea ecx, [esp + 0x5c]
jae 0x40d9ff
call fcn.00405c30
jmp 0x40d87b
push ecx
lea ebx, [esp + 0x1c]
mov byte [esp + 0x1c], 0x20
call fcn.0040e6a0
mov edi, eax
cmp edi, dword [esp + 0x70]
jae 0x40dae4
cmp edi, 3
mov eax, 3
ja 0x40da26
mov eax, edi
push eax
xor ecx, ecx
lea esi, [esp + 0x44]
lea edx, [esp + 0x60]
call fcn.0040e410
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x40da45
mov eax, dword [eax + 4]
jmp 0x40da48
add eax, 4
push eax
call fcn.0041bed6
add esp, 4
lea ecx, [esp + 0x40]
mov dword [ebp], eax
call fcn.00405c30
push 0xffffffffffffffff
lea ecx, [edi + 1]
lea esi, [esp + 0x7c]
lea edx, [esp + 0x60]
call fcn.0040e410
mov byte [esp + 0x4a0], 4
mov eax, dword [esp + 0x8c]
test eax, eax
mov esi, eax
jbe 0x40dac4
lea edi, [eax - 1]
lea eax, [esp + 0x78]
call fcn.0040e3b0
cmp byte [eax], 0xa
jne 0x40daa2
mov esi, edi
mov eax, esi
lea ecx, [esp + 0x78]
call fcn.0040e3e0
test esi, esi
jbe 0x40dac4
add esi, 0xffffffff
mov edi, esi
lea eax, [esp + 0x78]
call fcn.0040e3b0
cmp byte [eax], 0xd
jne 0x40dac4
mov eax, esi
lea ecx, [esp + 0x78]
call fcn.0040e3e0
cmp dword [esp + 0x90], ebx
mov edx, dword [esp + 0x7c]
jae 0x40dad5
lea edx, [esp + 0x7c]
mov ebx, dword [esp + 0x34]
call fcn.0040e2b0
lea ecx, [esp + 0x78]
jmp 0x40db13
push 3
xor ecx, ecx
lea esi, [esp + 0x44]
lea edx, [esp + 0x60]
call fcn.0040e410
cmp dword [eax + 0x18], 0x10
jb 0x40db00
mov eax, dword [eax + 4]
jmp 0x40db03
add eax, 4
push eax
call fcn.0041bed6
add esp, 4
mov dword [ebp], eax
lea ecx, [esp + 0x40]
call fcn.00405c30
lea ecx, [esp + 0x5c]
call fcn.00405c30
mov byte [esp + 0x4a0], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40db49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4a0], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4a0], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.0041a2d1
add esp, 0x490
ret 0x10