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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43db46
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], edx
mov esi, ecx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x68], esi
mov ecx, dword [ebx + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x70], ecx
mov byte [ebp - 0x4d], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x48], 0x20
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x60], 0
mov byte [esi], 0
push 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x6c], 1
push ecx
push 5
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40221b
push 0xa
lea eax, [ebp - 0x34]
mov byte [ebp - 0x4d], 1
push 0
push eax
call fcn.0042646b
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ecx, esi
push eax
call fcn.00406d10
test edi, edi
mov eax, 0x401e90
cmovne eax, edi
xor edi, edi
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x4c]
push edi
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x54], edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x40239f
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x40239c
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push ecx
lea ecx, [ebp - 0x40]
movq qword [ebp - 0x40], xmm0
call fcn.00406ab0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x40]
push eax
push dword [ebp - 0x4c]
push edi
push dword [ebp - 0x5c]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x4023bd
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4023bd
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x54]
push 0
add eax, ecx
push eax
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x74]
call dword [ebp - 0x78]
test al, al
je 0x40236c
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
cmp ecx, eax
ja 0x4022f6
cmp dword [esi + 0x14], 0x10
lea eax, [ecx + edx]
mov dword [esi + 0x10], eax
mov eax, esi
jb 0x4022dc
mov eax, dword [esi]
push ecx
lea esi, [eax + edx]
push edi
push esi
call fcn.004202f0
mov eax, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x7c]
jmp 0x402307
push ecx
push edi
mov byte [ebp - 0x68], 0
push dword [ebp - 0x68]
push ecx
mov ecx, esi
call fcn.00407830
mov byte [ebp - 4], 0
test edi, edi
je 0x402351
mov ecx, dword [ebp - 0x38]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x402332
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40240d
push ecx
push edi
call fcn.0041e43c
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x402244
jmp 0x40239c
test edi, edi
je 0x402399
mov ecx, dword [ebp - 0x38]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40238f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40240d
push ecx
push edi
call fcn.0041e43c
add esp, 8
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x4023ed
test eax, eax
je 0x4023e2
cmp byte [ebp - 0x4d], 0
je 0x4023b5
cmp edi, dword [ebp - 0x60]
jne 0x4023e2
mov dword [ecx], 0
jmp 0x4023ed
test edi, edi
je 0x40239c
mov ecx, dword [ebp - 0x38]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x40238f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40240d
jmp 0x40238f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x64]
mov dword [ecx], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004267cc
int3