Function at 0x10006f30
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b9a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1002b580]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push 0x1001f674
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
call fcn.10003560
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 1
cmp ecx, ebx
jne 0x1000701a
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x10006fca
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10006fca
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10006fca
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x10007107
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10007107
cmp esi, ebx
je 0x10007107
mov eax, dword [esi]
cmp eax, ebx
je 0x10006ffc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1000700c
push eax
call fcn.1000d6ec
add esp, 4
push esi
call fcn.1000d6ec
add esp, 4
jmp 0x10007107
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x10007025
mov eax, dword [eax]
jmp 0x10007027
xor eax, eax
push ebx
push 0x80400300
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
push edi
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call fcn.10003560
mov edi, dword [ebp - 0x34]
cmp edi, ebx
jne 0x100070b8
mov esi, dword [ebp - 0x30]
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x10007082
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10007082
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10007082
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp esi, ebx
je 0x100070ff
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100070ff
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100070ff
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
jmp 0x100070ff
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
push ebx
push ebx
lea ecx, [ebp - 0x38]
push ecx
push edi
mov byte [ebp - 4], 3
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, 1
je 0x1000712a
lea ecx, [ebp - 0x2c]
call fcn.100012b0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10003400
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10003400
lea ecx, [ebp + 8]
call fcn.10002730
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e281
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x34]
xor ebx, ebx
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x10007201
mov ecx, dword [ebp - 0x1c]
cmp eax, ecx
ja 0x10007149
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.10001060
jmp 0x10007155
sub eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.100034b0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], ebx
jae 0x10007164
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x48]
push edx
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100070df
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x38]
jne 0x100070df
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, edx
cmp ecx, 0x10
jae 0x10007198
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
lea ebx, [eax + edi]
cmp ecx, 0x10
jb 0x100071a8
mov dword [ebp - 0x44], edx
jmp 0x100071ae
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov edi, dword [esi + 0x14]
cmp edi, 0x10
jb 0x100071ba
mov ecx, dword [esi]
jmp 0x100071bc
mov ecx, esi
mov eax, dword [esi + 0x10]
lea edx, [eax + ecx]
cmp edi, 0x10
jb 0x100071cb
mov ecx, dword [esi]
jmp 0x100071cd
mov ecx, esi
add eax, ecx
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x44]
push ebx
push ecx
push edx
push eax
mov ecx, esi
call fcn.10006e70
mov eax, dword [ebp - 0x34]
push 0
push 0
lea edx, [ebp - 0x38]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, 1
je 0x10007125
jmp 0x100070df
lea ecx, [ebp - 0x2c]
call fcn.100012b0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10003400
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10003400
lea ecx, [ebp + 8]
call fcn.10002730
mov eax, 1
jmp 0x10007109