Function at 0x497640
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5431a0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2f4
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x304], ecx
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x28c], 0
lea ecx, [ebp - 0x29c]
call fcn.0040ee90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov ecx, dword [ebp - 0x304]
add ecx, 0x9c
call fcn.0041cbc0
push eax
push 0x564638
lea eax, [ebp - 0x29c]
push eax
call fcn.004beff0
add esp, 0x10
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x2a8], 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0
je 0x497a0a
mov dword [ebp - 0x2b0], 0xbb8
push 4
lea ecx, [ebp - 0x2b0]
push ecx
push 2
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0x102
push 0
push 0
lea ecx, [ebp - 0x29c]
call fcn.0041cb20
push eax
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0
je 0x4979fd
xor ecx, ecx
mov word [ebp - 0x2c8], cx
xor edx, edx
mov dword [ebp - 0x2c6], edx
mov dword [ebp - 0x2c2], edx
mov dword [ebp - 0x2be], edx
mov word [ebp - 0x2ba], dx
mov dword [ebp - 0x2b4], 0x10
mov dword [ebp - 0x2b8], 1
push 0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2c8]
push ecx
push 0x4000000b
mov edx, dword [ebp - 0x2ac]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4978d9
mov ecx, dword [ebp - 0x304]
add ecx, 0x6c
call fcn.004413d0
mov eax, dword [ebp - 0x304]
add eax, 8
mov ecx, dword [eax]
mov dword [ebp - 0x2d8], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x2d4], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x2d0], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x2cc], edx
mov ecx, dword [ebp - 0x304]
add ecx, 0x6c
call fcn.004413f0
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00430ab0
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c8]
push ecx
lea ecx, [ebp - 0x2e0]
call fcn.00430ab0
mov edx, dword [ebp - 0x2dc]
push edx
mov eax, dword [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00498100
movzx ecx, al
test ecx, ecx
je 0x49786f
mov dword [ebp - 0x2b8], 0
jmp 0x49787e
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x304]
add ecx, 0x6c
call fcn.004413d0
mov edx, dword [ebp - 0x304]
add edx, 8
mov eax, dword [ebp - 0x2c8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x2c4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x2c0]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x2bc]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x304]
add ecx, 0x6c
call fcn.004413f0
mov dword [ebp - 0x28c], 1
jmp 0x4978e3
mov dword [ebp - 0x2b8], 1
cmp dword [ebp - 0x2b8], 0
je 0x4979e6
push 0x100000
call fcn.004c8580
add esp, 4
mov dword [ebp - 0x2f0], eax
mov edx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2ec], edx
push 0x100000
push 0
mov eax, dword [ebp - 0x2ec]
push eax
call fcn.00512af0
add esp, 0xc
lea ecx, [ebp - 0x2a0]
push ecx
push 0x100000
mov edx, dword [ebp - 0x2ec]
push edx
mov eax, dword [ebp - 0x2ac]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x2a0], 0
jbe 0x4979b6
mov ecx, dword [ebp - 0x2a0]
mov dword [ebp - 0x290], ecx
mov edx, dword [ebp - 0x290]
add edx, 1
push edx
call fcn.004c8580
add esp, 4
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x290]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x298]
push edx
call fcn.00512af0
add esp, 0xc
mov eax, dword [ebp - 0x290]
push eax
mov ecx, dword [ebp - 0x2ec]
push ecx
mov edx, dword [ebp - 0x298]
push edx
call fcn.00511ce0
add esp, 0xc
cmp dword [ebp - 0x2ec], 0
je 0x4979e4
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f8], eax
mov ecx, dword [ebp - 0x2f8]
push ecx
call fcn.005124eb
add esp, 4
mov dword [ebp - 0x2ec], 0
jmp 0x4979f0
mov dword [ebp - 0x294], 1
mov edx, dword [ebp - 0x2ac]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x497a19
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call fcn.00496b00
cmp dword [ebp - 0x298], 0
je 0x497a9d
lea ecx, [ebp - 0x288]
push ecx
mov edx, dword [ebp - 0x290]
push edx
mov eax, dword [ebp - 0x298]
push eax
mov ecx, dword [ebp - 0x304]
call fcn.004ac1d0
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x298], 0
je 0x497a88
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x2fc], ecx
mov edx, dword [ebp - 0x2fc]
push edx
call fcn.005124eb
add esp, 4
mov dword [ebp - 0x298], 0
cmp dword [ebp - 0x294], 0
je 0x497a9b
mov dword [ebp - 0x28c], 1
jmp 0x497aec
mov eax, dword [ebp - 0x304]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x288]
call fcn.00497be0
mov ecx, dword [ebp - 0x304]
add ecx, 0x94
call fcn.0041cb20
push eax
lea ecx, [ebp - 0x288]
call fcn.00497b80
mov ecx, dword [ebp - 0x304]
add ecx, 0x98
call fcn.0041cb20
push eax
lea ecx, [ebp - 0x288]
call fcn.00497c10
cmp dword [ebp - 0x28c], 0
je 0x497b33
mov ecx, dword [ebp - 0x304]
add ecx, 0x6c
call fcn.004413d0
mov ecx, dword [ebp - 0x304]
add ecx, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp - 0x304]
add ecx, 0x6c
call fcn.004413f0
lea edx, [ebp - 0x288]
push edx
mov ecx, dword [ebp - 0x304]
call fcn.004ad9f0
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x300], eax
lea ecx, [ebp - 0x288]
call fcn.00496dc0
lea ecx, [ebp - 0x29c]
call fcn.0040f740
mov eax, dword [ebp - 0x300]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00512610
mov esp, ebp
pop ebp
ret