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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3f94
call fcn.0044b550
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x27f]
push ebx
push eax
mov byte [ebp - 0x280], bl
call fcn.004454d0
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x6c], bl
lea edi, [ebp - 0x6b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x387]
push ebx
push eax
mov byte [ebp - 0x388], bl
call fcn.004454d0
mov edi, 0xfff
push edi
lea eax, [ebp - 0x2b87]
push ebx
push eax
mov byte [ebp - 0x2b88], bl
call fcn.004454d0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x280]
mov dword [ebp - 0x3c], eax
lea eax, [esi + 1]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2b88]
lea ecx, [ebp - 0x388]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
add esp, 0x24
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x44], 0x20
mov dword [ebp - 0x14], 0x1000
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41b7c2
sub eax, ecx
lea ecx, [ebp - 0x4c]
push ecx
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x41ba30
mov eax, dword [ebp + 8]
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
push dword [eax + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x41ba30
cmp dword [ebp - 0x40], 4
mov dword [ebp + 0xc], 0x40200
jne 0x41b819
mov dword [ebp + 0xc], 0x840200
push edi
lea eax, [ebp - 0x1b87]
push ebx
push eax
mov byte [ebp - 0x1b88], bl
call fcn.004454d0
push esi
lea eax, [ebp - 0x177]
push ebx
push eax
mov byte [ebp - 0x178], bl
call fcn.004454d0
add esp, 0x18
mov edx, str.Content_Type:_application_x_www_form_urlencoded
cmp dword [ebp + 0x10], ebx
jne 0x41b853
mov edx, 0x454bc7
lea ecx, [ebp - 0x178]
mov al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
cmp al, bl
jne 0x41b859
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1b88]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x41b86e
mov eax, dword [ebp - 0x18]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41b87d
lea edi, [ebp - 0x1b88]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x41b88d
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, str.POST
cmp dword [ebp + 0x10], ebx
jne 0x41b8b4
mov eax, 0x456a3c
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1b88]
push ebx
push ebx
push ebx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
je 0x41ba22
push 4
lea eax, [ebp - 0x10]
push eax
push 0x1f
push edi
mov dword [ebp - 0x10], 0x3180
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x41b903
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41b8f6
sub eax, edx
mov esi, eax
jmp 0x41b905
xor esi, esi
lea eax, [ebp - 0x178]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41b90e
push esi
push dword [ebp + 0x10]
sub eax, edx
push eax
lea eax, [ebp - 0x178]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x41ba1b
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x41ba1b
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41b947
sub eax, edx
je 0x41ba1b
push 0x3ff
lea eax, [ebp - 0x787]
push ebx
push eax
mov byte [ebp - 0x788], bl
call fcn.004454d0
add esp, 0xc
xor esi, esi
mov dword [ebp + 0xc], ebx
mov byte [ebp + 0x13], bl
lea eax, [ebp + 0xc]
push eax
mov eax, 0x400
sub eax, esi
push eax
lea eax, [ebp + esi - 0x788]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41b9a2
add esi, dword [ebp + 0xc]
cmp dword [ebp + 0xc], ebx
jne 0x41b9ae
jmp 0x41b9aa
mov byte [ebp - 0x788], bl
xor esi, esi
mov byte [ebp + 0x13], 1
cmp byte [ebp + 0x13], bl
je 0x41b979
mov eax, dword [str.NEWGUID]
mov dword [ebp - 0xc], eax
mov eax, dword [0x457290]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41b9c9
sub eax, edx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x788]
push eax
call fcn.0043b9b6
add esp, 0xc
test eax, eax
jne 0x41ba1b
mov ecx, dword [ebp + 0x14]
push SysReAllocString
lea eax, [ebp - 0x3f90]
mov byte [ebp - 0x75c], bl
call fcn.0040cec7
lea eax, [ebp - 0x780]
push eax
push str.PCMUID
lea eax, [ebp - 0x3f90]
push eax
call fcn.0040d052
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 4], ebx
jne 0x41baad
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x787]
push ebx
push eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], edi
mov byte [ebp - 0x788], bl
call fcn.004454d0
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x788]
push eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
lea eax, [ebp - 0xb87]
push ebx
push eax
mov byte [ebp - 0xb88], bl
call fcn.004454d0
push esi
lea eax, [ebp - 0x788]
push eax
lea eax, [ebp - 0xb88]
push str.ERROR:_WinInet_Last_Response____s:_GetLastError____d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0xb88]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
leave
ret 0x10