Function at 0x100fa9b0
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122c29
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
mov eax, dword [0x10159978]
mov dword [ebp - 0x1c], 0x10159978
test eax, eax
je 0x100fa9f3
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10155e84
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.1001cdf0
mov eax, dword [0x10159978]
test eax, eax
je 0x100faa14
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 4
lea esi, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
lea edx, [ebp + 0x38]
push 0xffffffffffffffff
cmovae esi, dword [ebp - 0x48]
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x4c], 8
lea eax, [ebp + 8]
push esi
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 8
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
push ecx
push dword [ebp + 0x48]
cmovae eax, dword [ebp + 8]
push edx
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.10113850
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x100faa94
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100faa8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fafc2
push edx
push ecx
call fcn.1007306e
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x1c], 4
test eax, eax
je 0x100faea7
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [ebp - 0x1c]
push 0
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
push eax
call esi
cmp dword [ebp - 0x18], 0xc8
jne 0x100faea7
mov eax, dword [ebp - 0x30]
push ebx
xor bl, bl
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x10], 0
test eax, eax
je 0x100fac22
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x20000005
push eax
call esi
test eax, eax
je 0x100fac22
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x100fac3d
push 1
mov ecx, edi
call fcn.1001b880
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x14]
mov byte [eax], bl
mov dword [edi + 0xc], 0
mov dword [ecx], 0
lea ecx, [ebp - 0x30]
call fcn.10113640
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x100fab83
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fab79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fafc7
push edx
push ecx
call fcn.1007306e
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x100fabd1
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fabc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fafcc
push edx
push ecx
call fcn.1007306e
add esp, 8
mov edx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp edx, 8
jb 0x100fae32
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fae28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fafd1
jmp 0x100fae28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x100fae45
mov eax, 0xa00000
mov bl, 1
mov dword [ebp - 0x10], eax
inc eax
mov ecx, edi
push eax
call fcn.1001b880
mov esi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x60], eax
xorps xmm0, xmm0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x58], esi
xor esi, esi
movsd qword [ebp - 0x50], xmm0
push eax
push esi
push dword [edi + 8]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
movsd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
call fcn.10077450
mov eax, dword [ebp - 0x10]
add esp, 0xc
xor edi, edi
test eax, eax
je 0x100face3
mov ecx, 0x1000
test bl, bl
jne 0x100faca0
sub eax, esi
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x60]
push edx
push ecx
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 8]
add eax, esi
push eax
call fcn.10113550
cmp eax, 0xffffffff
je 0x100facdd
test eax, eax
jne 0x100facd1
test bl, bl
jne 0x100facdd
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
ja 0x100facdd
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x10]
cmp esi, eax
jb 0x100fac90
jmp 0x100face3
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x54]
cmp esi, eax
je 0x100fadd4
test bl, bl
jne 0x100fadd8
lea ecx, [ebp - 0x30]
call fcn.10113640
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x100fad35
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fad2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fafd6
push edx
push ecx
call fcn.1007306e
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x100fad83
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fad79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fafdb
push edx
push ecx
call fcn.1007306e
add esp, 8
mov edx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp edx, 8
jb 0x100fae94
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fae8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fafe0
jmp 0x100fae8a
test bl, bl
je 0x100faddf
mov ecx, dword [ebp - 0x14]
mov dword [ecx], esi
jmp 0x100fade4
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x100fadf4
push eax
call edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100fadfe
push eax
call edi
cmp dword [ebp - 0x30], 0
je 0x100fab49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov esi, eax
call edi
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100fab49
push edx
push ecx
call fcn.1007306e
add esp, 8
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x30]
call fcn.10113640
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x100fad35
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fad2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100fad2b
jmp 0x100fafc7
push edx
push ecx
call fcn.1007306e
add esp, 8
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x100faeb7
push eax
call edi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100faec1
push eax
call edi
cmp dword [ebp - 0x30], 0
je 0x100faee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30]
mov esi, eax
call edi
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x100faf1c
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100faf12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fafc7
push edx
push ecx
call fcn.1007306e
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x100faf66
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100faf5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fafc7
push edx
push ecx
call fcn.1007306e
add esp, 8
mov edx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp edx, 8
jb 0x100fafb0
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fafa6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fafc7
push edx
push ecx
call fcn.1007306e
add esp, 8
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.10080da8
call fcn.10080da8
call fcn.10080da8
call fcn.10080da8
call fcn.10080da8
call fcn.10080da8
call fcn.10080da8
int3