Function at 0x10004040
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x10020060]
xor eax, ebp
mov dword [ebp - 0x58], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d4], ecx
mov eax, dword [ebp - 0x2d4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2d4]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
test ecx, ecx
je 0x10004093
or eax, 0xffffffff
jmp 0x10004686
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x28]
call fcn.10005e90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.10001030
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1000ba00
push eax
lea ecx, [ebp - 0x48]
call fcn.10001090
movzx eax, al
test eax, eax
jne 0x100040fa
mov dword [ebp - 0x2a8], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2a8]
jmp 0x10004686
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x48]
call fcn.10009e70
cmp eax, 3
jne 0x10004121
mov dword [ebp - 0x10], 3
jmp 0x100041ae
lea ecx, [ebp - 0x48]
call fcn.10009e70
cmp eax, 1
jne 0x1000417e
movzx ecx, byte [0x10021ed9]
test ecx, ecx
je 0x10004169
mov dword [ebp - 0x2ac], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2ac]
jmp 0x10004686
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x24]
or edx, 0x8000000
mov dword [ebp - 0x24], edx
jmp 0x100041ae
mov dword [ebp - 0x2b0], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2b0]
jmp 0x10004686
lea ecx, [ebp - 0x48]
call fcn.10001290
test eax, eax
jne 0x100041ec
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 0
lea ecx, [ebp - 0x48]
call fcn.100011d0
movzx edx, ax
push edx
lea ecx, [ebp - 0x48]
call fcn.100011f0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [0x10021f74]
mov dword [ebp - 0x20], eax
jmp 0x1000422a
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x48]
call fcn.10001230
push eax
lea ecx, [ebp - 0x48]
call fcn.10001210
push eax
lea ecx, [ebp - 0x48]
call fcn.100011d0
movzx eax, ax
push eax
lea ecx, [ebp - 0x48]
call fcn.100011f0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x10021f74]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10004260
mov dword [ebp - 0x2b4], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2b4]
jmp 0x10004686
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x48]
call fcn.10001250
push eax
lea ecx, [ebp - 0x14]
call fcn.10005e90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.10001270
push eax
lea ecx, [ebp - 0x14]
call fcn.10005600
lea ecx, [ebp - 0x48]
call fcn.10009e70
cmp eax, 3
jne 0x100045e7
push 0
push 0xa0000000
push 0x10020f7c
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.1000ba00
push eax
push str.HEAD
mov edx, dword [ebp - 0x20]
push edx
call dword [0x10021f70]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10004315
mov eax, dword [ebp - 0x20]
push eax
call dword [0x10021f5c]
mov dword [ebp - 0x2b8], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100063c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2b8]
jmp 0x10004686
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 4
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x10021f64]
test eax, eax
jne 0x10004389
mov edx, dword [ebp - 0x18]
push edx
call dword [0x10021f5c]
mov eax, dword [ebp - 0x20]
push eax
call dword [0x10021f5c]
mov dword [ebp - 0x2bc], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100063c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2bc]
jmp 0x10004686
push 0
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0x20000013
mov eax, dword [ebp - 0x18]
push eax
call dword [0x10021f68]
test eax, eax
jne 0x100043e2
mov dword [ebp - 0x2c0], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100063c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2c0]
jmp 0x10004686
cmp dword [ebp - 0x50], 0x197
je 0x100043f8
cmp dword [ebp - 0x50], 0x191
jne 0x1000449d
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0x501
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2d4]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x2d4]
movzx eax, byte [edx + 0x26]
test eax, eax
jne 0x10004493
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x10021f5c]
mov edx, dword [ebp - 0x20]
push edx
call dword [0x10021f5c]
mov dword [ebp - 0x2c4], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100063c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2c4]
jmp 0x10004686
jmp 0x10004323
cmp dword [ebp - 0x50], 0x12e
je 0x100044af
cmp dword [ebp - 0x50], 0x12d
jne 0x1000451f
mov dword [ebp - 0x54], 0x104
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x164]
push ecx
push 0x21
mov edx, dword [ebp - 0x18]
push edx
call dword [0x10021f68]
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x28]
call fcn.10005e70
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x10021f5c]
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x20]
push edx
call dword [0x10021f5c]
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100063c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
jmp 0x100040a6
cmp dword [ebp - 0x50], 0xc8
je 0x10004578
mov eax, dword [ebp - 0x18]
push eax
call dword [0x10021f5c]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x10021f5c]
mov dword [ebp - 0x2c8], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100063c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2c8]
jmp 0x10004686
push 0
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x20000005
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x10021f68]
test eax, eax
jne 0x100045e5
mov edx, dword [ebp - 0x18]
push edx
call dword [0x10021f5c]
mov eax, dword [ebp - 0x20]
push eax
call dword [0x10021f5c]
mov dword [ebp - 0x2cc], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100063c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2cc]
jmp 0x10004686
jmp 0x10004630
lea ecx, [ebp - 0x48]
call fcn.10009e70
cmp eax, 1
jne 0x10004630
push 0
push 0x84000000
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1000ba00
push eax
mov edx, dword [ebp - 0x20]
push edx
call dword [0x10021f8c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10004629
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x1c], eax
jmp 0x10004630
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
je 0x10004640
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x10021f5c]
cmp dword [ebp - 0x20], 0
je 0x10004650
mov edx, dword [ebp - 0x20]
push edx
call dword [0x10021f5c]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2d0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.100063c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100035d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100063c0
mov eax, dword [ebp - 0x2d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x58]
xor ecx, ebp
call fcn.1000f281
mov esp, ebp
pop ebp
ret 8