Function at 0x1004277
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push 0x384
mov eax, 0x10135eb
call fcn.01008318
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ecx], ebx
push 0xffffffffffffffff
mov dword [ebp - 0x360], ecx
push esi
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x354], edi
mov dword [ebp - 0x358], eax
mov dword [ebp - 0x348], ebx
mov dword [eax], 9
call fcn.010034b4
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], eax
mov eax, 0x80
mov dword [ebp - 4], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], ebx
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x34c], ebx
mov dword [ebp - 0x350], 0xa
mov dword [ebp - 0x340], ebx
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x33c], ebx
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x348]
push eax
push esi
push edi
mov byte [ebp - 4], 2
call fcn.01003546
mov esi, eax
cmp esi, ebx
lea ecx, [ebp - 0x340]
jge 0x10044b6
call fcn.01002970
lea ecx, [ebp - 0x230]
call fcn.01002970
lea ecx, [ebp - 0x120]
call fcn.01002970
mov eax, esi
jmp 0x10046ef
sub esp, 0x28
push 0xa
pop ecx
mov edi, esp
push dword [ebp - 0x344]
lea esi, [ebp - 0x38c]
push dword [ebp - 0x348]
mov dword [ebp - 0x38c], 0x28
mov dword [ebp - 0x388], ebx
mov dword [ebp - 0x384], 0x100156c
mov dword [ebp - 0x380], ebx
mov dword [ebp - 0x37c], ebx
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x374], ebx
mov dword [ebp - 0x370], ebx
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x368], ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x120]
call fcn.0100338b
push eax
call fcn.01004089
mov edi, eax
cmp edi, ebx
jge 0x10044fb
cmp edi, 0xc00d1388
je 0x10043f0
cmp edi, 0xc00d2ee1
jne 0x10046a4
mov eax, dword [ebp - 0x350]
dec dword [ebp - 0x350]
test eax, eax
jbe 0x10046a4
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x120]
call fcn.0100338b
push eax
xor eax, eax
cmp edi, 0xc00d2ee1
sete al
push eax
push dword [ebp - 0x344]
push dword [ebp - 0x354]
call fcn.01003cca
mov edi, eax
cmp edi, ebx
jl 0x10046a4
push dword [ebp - 0x344]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x230], ebx
mov dword [ebp - 0x344], ebx
jl 0x10044a2
cmp dword [ebp - 0x22c], ebx
je 0x10044a2
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], ebx
call fcn.0100351a
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x34c], 1
mov edi, dword [ebp - 0x120]
cmp edi, ebx
jl 0x10046a4
lea ecx, [ebp - 0x340]
push ebx
push 0x4600300
push ebx
push ebx
push 0x1001558
call fcn.0100338b
push eax
push 0x1001428
push dword [ebp - 0x348]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x344], eax
cmp eax, ebx
jne 0x1004361
jmp 0x1004514
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10046a4
push ebx
push ebx
lea eax, [ebp - 0x35c]
push eax
push dword [ebp - 0x344]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x1004520
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x10044ea
jmp 0x10044f4
mov eax, dword [ebp - 0x35c]
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
pop ecx
mov dword [ebp - 0x354], esi
cmp esi, ebx
jne 0x1004544
mov edi, 0x8007000e
jmp 0x10046a4
lea eax, [ebp - 0x364]
push eax
push dword [ebp - 0x35c]
push esi
push dword [ebp - 0x344]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1004584
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1004576
and eax, 0xffff
or eax, 0x80070000
push esi
mov edi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x10046a4
mov eax, dword [ebp - 0x364]
push 0x100154c
push esi
mov byte [eax + esi], bl
mov edi, 0x80004005
call fcn.0100b2e6
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x1004620
add esi, 0xa
push 0x1001544
push esi
call fcn.0100b2e6
pop ecx
pop ecx
cmp eax, ebx
je 0x1004620
push 0x100152c
push esi
mov byte [eax], bl
call dword [sym.imp.msvcrt.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x10045db
mov eax, dword [ebp - 0x358]
mov dword [eax], 4
jmp 0x100461e
push 0x1001518
push esi
call fcn.0100b2e6
pop ecx
pop ecx
cmp eax, ebx
je 0x1004620
lea ecx, [ebp - 0x358]
push ecx
lea ecx, [ebp - 0x350]
push ecx
lea ecx, [ebp - 0x390]
push ecx
push dword [ebp - 0x358]
add eax, 0x12
push 0x100150c
push eax
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0x18
cmp eax, 4
jne 0x1004620
xor edi, edi
push dword [ebp - 0x354]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x34c], ebx
je 0x10046a4
cmp dword [ebp - 0x120], ebx
jge 0x1004640
xor eax, eax
jmp 0x1004646
mov eax, dword [ebp - 0x11c]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
mov eax, dword [ebp - 0x360]
pop ecx
mov dword [eax], esi
cmp esi, ebx
je 0x100453a
cmp dword [ebp - 0x120], ebx
jge 0x100467e
mov dword [ebp - 0x34c], ebx
jmp 0x100468a
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x34c], eax
lea ecx, [ebp - 0x120]
call fcn.0100338b
push eax
mov eax, dword [ebp - 0x34c]
inc eax
push eax
push esi
call fcn.01002cac
cmp dword [ebp - 0x348], ebx
je 0x10046b8
push dword [ebp - 0x348]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x344], ebx
je 0x10046cc
push dword [ebp - 0x344]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x340]
call fcn.01002970
lea ecx, [ebp - 0x230]
call fcn.01002970
lea ecx, [ebp - 0x120]
call fcn.01002970
mov eax, edi
call fcn.0100836c
ret 0x10