Function at 0x405dc4
Capabilities:
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x42ffc8
call fcn.00414ae4
sub esp, 0x52c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 4], 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0042aea4
lea ecx, [ebp - 0x50]
call fcn.00406103
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004061ac
test al, al
jne 0x405e15
mov byte [ebp + 0x1b], bl
jmp 0x4060cc
push dword [ebp - 0x48]
lea ecx, [esi + 0x348]
call fcn.00427717
movzx eax, word [ebp - 0x44]
push dword [ebp - 0x38]
lea edi, [esi + 0x34c]
mov ecx, edi
mov dword [esi + 0x350], eax
call fcn.00427717
mov ecx, esi
call fcn.00405b9b
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x405e0d
mov edi, dword [edi]
push 1
lea ecx, [ebp - 0x30]
push ebx
push ecx
push ebx
push ebx
push edi
push str.POST
push eax
mov dword [ebp - 0x30], str.Accept:__
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x405e0d
mov eax, dword [esi + 0x338]
neg eax
sbb eax, eax
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x405f07
lea edi, [esi + 0x32c]
mov eax, dword [0x441758]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 5
call fcn.00422ff3
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push dword [ebp - 0x18]
push str._s:__s
push eax
call fcn.00422452
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ecx, dword [eax - 8]
push 0xa0000000
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0042758e
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0042758e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0042758e
cmp dword [ebp - 0x20], ebx
jne 0x405e8c
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push dword [eax - 8]
push ebx
call fcn.0042791d
push eax
push ebx
push ebx
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push ebx
push ebx
push dword [ebp + 0x10]
mov edi, eax
call fcn.0042aea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
je 0x405e0d
cmp dword [ebp + 0x18], 1
jne 0x4060c5
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000005
push dword [esi + 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x405f6e
mov dword [ebp - 0x14], ebx
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x537]
mov byte [ebp - 0x538], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x538]
push str.Set_Cookie
push eax
mov dword [ebp - 0x24], 0x3e8
call fcn.00415180
pop ecx
lea eax, [ebp - 0x24]
pop ecx
push ebx
push eax
lea eax, [ebp - 0x538]
push eax
push 0xffff
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x538]
push eax
call fcn.00427717
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.00415393
cmp eax, ebx
pop ecx
mov dword [ebp + 0x18], eax
jne 0x406005
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00406144
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0042758e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0042758e
xor al, al
jmp 0x4060f2
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push ebx
push eax
call fcn.00414b10
add esp, 0xc
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 6
mov dword [ebp + 0xc], ebx
xor edi, edi
lea eax, [ebp + 0xc]
push eax
mov eax, 0x100
push eax
lea eax, [ebp - 0x150]
push eax
push dword [esi + 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x406069
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jbe 0x406069
lea ecx, [edi + eax]
cmp ecx, dword [ebp - 0x14]
ja 0x406069
push eax
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp + 0x18]
add eax, edi
push eax
call fcn.00414ce0
add esp, 0xc
add edi, dword [ebp + 0xc]
jmp 0x406020
cmp edi, dword [ebp - 0x14]
jne 0x406075
mov dword [ebp - 0x18], 1
push dword [ebp + 0x18]
lea ecx, [ebp - 0x2c]
call fcn.004275fc
mov ecx, dword [ebp + 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.004276c7
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.0042758e
jmp 0x4060a6
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 4], 2
je 0x4060bb
push dword [ebp + 0x18]
call fcn.004152aa
pop ecx
mov ecx, esi
call fcn.00405c3f
mov edi, dword [ebp - 0x18]
cmp edi, 1
sete byte [ebp + 0x1b]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00406144
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0042758e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0042758e
mov al, byte [ebp + 0x1b]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14