Function at 0x100faff0
Capabilities:
Check for time delay via gettickcount
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122c4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0
push edi
mov edi, edx
mov dword [ebp - 0x14], esi
or ebx, 0x4000000
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
je 0x100fb058
push 4
lea eax, [ebp - 0x10]
push eax
push 5
push dword [esi]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
call esi
push 4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push 6
push dword [eax]
call esi
mov esi, dword [ebp - 0x14]
mov eax, dword [0x101599a8]
mov dword [ebp - 0x14], 0x101599a8
test eax, eax
je 0x100fb06f
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10155e84
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.1001cdf0
mov eax, dword [0x101599a8]
test eax, eax
je 0x100fb093
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x34], 0
jne 0x100fb0a4
xor eax, eax
jmp 0x100fb0af
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
cmp dword [edi + 0x14], 8
jb 0x100fb0b7
mov edi, dword [edi]
push ebx
push ecx
push eax
push edi
push dword [esi]
lea ecx, [ebp - 0x2c]
call fcn.10113690
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x100fb14c
mov ecx, dword [ebp - 0x28]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ecx, ecx
je 0x100fb0e3
push ecx
call edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x100fb0f0
push ecx
call edi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100fb10f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2c]
mov esi, eax
call edi
push esi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x100fb3e3
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fb3d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fb3f6
jmp 0x100fb3d9
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [ebp - 0x14]
push 0
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 4
push ecx
push 0x20000013
push eax
mov dword [ebp - 0x18], 0
call esi
mov eax, dword [ebp - 0x18]
cmp eax, 0xc8
je 0x100fb1c9
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
je 0x100fb189
push eax
call ebx
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x100fb199
push eax
call edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100fb1a3
push eax
call edi
cmp dword [ebp - 0x2c], 0
je 0x100fb10f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2c]
mov esi, eax
call edi
push esi
mov dword [ebp - 0x2c], 0
call ebx
jmp 0x100fb10f
mov eax, dword [ebp - 0x2c]
xor bl, bl
mov dword [ebp - 0x14], 4
mov dword [ebp + 0x10], 0
test eax, eax
je 0x100fb27f
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0x10]
push ecx
push 0x20000005
push eax
call esi
test eax, eax
je 0x100fb27f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x100fb296
mov esi, dword [ebp + 8]
mov ecx, esi
push 1
call fcn.1001b880
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x2c]
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], 0
mov dword [eax], 0
call fcn.10113640
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x100fb26c
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fb262
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fb3f6
push edx
push ecx
call fcn.1007306e
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x100fb2aa
mov eax, 0xa00000
mov bl, 1
mov dword [ebp + 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100fb2ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jbe 0x100fb2b7
lea ecx, [ebp - 0x2c]
call fcn.10113640
jmp 0x100fb10f
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
inc eax
push eax
mov ecx, esi
call fcn.1001b880
push dword [ebp + 0x10]
lea ecx, [ebp - 0x78]
call fcn.100f88a0
mov eax, dword [ebp + 0x10]
inc eax
push eax
push 0
push dword [esi + 8]
call fcn.10077450
add esp, 0xc
xor edi, edi
mov esi, dword [ebp - 0x6c]
cmp esi, dword [ebp + 0x10]
jae 0x100fb35f
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100fb301
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100fb35c
cmp dword [ebp - 0x10], 0
je 0x100fb315
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
ja 0x100fb35c
mov ecx, 0x1000
test bl, bl
jne 0x100fb328
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x78]
push edx
push ecx
lea ecx, [ebp - 0x2c]
mov eax, dword [eax + 8]
add eax, esi
push eax
call fcn.10113550
cmp eax, 0xffffffff
je 0x100fb359
test eax, eax
jne 0x100fb2e5
test bl, bl
jne 0x100fb359
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 3
jbe 0x100fb2e5
mov esi, dword [ebp - 0x6c]
cmp esi, dword [ebp + 0x10]
je 0x100fb372
test bl, bl
jne 0x100fb376
lea ecx, [ebp - 0x2c]
call fcn.10113640
jmp 0x100fb10f
test bl, bl
je 0x100fb38f
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
cmp esi, 0xa00000
jae 0x100fb397
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [eax + esi], 0
jmp 0x100fb397
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x2c]
call fcn.10113640
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x100fb26c
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fb262
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100fb262
jmp 0x100fb3f6
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
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10080da8
int3