Function at 0x418440
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4582c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x47305c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x418799
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x418799
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x418799
cmp dword [ebp + 0x14], 0
je 0x418799
push 0
push 0
push 0
push 0
push str.PPKCLIENT
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x4184d0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0
push 0
push 3
push 0
push 0
push 0x50
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x1c], edi
je 0x4184b7
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x2c], 0x45bdd8
mov dword [ebp - 0x28], 0
call fcn.00401340
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push esi
push str.POST
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x24], edi
jne 0x41854a
lea ecx, [ebp + 0xc]
call fcn.00401370
mov eax, 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0xa0000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f02
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, ebx
mov dword [ebp - 0x18], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x418580
sub eax, edx
push eax
push ebx
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x418746
mov dword [ebp + 0x10], 0
push 0
push 0
lea ecx, [ebp + 8]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x4185cf
push 0x7f00
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x41864a
mov edx, dword [ebp + 8]
add edx, 1
push edx
call fcn.0041c0ce
mov ecx, dword [ebp + 8]
add dword [ebp + 0x10], 1
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41863d
push 8
push str._length_
push ebx
call fcn.0043dc2d
mov esi, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x418630
cmp dword [esi], 0
jne 0x418630
test ebx, ebx
je 0x418621
push ebx
call fcn.0041c0d3
add esp, 4
mov eax, 1
cmp dword [ebp + 0x10], eax
jne 0x41864a
mov dword [ebp - 0x18], eax
jmp 0x41864a
mov edx, dword [ebp - 0x14]
mov byte [edx + ebx], 0
cmp dword [ebp - 0x14], 0
jne 0x4186a8
test ebx, ebx
je 0x41864a
push ebx
call fcn.0041c0d3
add esp, 4
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov ecx, dword [ebp - 0x20]
push ecx
call esi
lea ecx, [ebp + 0xc]
call fcn.00401370
cmp dword [ebp - 0x18], 0
jne 0x418780
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [esi]
test edx, edx
jne 0x4186d0
mov edx, dword [ebp + 8]
add edx, 1
push edx
call fcn.0043db6a
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0
push eax
mov dword [esi], eax
call fcn.00439b80
add esp, 0x10
jmp 0x4186f6
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4186d5
mov ecx, dword [ebp + 8]
sub eax, esi
lea eax, [eax + ecx + 1]
push eax
push edx
call fcn.0043d887
mov ecx, dword [ebp + 0x14]
add esp, 8
mov dword [ecx], eax
test ebx, ebx
je 0x4185a7
mov eax, ebx
mov ecx, ebx
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x418702
mov edx, dword [ebp + 0x14]
mov edi, dword [edx]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x418717
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0041c0d3
mov edi, dword [ebp - 0x24]
add esp, 4
jmp 0x4185a7
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
push 0x7f00
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov ecx, dword [ebp - 0x20]
push ecx
call esi
lea ecx, [ebp + 0xc]
call fcn.00401370
mov eax, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14