Function at 0x40c380
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x48be61
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.00417780
mov eax, dword [0x4c0c08]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c0c08]
xor eax, esp
push eax
lea eax, [esp + 0x103c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1054]
mov esi, ecx
mov dword [esp + 0x2c], edi
push 0x48d72a
lea ecx, [esp + 0x18]
mov dword [esp + 0x1048], 1
call fcn.00401e30
xor ebp, ebp
mov dword [edi + 4], ebp
mov eax, dword [esi + 0xc]
cmp eax, ebp
mov byte [esp + 0x1044], 2
jle 0x40c4f1
mov bl, 4
nop
mov eax, dword [esp + 0x14]
push 0x48d72a
push eax
call fcn.004186b0
add esp, 8
test eax, eax
setne al
test al, al
je 0x40c42b
push 1
push 0x48d940
lea ecx, [esp + 0x1c]
call fcn.00403e30
test ebp, ebp
jl 0x40c5d0
cmp ebp, dword [esi + 0xc]
jge 0x40c5d0
mov eax, dword [esi + 8]
lea edi, [ebp*4]
add eax, edi
push 0x48d93c
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040c2a0
add esp, 0xc
cmp ebp, dword [esi + 0x20]
mov byte [esp + 0x1044], 3
jge 0x40c5d0
mov ecx, dword [esi + 0x1c]
add ecx, edi
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00404980
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x104c], bl
call fcn.00403e30
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c4bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c4e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebp
cmp ebp, dword [esi + 0xc]
jl 0x40c400
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
inc eax
push eax
call fcn.0040ca7f
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov edx, esi
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40c510
push 0
push 0
push 0
push 0
push str.WEBPOST_AGENT
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x40c5d5
test esi, esi
je 0x40c548
push esi
call fcn.0040ca74
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c570
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x104c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1044], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c59b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1050]
add eax, 0xfffffff0
mov dword [esp + 0x1044], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40c897
call fcn.0040cd16
mov ecx, dword [esp + 0x104c]
push 1
push 0
push 3
push 0
push 0
push 0x50
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x40c606
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40c53b
mov ecx, dword [esp + 0x1050]
push 1
push 0x4000100
push 0x4c0118
push 0
push 0
push ecx
push str.POST
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
jne 0x40c645
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push ebp
call edi
jmp 0x40c53b
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c650
sub eax, edx
mov edx, eax
mov eax, str.Content_Type:_application_x_www_form_urlencoded
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c663
push edx
push esi
sub eax, ebx
push eax
push str.Content_Type:_application_x_www_form_urlencoded
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
xor ebx, ebx
cmp eax, ebx
je 0x40c7f1
xor ebp, ebp
push 0x1001
lea ecx, [esp + 0x38]
push ebp
push ecx
mov dword [esp + 0x34], ebx
xor esi, esi
xor edi, edi
mov dword [esp + 0x24], ebp
call fcn.00417700
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0x1000
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40c790
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40c6e0
cmp dword [esp + 0x28], eax
je 0x40c790
dec dword [esp + 0x28]
jmp 0x40c742
cmp eax, 0x1000
ja 0x40c782
add esi, eax
test edi, edi
je 0x40c6fa
push edi
call fcn.0040ca74
add esp, 4
push esi
call fcn.0040ca7f
push ebx
mov edi, eax
push ebp
push edi
call fcn.004177b0
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [edi + ebx]
push ecx
call fcn.004177b0
add esp, 0x1c
test ebp, ebp
je 0x40c72d
push ebp
call fcn.0040ca74
add esp, 4
push esi
call fcn.0040ca7f
push esi
mov ebp, eax
push edi
push ebp
call fcn.004177b0
add esp, 0x10
mov ebx, esi
push 0x1001
lea edx, [esp + 0x38]
push 0
push edx
mov dword [esp + 0x24], 0
call fcn.00417700
mov edx, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40c6c8
jmp 0x40c790
push eax
push str.InternetReadFile_returns_wrong_read_count.__return___d_
call fcn.004171eb
add esp, 8
push esi
call fcn.0040ca7f
mov ebx, dword [esp + 0x30]
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
jne 0x40c7af
push ebx
call fcn.0040ca74
add esp, 4
jmp 0x40c7bd
push esi
push 0
push eax
mov dword [ebx], esi
call fcn.00417700
add esp, 0xc
mov eax, dword [ebx + 4]
push esi
push edi
push eax
call fcn.004177b0
add esp, 0xc
test edi, edi
je 0x40c7d8
push edi
call fcn.0040ca74
add esp, 4
test ebp, ebp
je 0x40c7e5
push ebp
call fcn.0040ca74
add esp, 4
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test esi, esi
je 0x40c7fe
push esi
call fcn.0040ca74
add esp, 4
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebp
call esi
mov ecx, dword [esp + 0x30]
push ecx
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c839
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x104c]
add eax, 0xfffffff0
mov byte [esp + 0x1044], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1050]
add eax, 0xfffffff0
mov dword [esp + 0x1044], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c892
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x103c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.004176e9
add esp, 0x1034
ret 0xc