Function at 0x456ce0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df715
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x51cbc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xcc], ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xd4], ecx
mov edx, dword [edi + 0x38]
test edx, edx
je 0x456d41
mov eax, dword [ecx]
push edx
push 0x10000
call dword [eax + 0x7c]
jmp 0x4570e7
cmp dword [edi + 0x34], 0xc8
mov esi, 0xc0000001
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
je 0x456d7d
mov esi, 0xc0010002
jmp 0x4570da
and dword [ebp - 0xb0], 0xfffffe00
mov dword [ebp - 4], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.00439710
lea eax, [edi + 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405e90
push 1
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc8], 3
push eax
lea ecx, [ebp - 0xa0]
call fcn.0047c0a0
test al, al
je 0x456e0e
push dword [0x521434]
lea ecx, [ebp - 0xb8]
call fcn.0043f000
test al, al
jne 0x456e0e
mov bl, 1
jmp 0x456e10
xor bl, bl
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 3
call fcn.00406f90
test bl, bl
je 0x4570a3
push 0x4f811a
push str.error_code
lea ecx, [ebp - 0xb8]
call fcn.0047a9e0
test eax, eax
je 0x456e7d
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.004612b0
add esp, 8
mov esi, dword [eax]
mov eax, esi
cmp esi, 0xc0010013
jne 0x456e6c
mov dword [ebp - 0xc4], 8
sub esi, 0xc0010013
neg esi
sbb esi, esi
and esi, eax
jmp 0x4570a3
push 0x4f884e
push str.action
lea ecx, [ebp - 0xb8]
call fcn.0047a9e0
test eax, eax
je 0x4570a3
cmp byte [ebp - 0xb0], 7
jne 0x456efe
push 0x4f85d1
push 0x4f85d0
lea ecx, [ebp - 0xb8]
call fcn.0047a9e0
test eax, eax
je 0x456efe
push 0x4f85d1
push 0x4f85d0
lea ecx, [ebp - 0xb8]
call fcn.0047a9e0
test eax, eax
jne 0x456eda
mov eax, dword [0x521438]
mov ecx, eax
call fcn.0047b630
test al, al
je 0x456efe
push 0x4f85d0
lea ecx, [ebp - 0xb8]
call fcn.0043f790
mov ecx, eax
call fcn.00476210
jmp 0x456f00
xor eax, eax
cmp byte [ebp - 0xb0], 7
mov dword [ebp - 0xbc], eax
jne 0x456f6a
push 0x4f85cd
push 0x4f85cc
lea ecx, [ebp - 0xb8]
call fcn.0047a9e0
test eax, eax
je 0x456f6a
push 0x4f85cd
push 0x4f85cc
lea ecx, [ebp - 0xb8]
call fcn.0047a9e0
test eax, eax
jne 0x456f46
mov eax, dword [0x521438]
mov ecx, eax
call fcn.0047b630
test al, al
je 0x456f6a
push 0x4f85cc
lea ecx, [ebp - 0xb8]
call fcn.0043f790
mov ecx, eax
call fcn.00476210
jmp 0x456f6c
xor eax, eax
cmp byte [ebp - 0xb0], 7
mov dword [ebp - 0xc0], eax
jne 0x456fdb
push 0x4f884e
push str.action
lea ecx, [ebp - 0xb8]
call fcn.0047a9e0
test eax, eax
je 0x456fdb
push 0x4f884e
push str.action
lea ecx, [ebp - 0xb8]
call fcn.0047a9e0
test eax, eax
jne 0x456fb2
mov eax, dword [0x521438]
cmp byte [eax + 8], 4
jne 0x456fdb
push str.action
lea ecx, [ebp - 0xb8]
call fcn.0043f790
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004765f0
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x456fec
xor edi, edi
mov byte [ebp - 0x2c], 0
mov esi, 0xf
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x2c]
cmp esi, 0x10
jb 0x456ff9
mov eax, ebx
push 0x13
push str.ADD_TIME_ADD_DEVICE
push edi
push eax
call fcn.00435910
add esp, 0x10
test al, al
je 0x45701a
mov dword [ebp - 0xc4], 3
jmp 0x457099
lea eax, [ebp - 0x2c]
cmp esi, 0x10
jb 0x457024
mov eax, ebx
push 8
push str.ADD_TIME
push edi
push eax
call fcn.00435910
add esp, 0x10
test al, al
je 0x457045
mov dword [ebp - 0xc4], 1
jmp 0x457099
lea eax, [ebp - 0x2c]
cmp esi, 0x10
jb 0x45704f
mov eax, ebx
push 0xa
push str.ADD_DEVICE
push edi
push eax
call fcn.00435910
add esp, 0x10
test al, al
je 0x457070
mov dword [ebp - 0xc4], 2
jmp 0x457099
lea eax, [ebp - 0x2c]
cmp esi, 0x10
jb 0x45707a
mov eax, ebx
push 0x14
push str.ADD_DEVICE_NOVALIDAC
push edi
push eax
call fcn.00435910
add esp, 0x10
test al, al
je 0x457099
mov dword [ebp - 0xc4], 4
lea ecx, [ebp - 0x2c]
xor esi, esi
call fcn.00406f90
lea ecx, [ebp - 0xa0]
call fcn.004075b0
lea ecx, [ebp - 0xb8]
call fcn.0043e4c0
mov ecx, dword [ebp - 0xcc]
jmp 0x4570d3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ecx]
lea edx, [ebp - 0xc4]
push edx
push esi
call dword [eax + 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d55dc
mov esp, ebp
pop ebp
ret 4