Function at 0x417074
Capabilities:
Check http status code
Connect to http server
Get http response content encoding
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x3d4]
sub esp, 0x454
mov eax, dword [0x489190]
xor eax, ebp
mov dword [ebp + 0x3d0], eax
mov eax, dword [ebp + 0x3e0]
push ebx
push esi
mov esi, dword [ebp + 0x3dc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x3e4]
push edi
mov edi, dword [ebp + 0x3ec]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x3e8]
xor ebx, ebx
push 0x3ff
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x5b]
push ebx
push eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x64], ebx
mov byte [ebp - 0x5c], bl
call fcn.004456a0
add esp, 0xc
mov ecx, 0x48a83c
mov dword [ebp - 0x78], ebx
call fcn.00417056
cmp dword [ebp - 0x6c], ebx
je 0x41737a
cmp eax, ebx
je 0x41737a
push ebx
push ebx
push 3
mov ecx, 0x46d1ac
push ecx
push ecx
push dword [ebp + 0x3f0]
push esi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x41737a
cmp dword [ebp - 0x68], ebx
mov eax, 0x46f8d8
je 0x41712a
mov eax, str.POST
push ebx
push 0x84080100
push ebx
push ebx
push ebx
push dword [ebp - 0x60]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp - 0x60], eax
je 0x41736c
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp + 0x3f4]
push ecx
push 2
push eax
mov dword [ebp - 0x80], 1
call esi
push 4
lea eax, [ebp + 0x3f4]
push eax
push 6
push dword [ebp - 0x60]
call esi
push 4
lea eax, [ebp + 0x3f4]
push eax
push 5
push dword [ebp - 0x60]
call esi
push 4
lea eax, [ebp - 0x80]
push eax
push 3
push dword [ebp - 0x60]
call esi
cmp dword [ebp + 0x3f8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
je 0x4171bc
push 0xa0000000
push str.Accept_Encoding:gzip
call esi
push eax
push str.Accept_Encoding:gzip
push dword [ebp - 0x60]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp dword [ebp - 0x68], ebx
je 0x4171e3
push 0xa0000000
mov edi, str.Content_Type:_application_x_www_form_urlencoded
push edi
call esi
push eax
push edi
push dword [ebp - 0x60]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push dword [ebp - 0x68]
call esi
mov edi, dword [ebp - 0x70]
jmp 0x4171e5
xor eax, eax
push eax
push dword [ebp - 0x68]
push ebx
push ebx
push dword [ebp - 0x60]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x417363
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp + 0x3f4]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x13
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0x1f4
mov dword [ebp + 0x3f4], ebx
call esi
test eax, eax
je 0x417363
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
cmp eax, 0xc8
jne 0x417363
cmp dword [ebp + 0x3f8], ebx
je 0x4172b8
push 0x29
lea eax, [ebp + 0x3a5]
push ebx
push eax
mov byte [ebp + 0x3a4], bl
call fcn.004456a0
add esp, 0xc
lea eax, [ebp + 0x3f4]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x3a4]
push eax
push 0x1d
push dword [ebp - 0x60]
mov dword [ebp - 0x70], 0x28
mov dword [ebp + 0x3f4], ebx
call esi
test eax, eax
jne 0x417292
mov dword [ebp + 0x3f8], ebx
cmp dword [ebp + 0x3f8], ebx
je 0x4172b8
push 4
push str.gzip
lea eax, [ebp + 0x3a4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
je 0x4172b8
mov dword [ebp + 0x3f8], ebx
mov esi, dword [ebp - 0x6c]
mov dword [esi], ebx
mov dword [edi], ebx
jmp 0x417304
mov ecx, dword [ebp - 0x64]
cmp ecx, ebx
jbe 0x41731e
mov eax, dword [edi]
cmp eax, ebx
jne 0x4172d6
push ecx
call fcn.004453eb
jmp 0x4172e1
add eax, ecx
push eax
push dword [esi]
call fcn.00446812
pop ecx
cmp eax, ebx
mov dword [esi], eax
pop ecx
je 0x417363
push dword [ebp - 0x64]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [edi]
push dword [ebp - 0x64]
add ecx, eax
push ecx
call fcn.00445321
mov eax, dword [ebp - 0x64]
add esp, 0x10
add dword [edi], eax
lea eax, [ebp - 0x64]
push eax
push 0x400
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4172c1
cmp dword [ebp + 0x3f8], ebx
je 0x41735c
mov ecx, dword [esi]
cmp ecx, ebx
je 0x41735c
mov eax, dword [edi]
cmp eax, ebx
jle 0x41735c
push 1
push edi
lea edx, [ebp - 0x78]
push edx
push eax
push ecx
call fcn.00416f28
add esp, 0x14
test eax, eax
push dword [esi]
je 0x417351
call fcn.004454ae
pop ecx
jmp 0x417363
call fcn.004454ae
mov eax, dword [ebp - 0x78]
pop ecx
mov dword [esi], eax
mov dword [ebp - 0x74], 1
push dword [ebp - 0x60]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x7c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x74], ebx
jne 0x417381
mov eax, dword [ebp - 0x6c]
mov dword [eax], ebx
mov dword [edi], ebx
mov ecx, dword [ebp + 0x3d0]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445f93
add ebp, 0x3d4
leave
ret