Function at 0x456560
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x18], 0
je 0x4565cd
cmp dword [ebp + 0x10], 0
je 0x456582
mov dword [ebp - 0x34], 0x51a9a4
jmp 0x456589
mov dword [ebp - 0x34], 0x51a9ac
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004bc88e
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x4565b9
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004b89de
add esp, 0xc
mov dword [ebp - 0x38], eax
jmp 0x4565c0
mov dword [ebp - 0x38], 1
cmp dword [ebp - 0xc], 0
jne 0x4565cd
xor eax, eax
jmp 0x4567f9
mov dword [ebp - 8], 4
mov dword [ebp - 0x14], 0
push 0
push 0
push 0
push 0
push 0x51a9b4
call dword [0x5186b0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4567f7
push 0
push 0x84000002
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [0x5186a8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x45662e
mov eax, dword [ebp - 4]
push eax
call dword [0x5186cc]
xor eax, eax
jmp 0x4567f9
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x24]
push eax
push 0x20000013
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x5186c4]
test eax, eax
jne 0x456654
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0xc8
je 0x45666e
mov edx, dword [ebp - 4]
push edx
call dword [0x5186cc]
xor eax, eax
jmp 0x4567f9
cmp dword [ebp + 0x14], 0
je 0x45667c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
jmp 0x4566a2
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x20000005
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x5186c4]
test eax, eax
jne 0x4566a2
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x10], 0
je 0x4566bc
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [0x5186ac]
mov ecx, dword [ebp - 0x10]
add ecx, 1
push ecx
call fcn.004809a6
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004b8df0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x4566f7
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x45670c
cmp dword [ebp + 0x14], 0
jne 0x45670c
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0
call dword [0x5181d0]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
cmp edx, 0x400
jb 0x456740
mov dword [ebp - 0x3c], 0x400
jmp 0x456749
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x5186c8]
cmp dword [ebp - 0xc], 0
je 0x45678c
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004b86c7
add esp, 0x10
mov dword [ebp - 0x40], eax
jmp 0x456793
mov dword [ebp - 0x40], 1
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], 0
ja 0x45671a
cmp dword [ebp - 0xc], 0
je 0x4567c4
mov eax, dword [ebp - 0xc]
push eax
call fcn.004bc76c
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004b81f8
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call dword [0x5186cc]
mov eax, dword [ebp - 4]
push eax
call dword [0x5186cc]
cmp dword [ebp + 0xc], 0
jne 0x4567f0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.004ba1cb
add esp, 4
mov eax, 1
jmp 0x4567f9
xor eax, eax
mov esp, ebp
pop ebp
ret