Function at 0x40c330
Capabilities:
Check http status code

Disassembly:
push 0xffffffffffffffff
push 0x4e2e57
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
mov eax, dword [0x52a0ac]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x184], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x194]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x188], 3
call fcn.004d858e
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x1a0], 4
call fcn.0040c240
test al, al
je 0x40c58b
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 3
jne 0x40c3d3
jmp 0x40c3ed
cmp ecx, 1
jne 0x40c58b
cmp byte [0x52c468], bl
jne 0x40c58b
mov eax, 0x8000000
mov edx, dword [esp + 0x20]
push ebx
push eax
push ecx
cmp dword [edx - 8], ebx
jne 0x40c40f
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x19c]
push ebx
push ebx
push edx
push eax
push ecx
jmp 0x40c427
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x1a0]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edx
push eax
call dword [0x52c488]
mov edi, eax
cmp edi, ebx
je 0x40c58b
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 3
mov dword [esp + 0x24], eax
jne 0x40c600
mov ecx, dword [esp + 0x10]
push ebx
push 0xa0000000
push 0x50f570
push ebx
push ebx
push ecx
push str.HEAD
push edi
call dword [0x52c48c]
mov esi, eax
cmp esi, ebx
je 0x40c584
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], 4
push ebx
push ebx
push ebx
push ebx
push esi
call dword [0x52c498]
test eax, eax
je 0x40c57d
lea edx, [esp + 0x38]
push ebx
lea eax, [esp + 0x34]
push edx
push eax
push 0x20000013
push esi
call dword [0x52c494]
test eax, eax
je 0x40c58b
mov eax, dword [esp + 0x30]
cmp eax, 0x197
je 0x40c4c2
cmp eax, 0x191
jne 0x40c4dc
mov ecx, dword [esp + 0x18c]
push esi
push ecx
mov ecx, ebp
call fcn.0040c1b0
test al, al
je 0x40c57d
jmp 0x40c47e
cmp eax, 0x12e
je 0x40c4ea
cmp eax, 0x12d
jne 0x40c557
lea edx, [esp + 0x34]
push ebx
lea eax, [esp + 0x40]
push edx
push eax
push 0x21
push esi
mov dword [esp + 0x48], 0x104
call dword [0x52c494]
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004d86a9
push esi
call dword [0x52c4a0]
push edi
xor esi, esi
call dword [0x52c4a0]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.0040c240
test al, al
je 0x40c58b
jmp 0x40c3c6
cmp eax, 0xc8
jne 0x40c57d
lea eax, [esp + 0x38]
push ebx
lea ecx, [esp + 0x28]
push eax
push ecx
push 0x20000005
push esi
call dword [0x52c494]
test eax, eax
jne 0x40c62e
push esi
call dword [0x52c4a0]
push edi
call dword [0x52c4a0]
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 3
call fcn.004d8520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 2
call fcn.004d8520
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 1
call fcn.004d8520
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], bl
call fcn.004d8520
lea ecx, [esp + 0x14]
mov dword [esp + 0x184], 0xffffffff
call fcn.004d8520
or eax, 0xffffffff
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x178
ret 0xc
cmp ecx, 1
jne 0x40c632
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x40]
push 0x84000000
push edx
push eax
push edi
call dword [0x52c470]
mov ecx, dword [esp + 0x5c]
mov esi, eax
neg eax
sbb eax, eax
and eax, ecx
mov dword [esp + 0x24], eax
jmp 0x40c632
mov eax, dword [esp + 0x24]
cmp esi, ebx
je 0x40c641
push esi
call dword [0x52c4a0]
mov eax, dword [esp + 0x24]
cmp edi, ebx
je 0x40c650
push edi
call dword [0x52c4a0]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x184], 3
call fcn.004d8520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 2
call fcn.004d8520
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 1
call fcn.004d8520
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], bl
call fcn.004d8520
lea ecx, [esp + 0x14]
mov dword [esp + 0x184], 0xffffffff
call fcn.004d8520
mov eax, esi
jmp 0x40c5e5