Function at 0x416070
Capabilities:
Query remote server for available data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431540
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x43c400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x18]
call fcn.004018e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018e0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0x80008000
mov eax, dword [ebp + 0xc]
and eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x4161ce
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x4334b8
lea eax, [ebp - 0x10]
push eax
call fcn.00401e00
add esp, 0x10
mov ecx, dword [ebp - 0x38]
add ecx, 0x14
call fcn.0040c520
movzx ecx, al
test ecx, ecx
je 0x416112
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x10]
push ecx
push 0x4334a8
lea edx, [ebp - 0x18]
push edx
call fcn.00401e00
add esp, 0x10
jmp 0x416135
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x10]
push ecx
push 0x433498
lea edx, [ebp - 0x18]
push edx
call fcn.00401e00
add esp, 0x14
push 0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004041a0
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d820
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d820
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0xc], 0
jne 0x4161a4
mov ecx, dword [ebp - 0x38]
call fcn.00416a30
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401900
mov eax, dword [ebp - 0x20]
jmp 0x41635b
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401900
mov eax, dword [ebp - 0x24]
jmp 0x41635b
mov ecx, dword [ebp - 0x38]
add ecx, 0x14
call fcn.0040c520
movzx eax, al
test eax, eax
je 0x4161f7
mov ecx, dword [ebp + 8]
push ecx
push 0x433494
lea edx, [ebp - 0x18]
push edx
call fcn.00401e00
add esp, 0xc
jmp 0x416213
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x14]
push edx
push 0x43348c
lea eax, [ebp - 0x18]
push eax
call fcn.00401e00
add esp, 0x10
cmp dword [ebp + 0x18], 0
je 0x416225
mov ecx, dword [ebp - 0x1c]
or ecx, 0x4000000
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
lea ecx, [ebp - 0x18]
call fcn.0040d820
push eax
push 0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0xc], 0
jne 0x41628c
mov ecx, dword [ebp - 0x38]
call fcn.00416a30
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401900
mov eax, dword [ebp - 0x28]
jmp 0x41635b
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4162e1
mov ecx, dword [ebp - 0x38]
call fcn.00416a30
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401900
mov eax, dword [ebp - 0x2c]
jmp 0x41635b
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x416336
mov ecx, dword [ebp - 0x38]
call fcn.00416a30
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401900
mov eax, dword [ebp - 0x30]
jmp 0x41635b
mov dword [ebp - 0x34], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401900
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14