Function at 0x100fa390
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122baf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov eax, dword [0x101599a8]
mov dword [ebp - 0x14], 0x101599a8
test eax, eax
je 0x100fa3c9
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10155e84
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.1001cdf0
mov eax, dword [0x101599a8]
test eax, eax
je 0x100fa3ea
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push esi
mov byte [ebp - 4], 4
lea esi, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
lea edx, [ebp + 0x38]
push dword [ebp - 0x2c]
cmovae esi, dword [ebp - 0x3c]
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 - 0x24]
call fcn.10113850
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], 0
test eax, eax
je 0x100fa467
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 0x10], 0xc8
jne 0x100fa467
mov bl, 1
jmp 0x100fa469
xor bl, bl
mov eax, dword [ebp - 0x20]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x100fa47a
push eax
call edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100fa484
push eax
call edi
cmp dword [ebp - 0x24], 0
je 0x100fa4a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x24]
mov esi, eax
call edi
push esi
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x28]
pop edi
cmp edx, 8
jb 0x100fa4e0
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fa4d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fa5d4
push edx
push ecx
call fcn.1007306e
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
cmp edx, 8
jb 0x100fa52e
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fa524
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fa5d9
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 0x100fa578
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fa56e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fa5de
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 0x100fa5c2
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100fa5b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100fa5e3
push edx
push ecx
call fcn.1007306e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.10080da8
call fcn.10080da8
call fcn.10080da8
call fcn.10080da8
int3