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

Disassembly:
mov eax, 0x44e9e8
call fcn.0044e3f4
mov eax, 0x3f98
call fcn.0043e160
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x28b]
push ebx
push eax
mov byte [ebp - 0x28c], bl
call fcn.0043bbc0
add esp, 0xc
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x7c], bl
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
lea eax, [ebp - 0x393]
push ebx
push eax
mov byte [ebp - 0x394], bl
call fcn.0043bbc0
add esp, 0xc
mov edi, 0xfff
push edi
lea eax, [ebp - 0x2b93]
push ebx
push eax
mov byte [ebp - 0x2b94], bl
call fcn.0043bbc0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x4c], eax
lea eax, [esi + 1]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2b94]
lea ecx, [ebp - 0x394]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
add esp, 0xc
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x54], 0x20
mov dword [ebp - 0x24], 0x1000
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4012a5
sub eax, ecx
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x401527
mov eax, dword [ebp + 8]
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
push dword [eax + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x401527
cmp dword [ebp - 0x50], 4
mov dword [ebp + 0xc], 0x40200
jne 0x4012fc
mov dword [ebp + 0xc], 0x840200
push edi
lea eax, [ebp - 0x1b93]
push ebx
push eax
mov byte [ebp - 0x1b94], bl
call fcn.0043bbc0
add esp, 0xc
push esi
lea eax, [ebp - 0x183]
push ebx
push eax
mov byte [ebp - 0x184], bl
call fcn.0043bbc0
add esp, 0xc
mov eax, str.Content_Type:_application_x_www_form_urlencoded
cmp dword [ebp + 0x10], ebx
jne 0x401339
mov eax, 0x453270
lea edx, [ebp - 0x184]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401341
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x1b94]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401356
mov eax, dword [ebp - 0x28]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401365
lea edi, [ebp - 0x1b94]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401375
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 0x40139c
mov eax, 0x4532c8
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1b94]
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 0x401515
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1f
push edi
mov dword [ebp - 0x20], 0x3180
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4013eb
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4013de
sub eax, edx
mov esi, eax
jmp 0x4013ed
xor esi, esi
lea eax, [ebp - 0x184]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4013f6
push esi
push dword [ebp + 0x10]
sub eax, edx
push eax
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40150e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], 1
cmp eax, ebx
je 0x40150e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40142f
sub eax, edx
je 0x40150e
push 0x3ff
lea eax, [ebp - 0x793]
push ebx
push eax
mov byte [ebp - 0x794], bl
call fcn.0043bbc0
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 - 0x794]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
je 0x40148a
add esi, dword [ebp + 0xc]
cmp dword [ebp + 0xc], ebx
jne 0x401496
jmp 0x401492
mov byte [ebp - 0x794], bl
xor esi, esi
mov byte [ebp + 0x13], 1
cmp byte [ebp + 0x13], bl
je 0x401461
mov eax, dword [str.NEWGUID]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4532d0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4014b1
sub eax, edx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x794]
push eax
call fcn.0044c6db
add esp, 0xc
test eax, eax
jne 0x40150e
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x3fa4]
mov byte [ebp - 0x768], bl
call fcn.00401cde
lea eax, [ebp - 0x78c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4014ef
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x78c]
push eax
push 1
lea eax, [ebp - 0x3fa4]
call fcn.00401e3c
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x14], ebx
jne 0x4015a7
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x793]
push ebx
push eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], edi
mov byte [ebp - 0x794], bl
call fcn.0043bbc0
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x794]
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 - 0xb93]
push ebx
push eax
mov byte [ebp - 0xb94], bl
call fcn.0043bbc0
add esp, 0xc
push esi
lea eax, [ebp - 0x794]
push eax
lea eax, [ebp - 0xb94]
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 - 0xb94]
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
leave
ret 0x10