Function at 0x458bf0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1a45
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x51ec70]
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 0x458c51
mov eax, dword [ecx]
push edx
push 0x10000
call dword [eax + 0x7c]
jmp 0x458ff7
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 0x458c8d
mov esi, 0xc0010002
jmp 0x458fea
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.0043b6c0
lea eax, [edi + 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406430
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.0047df10
test al, al
je 0x458d1e
push dword [0x523640]
lea ecx, [ebp - 0xb8]
call fcn.00440fb0
test al, al
jne 0x458d1e
mov bl, 1
jmp 0x458d20
xor bl, bl
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 3
call fcn.00407530
test bl, bl
je 0x458fb3
push 0x4fa332
push str.error_code
lea ecx, [ebp - 0xb8]
call fcn.0047c850
test eax, eax
je 0x458d8d
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.004631a0
add esp, 8
mov esi, dword [eax]
mov eax, esi
cmp esi, 0xc0010013
jne 0x458d7c
mov dword [ebp - 0xc4], 8
sub esi, 0xc0010013
neg esi
sbb esi, esi
and esi, eax
jmp 0x458fb3
push 0x4faa5e
push str.action
lea ecx, [ebp - 0xb8]
call fcn.0047c850
test eax, eax
je 0x458fb3
cmp byte [ebp - 0xb0], 7
jne 0x458e0e
push 0x4fa7e1
push 0x4fa7e0
lea ecx, [ebp - 0xb8]
call fcn.0047c850
test eax, eax
je 0x458e0e
push 0x4fa7e1
push 0x4fa7e0
lea ecx, [ebp - 0xb8]
call fcn.0047c850
test eax, eax
jne 0x458dea
mov eax, dword [0x523644]
mov ecx, eax
call fcn.0047d4a0
test al, al
je 0x458e0e
push 0x4fa7e0
lea ecx, [ebp - 0xb8]
call fcn.00441740
mov ecx, eax
call fcn.00478090
jmp 0x458e10
xor eax, eax
cmp byte [ebp - 0xb0], 7
mov dword [ebp - 0xbc], eax
jne 0x458e7a
push 0x4fa7dd
push 0x4fa7dc
lea ecx, [ebp - 0xb8]
call fcn.0047c850
test eax, eax
je 0x458e7a
push 0x4fa7dd
push 0x4fa7dc
lea ecx, [ebp - 0xb8]
call fcn.0047c850
test eax, eax
jne 0x458e56
mov eax, dword [0x523644]
mov ecx, eax
call fcn.0047d4a0
test al, al
je 0x458e7a
push 0x4fa7dc
lea ecx, [ebp - 0xb8]
call fcn.00441740
mov ecx, eax
call fcn.00478090
jmp 0x458e7c
xor eax, eax
cmp byte [ebp - 0xb0], 7
mov dword [ebp - 0xc0], eax
jne 0x458eeb
push 0x4faa5e
push str.action
lea ecx, [ebp - 0xb8]
call fcn.0047c850
test eax, eax
je 0x458eeb
push 0x4faa5e
push str.action
lea ecx, [ebp - 0xb8]
call fcn.0047c850
test eax, eax
jne 0x458ec2
mov eax, dword [0x523644]
cmp byte [eax + 8], 4
jne 0x458eeb
push str.action
lea ecx, [ebp - 0xb8]
call fcn.00441740
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.00478470
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x458efc
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 0x458f09
mov eax, ebx
push 0x13
push str.ADD_TIME_ADD_DEVICE
push edi
push eax
call fcn.004378a0
add esp, 0x10
test al, al
je 0x458f2a
mov dword [ebp - 0xc4], 3
jmp 0x458fa9
lea eax, [ebp - 0x2c]
cmp esi, 0x10
jb 0x458f34
mov eax, ebx
push 8
push str.ADD_TIME
push edi
push eax
call fcn.004378a0
add esp, 0x10
test al, al
je 0x458f55
mov dword [ebp - 0xc4], 1
jmp 0x458fa9
lea eax, [ebp - 0x2c]
cmp esi, 0x10
jb 0x458f5f
mov eax, ebx
push 0xa
push str.ADD_DEVICE
push edi
push eax
call fcn.004378a0
add esp, 0x10
test al, al
je 0x458f80
mov dword [ebp - 0xc4], 2
jmp 0x458fa9
lea eax, [ebp - 0x2c]
cmp esi, 0x10
jb 0x458f8a
mov eax, ebx
push 0x14
push str.ADD_DEVICE_NOVALIDAC
push edi
push eax
call fcn.004378a0
add esp, 0x10
test al, al
je 0x458fa9
mov dword [ebp - 0xc4], 4
lea ecx, [ebp - 0x2c]
xor esi, esi
call fcn.00407530
lea ecx, [ebp - 0xa0]
call fcn.00407c20
lea ecx, [ebp - 0xb8]
call fcn.00440470
mov ecx, dword [ebp - 0xcc]
jmp 0x458fe3
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.004d761c
mov esp, ebp
pop ebp
ret 4