Function at 0x10001bc0
Capabilities:
Connect to http server
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013aae7
mov eax, dword fs:[0]
push eax
sub esp, 0x950
mov eax, dword [0x1019b120]
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 ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 0x7f02
mov dword [ebp - 0x920], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x934], eax
mov byte [ebx + 0x2c], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
mov dword [ebp - 0x94c], 0
mov dword [ebp - 0x924], 0
mov dword [ebp - 0x918], eax
mov dword [ebp - 0x948], eax
call fcn.1000c3bc
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10001c5b
push 0x80004005
call fcn.100032c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x944], eax
mov dword [ebp - 4], 0
call fcn.1000c3bc
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10001c8c
push 0x80004005
call fcn.100032c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x92c], eax
mov byte [ebp - 4], 1
xor eax, eax
push 0x400
push eax
mov dword [ebp - 0x91c], eax
mov dword [ebp - 0x938], eax
mov dword [ebp - 0x930], eax
lea eax, [ebp - 0x810]
push eax
mov dword [ebp - 0x950], 0
mov dword [ebp - 0x95c], 0x1017c744
mov dword [ebp - 0x958], 0
mov dword [ebx + 0x1c], 0x1f4
mov dword [ebp - 0x954], 4
mov dword [ebp - 0x928], 0
mov dword [ebp - 0x940], 0
call fcn.10123d80
add esp, 0xc
call fcn.1000c3bc
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10001d26
push 0x80004005
call fcn.100032c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x93c], esi
mov byte [ebp - 4], 2
push dword [ebx + 0x38]
push 0
push dword [ebx + 0x34]
call fcn.10123d80
add esp, 0xc
mov dword [ebx + 0x38], 0
lea eax, [ebp - 0x950]
push eax
lea eax, [ebp - 0x92c]
push eax
lea eax, [ebp - 0x944]
push eax
lea eax, [ebp - 0x948]
push eax
push dword [ebp - 0x920]
call fcn.1000c707
test eax, eax
je 0x100022ce
cmp dword [ebx + 4], 1
lea ecx, [ebp - 0x93c]
jne 0x1000218e
push 3
push 0x1017c74c
call fcn.10003310
test edi, edi
je 0x10001e9a
push 1
push 0x1017c754
lea ecx, [ebp - 0x92c]
call fcn.10002930
push 3
push dword [ebp - 0x934]
lea eax, [ebp - 0x910]
lea ecx, [ebp - 0x914]
mov dword [ebp - 0x914], eax
call fcn.10002830
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x914]
mov dword [ebp - 0x920], esi
call fcn.1000c3bc
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x10001dff
push 0x80004005
call fcn.100032c0
test esi, esi
jne 0x10001e11
test edi, edi
je 0x10001e11
push 0x80070057
call fcn.100032c0
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
jne 0x10001e21
call fcn.100031c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x934], esi
test edi, edi
js 0x10001e07
cmp edi, dword [esi - 8]
jg 0x10001e07
lea eax, [edi + edi]
mov dword [esi - 0xc], edi
push eax
push dword [ebp - 0x920]
xor ecx, ecx
push eax
push esi
mov word [eax + esi], cx
call fcn.10121fef
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x910]
mov eax, dword [ebp - 0x914]
cmp eax, ecx
je 0x10001e6d
push eax
call fcn.101225e7
add esp, 4
push dword [esi - 0xc]
lea ecx, [ebp - 0x92c]
push esi
call fcn.10002930
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10001e9a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor edx, edx
mov esi, dword [ebx + 0x28]
mov ecx, dword [esi - 0xc]
lea eax, [esi - 0xc]
mov dword [ebp - 0x918], eax
test ecx, ecx
je 0x10001f5f
mov eax, 0x400
sub eax, edx
cmp ecx, eax
jae 0x10001f5f
test edx, edx
je 0x10001eed
lea ecx, [ebp - 0x810]
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10001ed0
mov eax, dword [0x1017c764]
mov dword [ecx], eax
mov ax, word [0x1017c768]
mov word [ecx + 4], ax
mov ecx, esi
mov dword [ebp - 0x920], ecx
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10001ef5
lea edi, [ebp - 0x810]
sub esi, ecx
add edi, 0xfffffffe
jmp 0x10001f10
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10001f10
mov ecx, esi
lea eax, [ebp - 0x810]
shr ecx, 2
mov dword [ebp - 0x934], esi
mov esi, dword [ebp - 0x920]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x934]
mov dword [ebp - 0x940], eax
and ecx, 3
xor eax, eax
cmp eax, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x918]
sbb eax, eax
and eax, 2
add eax, dword [ecx]
add edx, eax
mov dword [ebp - 0x91c], edx
cmp dword [ebp - 0x948], 0x100b
mov eax, 0x4c03100
mov ecx, dword [ebx + 0x24]
mov esi, 0x4400100
cmove esi, eax
xor eax, eax
cmp dword [ecx - 0xc], eax
cmove ecx, eax
mov eax, dword [ebx + 0x20]
xor edx, edx
push edx
push edx
cmp dword [eax - 0xc], edx
push 3
push ecx
cmove eax, edx
push eax
push dword [ebp - 0x950]
push dword [ebp - 0x944]
push dword [ebx + 0x40]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov dword [ebp - 0x918], edi
test edi, edi
je 0x100022c6
push 0
push esi
mov esi, dword [ebp - 0x93c]
lea eax, [ebp - 0x95c]
push eax
push 0
push 0
push dword [ebp - 0x92c]
push esi
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x924], edi
test edi, edi
je 0x100022be
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jbe 0x1000202e
cmp dword [ebx + 0x10], 0
jbe 0x1000202e
cmp dword [ebx + 0x14], 0
jbe 0x1000202e
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push ecx
push 2
push dword [ebx + 0x40]
call edi
push 4
lea eax, [ebx + 0x10]
push eax
push 5
push dword [ebx + 0x40]
call edi
push 4
lea eax, [ebx + 0x14]
push eax
push 6
push dword [ebx + 0x40]
call edi
mov edi, dword [ebp - 0x924]
push dword [ebp - 0x930]
mov eax, dword [ebp - 0x91c]
push dword [ebp - 0x938]
push eax
push dword [ebp - 0x940]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x100022be
push 0
lea eax, [ebp - 0x954]
push eax
lea eax, [ebx + 0x1c]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x100022be
cmp dword [ebx + 0x1c], 0x1f4
jae 0x100022be
mov eax, dword [ebx + 0x44]
lea edi, [ebx + 0x44]
cmp dword [eax - 0xc], 0
je 0x10002134
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x400
or eax, ecx
jge 0x100020b4
push 0x400
mov ecx, edi
call fcn.10003210
push 0
lea eax, [ebp - 0x91c]
mov dword [ebp - 0x91c], 0x400
push eax
push dword [edi]
push 0xffff
push dword [ebp - 0x924]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x1000211e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10002134
push 0xffffffffffffffff
mov ecx, edi
call fcn.10002e90
push dword [ebp - 0x91c]
mov ecx, edi
call fcn.10003280
push 0
lea ecx, [ebp - 0x91c]
push ecx
push eax
push 0xffff
push dword [ebp - 0x924]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x10002134
push dword [ebp - 0x91c]
mov ecx, edi
call fcn.10002e90
push edi
lea ecx, [ebx + 0x48]
call fcn.10002f60
mov edi, dword [ebp - 0x924]
mov byte [ebp - 0x930], 1
push 0
push 0
lea eax, [ebp - 0x928]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x100022be
mov eax, dword [ebx + 0x38]
mov edi, dword [ebp - 0x928]
add eax, edi
mov dword [ebp - 0x920], eax
cmp eax, dword [ebx + 0x3c]
jbe 0x10002266
mov ecx, dword [ebx + 0x34]
push eax
test ecx, ecx
jne 0x1000221e
call fcn.101220d9
add esp, 4
jmp 0x1000222d
push 4
push 0x1017c758
call fcn.10003310
lea eax, [ebp - 0x920]
mov ecx, ebx
push eax
call fcn.10005840
lea edx, [ebp - 0x810]
mov ecx, dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x100021b0
mov edx, dword [ebp - 0x920]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100021e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x810]
mov edx, eax
mov dword [ebp - 0x940], eax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100021f2
mov eax, dword [ebp - 0x934]
sub edx, ecx
sar edx, 1
mov dword [ebp - 0x91c], edx
mov dword [ebp - 0x938], eax
mov dword [ebp - 0x930], edi
jmp 0x10001e9c
push ecx
call fcn.1012216b
mov edi, dword [ebp - 0x928]
add esp, 8
mov ecx, eax
mov dword [ebp - 0x938], ecx
test ecx, ecx
je 0x100022be
mov eax, dword [ebx + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.10123d80
mov eax, dword [ebp - 0x920]
add esp, 0xc
mov edi, dword [ebp - 0x928]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x938]
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x928]
push eax
mov eax, dword [ebx + 0x34]
add eax, dword [ebx + 0x38]
push edi
mov edi, dword [ebp - 0x924]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
neg eax
sbb al, al
xor edx, edx
and al, byte [ebp - 0x930]
movzx ecx, al
mov eax, dword [ebp - 0x928]
test eax, eax
cmove ecx, edx
add dword [ebx + 0x38], eax
mov dword [ebp - 0x930], ecx
test cl, cl
jne 0x10002141
cmp dword [ebx + 0x1c], 0x12c
sbb eax, eax
neg eax
mov dword [ebp - 0x94c], eax
mov edi, dword [ebp - 0x918]
jmp 0x100022d0
mov esi, dword [ebp - 0x93c]
jmp 0x100022d0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee2
jne 0x100022e1
mov byte [ebx + 0x2c], 1
test edi, edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x100022f4
mov eax, dword [ebp - 0x918]
push eax
call edi
mov eax, dword [ebp - 0x924]
test eax, eax
je 0x10002301
push eax
call edi
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 0x94c], 0
mov byte [ebp - 4], 1
setne bl
add esi, 0xfffffff0
or edi, 0xffffffff
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000233f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x92c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10002362
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x944]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10002386
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.10121948
mov esp, ebp
pop ebp
ret 0xc