Function at 0x437d90
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573b30
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5c3678]
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 edi, edx
xor edx, edx
mov dword [ebp - 0xfc], edx
mov eax, dword [edi + 0x40]
mov dword [ebp - 0xdc], ecx
cmp eax, edx
je 0x437de8
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x7c]
push 0x10000
jmp 0x4380e6
cmp dword [edi + 0x3c], 0xc8
mov dword [ebp - 0xcc], 0xc0000001
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xd0], edx
je 0x437e1c
mov dword [ebp - 0xcc], 0xc0010002
jmp 0x4380d3
mov dword [ebp - 4], edx
and dword [ebp - 0xf0], 0xfffffe00
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0xe4], edx
lea ecx, [ebp - 0xc8]
push ecx
mov byte [ebp - 4], 2
call fcn.005298a0
lea esi, [ebp - 0x11c]
mov eax, edi
mov byte [ebp - 4], 3
call fcn.00428980
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xf8]
lea edi, [ebp - 0xc8]
mov dword [ebp - 0xfc], 1
call fcn.00529980
test al, al
je 0x437e99
mov edx, dword [0x5cfecc]
lea ecx, [ebp - 0xf8]
call fcn.005279d0
test al, al
jne 0x437e99
mov bl, 1
jmp 0x437e9b
xor bl, bl
mov dword [ebp - 4], 3
cmp dword [ebp - 0x104], 0x10
jb 0x437eba
mov edx, dword [ebp - 0x118]
push edx
call fcn.0053c152
add esp, 4
xor esi, esi
mov dword [ebp - 0x104], 0xf
mov dword [ebp - 0x108], esi
mov byte [ebp - 0x118], 0
test bl, bl
je 0x4380ac
lea eax, [ebp - 0xf8]
push eax
mov edx, str.error_code
call fcn.00529140
test al, al
je 0x437f29
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0x100]
call fcn.00428fa0
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
cmp eax, 0xc0010013
jne 0x4380ac
mov dword [ebp - 0xd8], 8
mov dword [ebp - 0xcc], esi
jmp 0x4380ac
lea ecx, [ebp - 0xf8]
push ecx
mov edx, str.action
call fcn.00529140
test al, al
je 0x4380ac
push esi
mov eax, 0x58a8d4
lea edi, [ebp - 0xf8]
call fcn.004665a0
add esp, 4
mov dword [ebp - 0xd0], eax
push esi
mov eax, 0x58b3f0
call fcn.004665a0
lea edx, [ebp - 0x30]
add esp, 4
push edx
mov esi, str.action
mov dword [ebp - 0xd4], eax
call fcn.00466670
add esp, 4
mov esi, dword [ebp - 0x1c]
mov eax, esi
cmp esi, 0x13
jb 0x437f90
mov eax, 0x13
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov edx, edi
cmp ebx, 0x10
jae 0x437fa0
lea edx, [ebp - 0x2c]
push eax
mov ecx, str.ADD_TIME_ADD_DEVICE
call fcn.0041f890
add esp, 4
test eax, eax
jne 0x437fd0
cmp esi, 0x13
jb 0x437fd0
cmp esi, 0x13
setne al
test eax, eax
jne 0x437fd0
mov dword [ebp - 0xd8], 3
jmp 0x43809a
mov eax, esi
cmp esi, 8
jb 0x437fdc
mov eax, 8
mov edx, edi
cmp ebx, 0x10
jae 0x437fe6
lea edx, [ebp - 0x2c]
push eax
mov ecx, str.ADD_TIME
call fcn.0041f890
add esp, 4
test eax, eax
jne 0x438016
cmp esi, 8
jb 0x438016
cmp esi, 8
setne al
test eax, eax
jne 0x438016
mov dword [ebp - 0xd8], 1
jmp 0x43809a
mov eax, esi
cmp esi, 0xa
jb 0x438022
mov eax, 0xa
mov edx, edi
cmp ebx, 0x10
jae 0x43802c
lea edx, [ebp - 0x2c]
push eax
mov ecx, str.ADD_DEVICE
call fcn.0041f890
add esp, 4
test eax, eax
jne 0x438059
cmp esi, 0xa
jb 0x438059
cmp esi, 0xa
setne al
test eax, eax
jne 0x438059
mov dword [ebp - 0xd8], 2
jmp 0x43809a
mov eax, esi
cmp esi, 0x14
jb 0x438065
mov eax, 0x14
mov edx, edi
cmp ebx, 0x10
jae 0x43806f
lea edx, [ebp - 0x2c]
push eax
mov ecx, str.ADD_DEVICE_NOVALIDAC
call fcn.0041f890
add esp, 4
test eax, eax
jne 0x43809a
cmp esi, 0x14
jb 0x43809a
cmp esi, 0x14
setne al
test eax, eax
jne 0x43809a
mov dword [ebp - 0xd8], 4
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xcc], 0
call fcn.004231c0
lea edi, [ebp - 0xc8]
call fcn.00402490
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0
call fcn.00527890
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4c]
lea edx, [ebp - 0xd8]
push edx
mov edx, dword [ebp - 0xcc]
push edx
call eax
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.0053c15d
mov esp, ebp
pop ebp
ret