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

Disassembly:
mov eax, 0x41fbca
call fcn.00417e88
mov eax, 0x1178
call fcn.00417de0
mov eax, dword [0x428108]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x1168], ebx
push 0x422ca0
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.004021b9
push 0xc
pop ecx
mov byte [ebp - 4], 1
mov esi, str.Content_Type:_application_x_www_form_urlencoded
lea edi, [ebp - 0x164]
rep movsd dword es:[edi], dword [esi]
push 0x33
pop ecx
movsb byte es:[edi], byte [esi]
push ebx
xor eax, eax
push ebx
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
push ebx
push ebx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.WININET.dll_InternetOpenA]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1168], esp
push 0x42916c
mov dword [ebp - 0x1170], eax
call fcn.004021b9
lea eax, [ebp - 0x1184]
push eax
call fcn.0041e4e0
add esp, 0x20
mov byte [ebp - 4], 2
push dword [ebp - 0x1180]
lea ecx, [ebp - 0x48]
call fcn.00402833
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1180]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402833
mov byte [ebp - 4], 4
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x406963
lea eax, [ebp - 0x44]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push dword [ebp - 0x1170]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x1174], eax
mov eax, dword [ebp - 0x28]
jae 0x40698a
lea eax, [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push str.POST
push dword [ebp - 0x1174]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
lea eax, [ebp - 0x164]
push 0x20000000
push eax
mov dword [ebp - 0x1168], esi
call fcn.00416b50
pop ecx
inc eax
push eax
lea eax, [ebp - 0x164]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp dword [ebp + 0x24], 0x10
mov eax, dword [ebp + 0x10]
jae 0x4069d7
lea eax, [ebp + 0x10]
push dword [ebp + 0x20]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x406a67
xor eax, eax
mov byte [ebp - 0x1164], bl
mov ecx, 0x3ff
lea edi, [ebp - 0x1163]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x116c]
push eax
mov edi, 0x1000
push edi
lea eax, [ebp - 0x1164]
push eax
push esi
jmp 0x406a5d
mov eax, dword [ebp - 0x116c]
mov byte [ebp + eax - 0x1164], bl
lea eax, [ebp - 0x1164]
push eax
call fcn.00416b50
pop ecx
push eax
lea eax, [ebp - 0x1164]
lea esi, [ebp - 0x64]
call fcn.0040c967
cmp dword [ebp - 0x116c], edi
jne 0x406a67
lea eax, [ebp - 0x116c]
push eax
push edi
lea eax, [ebp - 0x1164]
push eax
push dword [ebp - 0x1168]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x406a17
cmp dword [ebp - 0x1170], ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x406a7d
push dword [ebp - 0x1170]
call esi
cmp dword [ebp - 0x1174], ebx
je 0x406a8d
push dword [ebp - 0x1174]
call esi
cmp dword [ebp - 0x1168], ebx
je 0x406a9d
push dword [ebp - 0x1168]
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x64]
push eax
call fcn.00402833
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x2c]
call fcn.004027ea
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004027ea
lea ecx, [ebp - 0x1184]
call fcn.0040c78f
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.004027ea
push ebx
push esi
lea ecx, [ebp + 0xc]
call fcn.004027ea
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004177c2
pop edi
pop esi
pop ebx
leave
ret