Function at 0x406555
Capabilities:
Connect to http server
Parse url
Print debug messages
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x473e3b
call fcn.00473e04
mov eax, 0x3f9c
call fcn.00443be0
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x397]
push 0x103
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x398], bl
call fcn.00443c10
add esp, 0xc
mov byte [ebp - 0x7c], bl
xor eax, eax
mov byte [ebp - 0x290], bl
lea edi, [ebp - 0x7b]
push 7
pop ecx
rep stosd dword es:[edi], eax
push 0x103
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x28f]
push eax
call fcn.00443c10
add esp, 0xc
mov byte [ebp - 0x2b98], bl
lea eax, [ebp - 0x2b97]
push 0xfff
push ebx
push eax
call fcn.00443c10
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x58], eax
mov ecx, 0x104
lea eax, [ebp - 0x398]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
add esp, 0xc
lea eax, [ebp - 0x290]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2b98]
mov dword [ebp - 0x54], 0x20
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x1000
lea edx, [ecx + 1]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], ebx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406627
lea eax, [ebp - 0x5c]
sub ecx, edx
push eax
push ebx
push ecx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov edi, 0x3ff
test eax, eax
je 0x4068be
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp + 8], eax
test eax, eax
je 0x4068be
cmp dword [ebp - 0x50], 4
mov ecx, 0x840200
mov eax, 0x40200
mov byte [ebp - 0x1b98], bl
cmove eax, ecx
push 0xfff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1b97]
push ebx
push eax
call fcn.00443c10
add esp, 0xc
mov byte [ebp - 0x188], bl
lea eax, [ebp - 0x187]
push 0x103
push ebx
push eax
call fcn.00443c10
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x188]
add esp, 0xc
mov ecx, str.Content_Type:_application_x_www_form_urlencoded
test ebx, ebx
mov eax, 0x48086e
cmove ecx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4066d0
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x1b98]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4066e5
mov edx, dword [ebp - 0x28]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4066f4
lea edi, [ebp - 0x1b98]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406704
mov ecx, edx
xor eax, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x14]
mov ecx, edx
push eax
push eax
push eax
and ecx, 3
lea eax, [ebp - 0x1b98]
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov ecx, 0x4808c4
test ebx, ebx
mov eax, str.POST
cmove eax, ecx
push eax
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4068a6
push 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x3180
push ecx
push 0x1f
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test ebx, ebx
je 0x406779
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40676e
sub ecx, edx
jmp 0x40677b
xor ecx, ecx
lea edx, [ebp - 0x188]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x406784
push ecx
push ebx
sub edx, esi
lea eax, [ebp - 0x188]
push edx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40689d
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], 1
test edi, edi
je 0x40689a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4067bf
sub ecx, edx
je 0x40689a
xor ebx, ebx
lea eax, [ebp - 0x797]
push 0x3ff
push ebx
push eax
mov byte [ebp - 0x798], bl
call fcn.00443c10
mov edi, dword [ebp - 0x14]
add esp, 0xc
mov esi, ebx
mov dword [ebp + 0xc], ebx
lea eax, [ebp + 0xc]
push eax
mov eax, 0x400
sub eax, esi
push eax
lea eax, [ebp - 0x798]
add eax, esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40681e
add esi, dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
jne 0x40682a
jmp 0x406827
mov byte [ebp - 0x798], 0
xor esi, esi
mov bl, byte [ebp - 0x10]
test bl, bl
je 0x4067f3
mov eax, dword [str.NEWGUID]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
lea edx, [ecx + 1]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4808cc]
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406847
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 0x798]
push eax
call fcn.0043fa8f
add esp, 0xc
test eax, eax
jne 0x40689a
xor ebx, ebx
lea ecx, [ebp - 0x3fa8]
push ebx
push SysReAllocString
push edi
mov byte [ebp - 0x76c], bl
call fcn.0041f1f7
push dword [ebp - 0x10]
lea eax, [ebp - 0x790]
mov dword [ebp - 4], ebx
push ebx
push eax
push str.PCMUID
call fcn.0041f634
mov edi, dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x10], 0
jne 0x406939
xor ebx, ebx
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x797]
mov dword [ebp + 0x10], ebx
push ebx
push eax
mov dword [ebp + 8], edi
mov byte [ebp - 0x798], bl
call fcn.00443c10
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x798]
push eax
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
mov byte [ebp - 0xb98], bl
lea eax, [ebp - 0xb97]
push ebx
push eax
call fcn.00443c10
add esp, 0xc
lea eax, [ebp - 0x798]
push esi
push eax
lea eax, [ebp - 0xb98]
push str.ERROR:_WinInet_Last_Response____s:_GetLastError____d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xb98]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc