Function at 0x414ea8
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x41518c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov byte [0x45de04], 0
xor eax, eax
mov dword [esi], eax
mov eax, ebx
call fcn.004073e4
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00414d20
test al, al
je 0x415171
mov eax, dword [ebp - 4]
test eax, eax
je 0x414f12
sub eax, 4
mov eax, dword [eax]
test eax, eax
jg 0x414f1a
mov al, 1
jmp 0x414f2b
mov eax, dword [ebp - 8]
test eax, eax
je 0x414f26
sub eax, 4
mov eax, dword [eax]
test eax, eax
setle al
test al, al
jne 0x415171
cmp byte [0x45de04], 0
jne 0x415171
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x415171
xor edx, edx
push ebp
push 0x41516a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 4]
call fcn.004073e4
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetConnectW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x415153
xor edx, edx
push ebp
push 0x41514c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x45de04], 0
je 0x414fbb
call fcn.0040634c
call fcn.0040634c
jmp 0x415171
push 0
push 0x84080300
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004073e4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004073e4
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_HttpOpenRequestW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x415135
xor edx, edx
push ebp
push 0x41512e
push dword fs:[edx]
mov dword fs:[edx], esp
mov edi, dword [ebp - 0x10]
mov eax, edi
test eax, eax
je 0x41500c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x415029
mov eax, dword [ebp - 0x10]
call fcn.004073e4
mov ebx, eax
mov eax, edi
test eax, eax
je 0x415025
sub eax, 4
mov eax, dword [eax]
mov edi, eax
jmp 0x41502d
xor ebx, ebx
xor edi, edi
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
push edi
push ebx
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpSendRequestW
test eax, eax
jne 0x415058
call fcn.0040634c
call fcn.0040634c
call fcn.0040634c
jmp 0x415171
cmp byte [0x45de04], 0
je 0x415075
call fcn.0040634c
call fcn.0040634c
call fcn.0040634c
jmp 0x415171
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0x20000013
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_HttpQueryInfoW
cmp byte [0x45de04], 0
je 0x4150b5
call fcn.0040634c
call fcn.0040634c
call fcn.0040634c
jmp 0x415171
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x42c]
xor ecx, ecx
mov edx, 0x400
call fcn.00404a8c
lea eax, [ebp - 0x24]
push eax
push 0x400
lea eax, [ebp - 0x42c]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x11], al
cmp dword [ebp - 0x24], 0
jbe 0x41510b
cmp dword [ebp + 8], 0
je 0x41510b
lea edx, [ebp - 0x42c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
cmp byte [ebp - 0x11], 0
je 0x415117
cmp dword [ebp - 0x24], 0
jne 0x415098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415135
mov eax, dword [ebp - 0x20]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415153
mov eax, dword [ebp - 0x1c]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415171
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415193
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b84
ret