Function at 0x414784
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 0x414a68
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov byte [0x459e00], 0
xor eax, eax
mov dword [esi], eax
mov eax, ebx
call fcn.004073dc
push eax
call sub.wininet.dll_DeleteUrlCacheEntryW
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004145fc
test al, al
je 0x414a4d
mov eax, dword [ebp - 4]
test eax, eax
je 0x4147ee
sub eax, 4
mov eax, dword [eax]
test eax, eax
jg 0x4147f6
mov al, 1
jmp 0x414807
mov eax, dword [ebp - 8]
test eax, eax
je 0x414802
sub eax, 4
mov eax, dword [eax]
test eax, eax
setle al
test al, al
jne 0x414a4d
cmp byte [0x459e00], 0
jne 0x414a4d
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 0x414a4d
xor edx, edx
push ebp
push 0x414a46
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.004073dc
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 0x414a2f
xor edx, edx
push ebp
push 0x414a28
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x459e00], 0
je 0x414897
call fcn.0040633c
call fcn.0040633c
jmp 0x414a4d
push 0
push 0x84080300
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004073dc
push eax
mov eax, dword [ebp - 0xc]
call fcn.004073dc
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 0x414a11
xor edx, edx
push ebp
push 0x414a0a
push dword fs:[edx]
mov dword fs:[edx], esp
mov edi, dword [ebp - 0x10]
mov eax, edi
test eax, eax
je 0x4148e8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x414905
mov eax, dword [ebp - 0x10]
call fcn.004073dc
mov ebx, eax
mov eax, edi
test eax, eax
je 0x414901
sub eax, 4
mov eax, dword [eax]
mov edi, eax
jmp 0x414909
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 0x414934
call fcn.0040633c
call fcn.0040633c
call fcn.0040633c
jmp 0x414a4d
cmp byte [0x459e00], 0
je 0x414951
call fcn.0040633c
call fcn.0040633c
call fcn.0040633c
jmp 0x414a4d
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 [0x459e00], 0
je 0x414991
call fcn.0040633c
call fcn.0040633c
call fcn.0040633c
jmp 0x414a4d
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x42c]
xor ecx, ecx
mov edx, 0x400
call fcn.00404a7c
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 0x4149e7
cmp dword [ebp + 8], 0
je 0x4149e7
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 0x4149f3
cmp dword [ebp - 0x24], 0
jne 0x414974
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414a11
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 0x414a2f
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 0x414a4d
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 0x414a6f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b74
ret