Function at 0x10016218
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a7b1
mov eax, dword fs:[0]
push eax
sub esp, 0x3ac
mov eax, dword [0x1002005c]
xor eax, ebp
mov dword [ebp - 0x60], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3b0], ecx
mov eax, dword [ebp - 0x3b0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3b0]
call dword [eax + 4]
movzx eax, al
test eax, eax
je 0x1001626c
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x10016bb3
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
call fcn.10001448
and dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001000
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1e4], eax
push dword [ebp - 0x1e4]
lea ecx, [ebp - 0x50]
call fcn.10001099
movzx eax, al
test eax, eax
jne 0x100162eb
or dword [ebp - 0x184], 0xffffffff
or dword [ebp - 0x180], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x200]
call fcn.10002a85
mov eax, dword [ebp - 0x184]
mov edx, dword [ebp - 0x180]
jmp 0x10016bb3
and dword [ebp - 0x2c], 0
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 3
jne 0x1001630e
mov dword [ebp - 0x10], 3
jmp 0x1001637a
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 1
jne 0x10016334
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x2c]
or eax, 0x8000000
mov dword [ebp - 0x2c], eax
jmp 0x1001637a
or dword [ebp - 0x18c], 0xffffffff
or dword [ebp - 0x188], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
call fcn.10002a85
mov eax, dword [ebp - 0x18c]
mov edx, dword [ebp - 0x188]
jmp 0x10016bb3
mov eax, dword [ebp - 0x40]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x100163c9
mov ax, word [ebp - 0x44]
mov word [ebp - 0x22a], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x230], eax
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push 0
push 0
push dword [ebp - 0x22a]
push dword [ebp - 0x230]
push dword [ebp + 8]
call dword [0x10021e54]
mov dword [ebp - 0x28], eax
jmp 0x1001641b
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x238], eax
mov ax, word [ebp - 0x44]
mov word [ebp - 0x23a], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x240], eax
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push dword [ebp - 0x23a]
push dword [ebp - 0x240]
push dword [ebp + 8]
call dword [0x10021e54]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10016467
or dword [ebp - 0x194], 0xffffffff
or dword [ebp - 0x190], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
call fcn.10002a85
mov eax, dword [ebp - 0x194]
mov edx, dword [ebp - 0x190]
jmp 0x10016bb3
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x260], eax
push dword [ebp - 0x260]
lea ecx, [ebp - 0x14]
call fcn.10001448
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x268], eax
push dword [ebp - 0x268]
lea ecx, [ebp - 0x14]
call fcn.1000240e
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 3
jne 0x100168d9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x274], eax
push 0
push 0xa0000000
push 0x10020f6c
push 0
push 0
push dword [ebp - 0x274]
push str.HEAD
push dword [ebp - 0x28]
call dword [0x10021e50]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10016557
push dword [ebp - 0x28]
call dword [0x10021e3c]
or dword [ebp - 0x19c], 0xffffffff
or dword [ebp - 0x198], 0xffffffff
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
call fcn.10002a85
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
call fcn.10002a85
mov eax, dword [ebp - 0x19c]
mov edx, dword [ebp - 0x198]
jmp 0x10016bb3
and dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 4
push 0
push 0
push 0
push 0
push dword [ebp - 0x18]
call dword [0x10021e44]
test eax, eax
jne 0x100165ea
push dword [ebp - 0x18]
call dword [0x10021e3c]
push dword [ebp - 0x28]
call dword [0x10021e3c]
or dword [ebp - 0x1a4], 0xffffffff
or dword [ebp - 0x1a0], 0xffffffff
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x298], eax
mov ecx, dword [ebp - 0x298]
call fcn.10002a85
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
call fcn.10002a85
mov eax, dword [ebp - 0x1a4]
mov edx, dword [ebp - 0x1a0]
jmp 0x10016bb3
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x20000013
push dword [ebp - 0x18]
call dword [0x10021e48]
test eax, eax
jne 0x10016667
or dword [ebp - 0x1ac], 0xffffffff
or dword [ebp - 0x1a8], 0xffffffff
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x2b8], eax
mov ecx, dword [ebp - 0x2b8]
call fcn.10002a85
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
call fcn.10002a85
mov eax, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1a8]
jmp 0x10016bb3
cmp dword [ebp - 0x58], 0x197
je 0x1001667d
cmp dword [ebp - 0x58], 0x191
jne 0x10016741
mov eax, dword [ebp - 0x3b0]
push dword [eax + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push dword [ebp - 0x18]
push 0x501
mov eax, dword [ebp - 0x3b0]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_PostMessageA]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x3b0]
push dword [eax + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x3b0]
movzx eax, byte [eax + 0x26]
test eax, eax
jne 0x10016737
push dword [ebp - 0x18]
call dword [0x10021e3c]
push dword [ebp - 0x28]
call dword [0x10021e3c]
or dword [ebp - 0x1b4], 0xffffffff
or dword [ebp - 0x1b0], 0xffffffff
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x2d8], eax
mov ecx, dword [ebp - 0x2d8]
call fcn.10002a85
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
call fcn.10002a85
mov eax, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x1b0]
jmp 0x10016bb3
jmp 0x10016562
cmp dword [ebp - 0x58], 0x12e
je 0x10016753
cmp dword [ebp - 0x58], 0x12d
jne 0x100167c9
mov dword [ebp - 0x5c], 0x104
push 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x16c]
push eax
push 0x21
push dword [ebp - 0x18]
call dword [0x10021e48]
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x30]
call fcn.10002649
push dword [ebp - 0x18]
call dword [0x10021e3c]
and dword [ebp - 0x18], 0
push dword [ebp - 0x28]
call dword [0x10021e3c]
and dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2fc]
call fcn.10002a85
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
jmp 0x1001627b
cmp dword [ebp - 0x58], 0xc8
je 0x10016845
push dword [ebp - 0x18]
call dword [0x10021e3c]
push dword [ebp - 0x28]
call dword [0x10021e3c]
or dword [ebp - 0x1bc], 0xffffffff
or dword [ebp - 0x1b8], 0xffffffff
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x318]
call fcn.10002a85
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0x334], eax
mov ecx, dword [ebp - 0x334]
call fcn.10002a85
mov eax, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1b8]
jmp 0x10016bb3
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000005
push dword [ebp - 0x18]
call dword [0x10021e48]
test eax, eax
jne 0x100168d4
push dword [ebp - 0x18]
call dword [0x10021e3c]
push dword [ebp - 0x28]
call dword [0x10021e3c]
or dword [ebp - 0x1c4], 0xffffffff
or dword [ebp - 0x1c0], 0xffffffff
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
call fcn.10002a85
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x354]
call fcn.10002a85
mov eax, dword [ebp - 0x1c4]
mov edx, dword [ebp - 0x1c0]
jmp 0x10016bb3
jmp 0x10016b35
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 1
jne 0x10016b35
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0
jle 0x1001694a
xor eax, eax
jl 0x1001691d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
jge 0x10016927
push 0x80070057
call fcn.10002a19
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 0x361], al
movsx eax, byte [ebp - 0x361]
cmp eax, 0x2f
jne 0x1001694a
push 1
push 0
lea ecx, [ebp - 0x14]
call fcn.100014cf
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
push 0x1002126c
lea ecx, [ebp - 0x170]
call fcn.10002a3c
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
push str.SIZE__s_r_n
lea eax, [ebp - 0x170]
push eax
call fcn.10002730
add esp, 0xc
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x368], eax
push 0
push dword [ebp - 0x3b0]
push dword [ebp - 0x368]
push 0
push 0
push dword [ebp - 0x28]
call dword [0x10021e74]
test eax, eax
je 0x10016b17
and dword [ebp - 0x174], 0
lea eax, [ebp - 0x174]
push eax
push 0
lea eax, [ebp - 0x178]
push eax
call dword [0x10021e70]
mov eax, dword [ebp - 0x174]
inc eax
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x36c], eax
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x36c]
lea ecx, [ebp - 0x170]
call fcn.100029b4
push eax
lea eax, [ebp - 0x178]
push eax
call dword [0x10021e70]
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x370], eax
push dword [ebp - 0x370]
lea ecx, [ebp - 0x170]
call fcn.10002750
push 3
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x170]
call fcn.10001876
mov dword [ebp - 0x3b4], eax
mov eax, dword [ebp - 0x3b4]
mov dword [ebp - 0x374], eax
mov byte [ebp - 4], 4
push 0x1001ce44
mov ecx, dword [ebp - 0x374]
call fcn.10001ab4
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x1c5], al
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1cc]
sub eax, 0x10
mov dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x378]
call fcn.10002a85
movzx eax, byte [ebp - 0x1c5]
test eax, eax
je 0x10016b17
push 3
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x170]
call fcn.10001839
mov dword [ebp - 0x3b8], eax
mov eax, dword [ebp - 0x3b8]
mov dword [ebp - 0x37c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x37c]
call fcn.10001afc
mov ecx, eax
call fcn.10001b79
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x380]
mov eax, dword [eax]
mov dword [ebp - 0x384], eax
push dword [ebp - 0x384]
call fcn.10013f7c
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1d0]
sub eax, 0x10
mov dword [ebp - 0x388], eax
mov ecx, dword [ebp - 0x388]
call fcn.10002a85
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x170]
sub eax, 0x10
mov dword [ebp - 0x38c], eax
mov ecx, dword [ebp - 0x38c]
call fcn.10002a85
cmp dword [ebp - 0x18], 0
je 0x10016b44
push dword [ebp - 0x18]
call dword [0x10021e3c]
cmp dword [ebp - 0x28], 0
je 0x10016b53
push dword [ebp - 0x28]
call dword [0x10021e3c]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x390], eax
mov ecx, dword [ebp - 0x390]
call fcn.10002a85
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10001394
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
sub eax, 0x10
mov dword [ebp - 0x3ac], eax
mov ecx, dword [ebp - 0x3ac]
call fcn.10002a85
mov eax, dword [ebp - 0x1dc]
mov edx, dword [ebp - 0x1d8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x60]
xor ecx, ebp
call fcn.10009868
leave
ret 8