Function at 0x100facc0
Capabilities:
Check http status code
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011f506
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x20], edx
mov ebx, ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x24], esi
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push eax
push 2
push esi
mov dword [ebp - 0x1c], 0x7d0
call edi
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 3
push eax
push 3
push esi
call edi
mov eax, dword [0x101558c8]
mov dword [ebp - 0x1c], 0x101558c8
test eax, eax
je 0x100fad40
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10151e84
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.1001cdf0
mov eax, dword [0x101558c8]
test eax, eax
je 0x100fad61
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
cmp dword [ebx + 0x14], 8
jb 0x100fad78
mov ebx, dword [ebx]
push 0x4400000
push ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x34]
call fcn.1010fd00
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 0
test eax, eax
je 0x100fadf2
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [ebp - 0x18]
cmp eax, 0xc8
je 0x100fae76
cmp eax, 0x12e
je 0x100fae76
cmp eax, 0x12d
je 0x100fae76
cmp eax, 0x133
je 0x100fae76
test eax, eax
je 0x100fadf2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x30]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x100fae06
push eax
call ebx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100fae10
push eax
call ebx
cmp dword [ebp - 0x34], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x100fae39
call edi
push dword [ebp - 0x34]
mov edi, eax
call ebx
push edi
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x100faf0a
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100faf00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100faf44
jmp 0x100faf00
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x64]
mov edx, edi
call fcn.100e7220
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.100e4cc0
test al, al
jne 0x100fae9b
lea ecx, [ebp - 0x64]
call fcn.100e4fc0
push 0
push 0
push 0
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.100f6d10
mov edx, dword [ebp - 0x50]
add esp, 0xc
mov byte [ebp - 0x11], al
cmp edx, 8
jb 0x100faee7
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100faedd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100faf49
push edx
push ecx
call fcn.100703b3
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
jmp 0x100fadf6
push edx
push ecx
call fcn.100703b3
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
test esi, esi
je 0x100faf30
call edi
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1007e0fa
call fcn.1007e0fa
int3