Function at 0x4032f0
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, 0x638
mov eax, dword [0x411024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5cc], eax
xor eax, eax
cmp dword [ecx], 0
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x5b8], eax
mov dword [ebp - 0x5b4], eax
mov dword [ebp - 0x5b0], eax
mov dword [ebp - 0x5ac], eax
mov dword [ebp - 0x5a8], eax
mov eax, dword [0x40b724]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x40b728]
push edi
mov dword [ebp - 0x5c4], ecx
mov dword [ebp - 0x5bc], 0
mov dword [ebp - 0xc], eax
je 0x4037a2
push 0x3c
lea eax, [ebp - 0x638]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, esi
mov dword [ebp - 0x638], 0x3c
add esp, 0xc
mov dword [ebp - 0x624], 1
mov dword [ebp - 0x608], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403394
lea eax, [ebp - 0x638]
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 0x4037a2
mov eax, dword [ebp - 0x624]
cmp eax, 0x7ffffffe
jbe 0x4033d4
xor ecx, ecx
mov word [ebp - 0x1a4], cx
jmp 0x4033ed
push eax
push dword [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x1a4]
call fcn.004030b0
mov eax, dword [ebp - 0x624]
add eax, eax
cmp eax, 0x190
jae 0x4037fa
mov edi, dword [ebp - 0x60c]
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov word [ebp + eax - 0x1a4], cx
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x5bc], eax
mov dword [ebp - 0x5b8], eax
mov dword [ebp - 0x5b4], eax
mov dword [ebp - 0x5b0], eax
mov dword [ebp - 0x5ac], eax
mov dword [ebp - 0x5a8], 2
call esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x5b4], eax
call esi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x5b0], eax
call esi
mov dword [ebp - 0x5ac], eax
lea eax, [ebp - 0x5bc]
push eax
push 0x4000000
push 3
push 0x40b4b0
push 0x40b4b0
push dword [ebp - 0x620]
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [ebp - 0x5c4]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5bc], eax
test eax, eax
jne 0x4034ca
call esi
cmp eax, 0x3e5
jne 0x403797
push 0xffffffffffffffff
push dword [ebp - 0x5b4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5bc]
mov dword [ebp - 0x5a8], 3
push ecx
push 0x84000000
push 0
push 0
push 0
push edi
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x5b8], eax
test eax, eax
jne 0x403522
call esi
cmp eax, 0x3e5
jne 0x403797
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [ebp - 0x5b0]
call edi
mov eax, dword [ebp - 0x5b8]
jmp 0x403528
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x5a8], 4
test eax, eax
je 0x4037a2
push dword [ebp + 0x10]
push dword [ebp - 0x5cc]
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40355f
call esi
cmp eax, 0x3e5
jne 0x403797
push 0xffffffffffffffff
push dword [ebp - 0x5ac]
call edi
xor edx, edx
xor edi, edi
mov dword [ebp - 0x5c0], edx
xor esi, esi
mov dword [ebx], edx
jmp 0x403580
xor eax, eax
mov dword [ebp - 0x5fc], 0x28
test edx, edx
mov dword [ebp - 0x5f8], eax
mov dword [ebp - 0x5f4], eax
lea ecx, [ebp - 0x5a4]
mov dword [ebp - 0x5f0], eax
mov edx, 0x200
mov dword [ebp - 0x5ec], eax
cmovne ecx, esi
mov dword [ebp - 0x5e0], eax
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 0x5d8], eax
mov eax, edi
cmove eax, edx
mov dword [ebp - 0x5e8], ecx
lea edx, [ebp - 0x5e4]
mov dword [ebp - 0x5e4], eax
push edx
push eax
push ecx
push dword [ebp - 0x5b8]
mov dword [ebp - 0x5a8], 5
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403619
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x403782
push 0xffffffffffffffff
push dword [ebp - 0x5ac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x5c0]
mov eax, dword [ebp - 0x5e4]
test edx, edx
jne 0x403764
test eax, eax
je 0x403764
mov eax, dword [ebx]
test eax, eax
je 0x403644
push eax
call fcn.004096cf
add esp, 4
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x5c8]
push 0
push eax
lea eax, [ebp - 0x5d0]
mov dword [ebx], 0
push eax
push 0x20000013
push dword [ebp - 0x5b8]
mov dword [ebp - 0x5c8], 4
call esi
test eax, eax
je 0x403797
mov eax, dword [ebp - 0x5d0]
cmp eax, 0xc8
jb 0x403797
cmp eax, 0x12b
ja 0x403797
push 0
lea eax, [ebp - 0x5c8]
mov dword [ebp - 0x5c8], 4
push eax
lea eax, [ebp - 0x5c0]
push eax
push 0x20000005
push dword [ebp - 0x5b8]
call esi
test eax, eax
je 0x403797
mov edi, dword [ebp - 0x5c0]
lea eax, [edi + 1]
push eax
call fcn.00409800
mov esi, eax
add esp, 4
test esi, esi
je 0x403797
mov eax, dword [ebp - 0x5c4]
lea ecx, [ebp - 0x5cc]
mov dword [ebx], esi
push ecx
mov dword [ebp - 0x5cc], esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x5d4], eax
push dword [eax + 4]
push eax
call fcn.00403db0
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebp - 0x5c4]
mov eax, dword [eax + 8]
sub ecx, eax
cmp ecx, 1
jb 0x4037b7
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x5c4]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x5d4]
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
lea eax, [ebp - 0x5a4]
push dword [ebp - 0x5e4]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x5c0]
add esp, 0xc
mov eax, dword [ebp - 0x5e4]
add esi, eax
sub edi, eax
test eax, eax
je 0x4037c2
test edi, edi
je 0x4037c2
cmp dword [ebp - 0x5a8], 0x10000
jne 0x403580
jmp 0x4037cc
mov eax, dword [ebx]
test eax, eax
je 0x403791
push eax
call fcn.004096cf
add esp, 4
mov dword [ebx], 0
lea ecx, [ebp - 0x5bc]
call fcn.00403c40
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409425
mov esp, ebp
pop ebp
ret 0x14
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x5a8], 0x10000
mov eax, dword [ebx]
test eax, eax
je 0x4037d6
mov byte [eax + edx], 0
lea ecx, [ebp - 0x5bc]
call fcn.00403c40
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x5c0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00409425
mov esp, ebp
pop ebp
ret 0x14
call fcn.0040992c
int3