Function at 0x4037a0
Capabilities:
Check http status code
Connect to http server
Get http content length
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x411024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c0], eax
cmp dword [edi], 0
je 0x403bc0
push 0x3c
lea eax, [ebp - 0x228]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, esi
mov dword [ebp - 0x228], 0x3c
add esp, 0xc
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x1f8], 1
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403810
lea eax, [ebp - 0x228]
sub ecx, edx
push eax
push 0
sar ecx, 1
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x403bc0
mov eax, dword [ebp - 0x214]
cmp eax, 0x7ffffffe
jbe 0x403850
xor ecx, ecx
mov word [ebp - 0x198], cx
jmp 0x403869
push eax
push dword [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x198]
call fcn.00403050
mov eax, dword [ebp - 0x214]
add eax, eax
cmp eax, 0x190
jae 0x403bd5
mov ebx, dword [ebp - 0x1fc]
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov word [ebp + eax - 0x198], cx
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], 2
call esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x1ac], eax
call esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x1a8], eax
call esi
cmp dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a4], eax
je 0x403bb5
cmp dword [ebp - 0x1a8], 0
je 0x403bb5
test eax, eax
je 0x403bb5
lea eax, [ebp - 0x1b4]
push eax
push 0x4000000
push 3
push 0x40b4cc
push 0x40b4cc
push dword [ebp - 0x210]
lea eax, [ebp - 0x198]
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1b4], eax
test eax, eax
jne 0x40396a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403bb5
push 0xffffffffffffffff
push dword [ebp - 0x1ac]
call esi
mov eax, dword [ebp - 0x1b4]
test eax, eax
je 0x403bc0
lea ecx, [ebp - 0x1b4]
mov dword [ebp - 0x1a0], 3
push ecx
push 0x84000000
push 0
push 0
push 0
push ebx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1b0], eax
test eax, eax
jne 0x4039c3
call ebx
cmp eax, 0x3e5
jne 0x403bb5
push 0x1770
push dword [ebp - 0x1ac]
call esi
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x1a0], 4
test eax, eax
je 0x403bc0
push dword [ebp + 0x10]
push dword [ebp - 0x1bc]
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4039fa
call ebx
cmp eax, 0x3e5
jne 0x403bb5
push 0xffffffffffffffff
push dword [ebp - 0x1a4]
call esi
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp - 0x1c0]
dec eax
mov dword [ebp - 0x19c], 0
mov esi, eax
mov dword [ebp - 0x1bc], eax
xor eax, eax
mov dword [ebp - 0x1ec], 0x28
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x1d4]
push eax
push esi
push edi
push dword [ebp - 0x1b0]
mov dword [ebp - 0x1d8], edi
mov dword [ebp - 0x1d4], esi
mov dword [ebp - 0x1a0], 5
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403aa0
call ebx
cmp eax, 0x3e5
jne 0x403bb5
push 0xffffffffffffffff
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x19c], 0
mov eax, dword [ebp - 0x1d4]
jne 0x403b59
test eax, eax
je 0x403b59
push 0
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], 4
push eax
lea eax, [ebp - 0x1c4]
push eax
push 0x20000013
push dword [ebp - 0x1b0]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x403bb5
mov eax, dword [ebp - 0x1c4]
cmp eax, 0xc8
jb 0x403bb5
cmp eax, 0x12b
ja 0x403bb5
push 0
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], 4
push eax
lea eax, [ebp - 0x19c]
push eax
push 0x20000005
push dword [ebp - 0x1b0]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x403bb5
mov eax, dword [ebp - 0x19c]
cmp dword [ebp + 0x18], eax
cmovl eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x1d4]
add edi, eax
sub esi, eax
test eax, eax
je 0x403b77
test esi, esi
je 0x403b77
cmp dword [ebp - 0x1a0], 0x10000
jne 0x403a20
jmp 0x403b81
mov dword [ebp - 0x1a0], 0x10000
lea ecx, [ebp - 0x1b4]
call fcn.00403be0
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x1c0]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x19c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004097bf
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [ebp - 0x1b4]
call fcn.00403be0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004097bf
mov esp, ebp
pop ebp
ret 0x18
call fcn.00409cc6
int3