Function at 0x1008e9b0
Capabilities:
Check http status code
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1884
call fcn.10087600
mov eax, dword [0x100df3e0]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1884], ecx
mov dword [ebp - 0x1828], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1874], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1834], 0
mov dword [ebp - 0x1824], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x182c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1830], 0
mov word [ebp - 0x1820], 0
push 0x3fe
push 0
lea ecx, [ebp - 0x181e]
push ecx
call fcn.10070d10
add esp, 0xc
push 0x1400
push 0
lea edx, [ebp - 0x1420]
push edx
call fcn.10070d10
add esp, 0xc
mov dword [ebp - 0x1870], 0
push 0x38
push 0
lea eax, [ebp - 0x186c]
push eax
call fcn.10070d10
add esp, 0xc
mov dword [ebp - 0x1870], 0x3c
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x183c], ecx
lea edx, [ebp - 0x1420]
mov dword [ebp - 0x1860], edx
lea eax, [ebp - 0xc20]
mov dword [ebp - 0x184c], eax
lea ecx, [ebp - 0x1820]
mov dword [ebp - 0x186c], ecx
lea edx, [ebp - 0x820]
mov dword [ebp - 0x1844], edx
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x1854], eax
mov dword [ebp - 0x1850], 0x200
mov ecx, dword [ebp - 0x1850]
mov dword [ebp - 0x1840], ecx
mov edx, dword [ebp - 0x1840]
mov dword [ebp - 0x1868], edx
mov eax, dword [ebp - 0x1868]
mov dword [ebp - 0x1848], eax
mov ecx, dword [ebp - 0x1848]
mov dword [ebp - 0x185c], ecx
mov edx, dword [ebp - 0x185c]
mov dword [ebp - 0x1838], edx
mov eax, dword [ebp - 0x1884]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1884]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x1870]
push ecx
push SysReAllocString
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.1008d960
add esp, 0x10
mov eax, dword [ebp - 0x1844]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1006e830
add esp, 8
mov dword [ebp - 0x1844], eax
push 0x10000000
push 0
push 0
push 1
push 0x100c0bd0
call fcn.1008d5a0
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1008eb93
jmp 0x1008efe4
push 0
push 0xffffffffffffffff
push 0x1008e790
mov edx, dword [ebp - 0x14]
push edx
call fcn.1008d460
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x1008ebf2
mov eax, dword [ebp + 0xc]
push eax
call fcn.1006e05b
add esp, 4
test eax, eax
jbe 0x1008ebf2
mov dword [ebp - 0x1880], 3
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x187c], ecx
mov dword [ebp - 0x1878], 0
push 0xc
lea edx, [ebp - 0x1880]
push edx
push 0x26
mov eax, dword [ebp - 0x14]
push eax
call fcn.1008d4b0
add esp, 0x10
mov dword [ebp - 8], 4
push 0
mov cx, word [ebp - 0x1858]
push ecx
mov edx, dword [ebp - 0x1860]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.1008d910
add esp, 0x10
mov dword [ebp - 0x1874], eax
cmp dword [ebp - 0x1874], 0
jne 0x1008ec48
push 0
mov cx, word [ebp - 0x1858]
push ecx
mov edx, dword [ebp - 0x1860]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.1008d910
add esp, 0x10
mov dword [ebp - 0x1874], eax
cmp dword [ebp - 0x1874], 0
jne 0x1008ec5b
jmp 0x1008efe4
push 0x100
push 0
push 0
push 0x100c0c50
mov ecx, dword [ebp - 0x1844]
push ecx
push 0x100c0c64
mov edx, dword [ebp - 0x1874]
push edx
call fcn.1008d8b0
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1008ecb9
push 0x100
push 0
push 0
push str.HTTP_1.1
mov eax, dword [ebp - 0x1844]
push eax
push 0x100c0c80
mov ecx, dword [ebp - 0x1874]
push ecx
call fcn.1008d8b0
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1008ecc9
jmp 0x1008efe4
mov edx, dword [ebp - 0x1884]
add edx, 0x44
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x1884]
mov dword [ecx + 0x34], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x1884]
mov dword [edx + 0x38], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x1884]
mov dword [ecx + 0x3c], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x1884]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x1884]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x1884]
mov edx, dword [ecx + 0x40]
push edx
mov eax, dword [ebp - 0x1884]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 0x1884]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x1884]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1008e370
add esp, 0x18
mov dword [ebp - 0x182c], eax
cmp dword [ebp - 0x182c], 0
jne 0x1008ed8e
mov ecx, dword [ebp - 0x1884]
cmp dword [ecx + 0x30], 0
jne 0x1008edc5
mov edx, dword [ebp - 0x1884]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1884]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x1884]
add edx, 0x44
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1008efe4
mov eax, dword [ebp - 0x1884]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x1834], ecx
mov edx, dword [ebp - 0x1834]
push edx
call fcn.1008de50
add esp, 4
mov eax, dword [ebp - 0x1884]
add eax, 0x44
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x1834]
push ecx
call fcn.1008de50
add esp, 4
push 4
lea edx, [ebp - 0x1834]
push edx
push 0x2d
mov eax, dword [ebp - 0x1834]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.1008d4b0
add esp, 0x10
test eax, eax
jne 0x1008ee4a
mov edx, dword [ebp - 0x1884]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1884]
mov dword [ecx + 0x40], 0
jmp 0x1008efe4
mov edx, dword [ebp - 0x1834]
push edx
call fcn.1008de10
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x1828], eax
jne 0x1008ee72
jmp 0x1008efe4
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x1834]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.1008d850
add esp, 0x1c
test eax, eax
jne 0x1008eecf
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x1834]
mov eax, dword [edx + 0x20]
push eax
call fcn.1008d850
add esp, 0x1c
test eax, eax
jne 0x1008eecf
mov ecx, dword [ebp - 0x1834]
push ecx
call fcn.1008ddf0
add esp, 4
jmp 0x1008efe4
mov edx, dword [ebp - 0x1834]
push edx
call fcn.1008ddf0
add esp, 4
mov eax, dword [ebp - 0x1884]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1884]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
push 0xea60
push 0
lea ecx, [ebp - 0x10]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1008ef1c
jmp 0x1008efe4
mov edx, dword [ebp - 0x1834]
push edx
call fcn.1008de10
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x1828], eax
jne 0x1008ef44
jmp 0x1008efe4
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1824]
push ecx
push 0
push 0x20000013
mov edx, dword [ebp - 0x1834]
mov eax, dword [edx + 0x20]
push eax
call fcn.1008d7a0
add esp, 0x18
cmp dword [ebp - 0x1824], 0xc8
je 0x1008ef93
mov dword [ebp - 0x1828], 0
mov ecx, dword [ebp - 0x1834]
push ecx
call fcn.1008ddf0
add esp, 4
jmp 0x1008efe4
mov dword [ebp - 0x1830], 0
lea edx, [ebp - 0x1830]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x20000005
mov edx, dword [ebp - 0x1834]
mov eax, dword [edx + 0x20]
push eax
call fcn.1008d7a0
add esp, 0x18
test eax, eax
je 0x1008efd5
mov ecx, dword [ebp - 0x1884]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 0x1834]
push eax
call fcn.1008ddf0
add esp, 4
mov ecx, dword [ebp - 0x1884]
add ecx, 0x44
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x1884]
mov eax, dword [ebp - 0x1874]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x1884]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x1884]
add eax, 0x44
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x1834], 0
je 0x1008f041
mov ecx, dword [ebp - 0x1834]
push ecx
call fcn.1008e050
add esp, 4
mov dword [ebp - 0x1834], 0
mov eax, dword [ebp - 0x1828]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1006e071
mov esp, ebp
pop ebp
ret 8