Function at 0x4396b0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575270
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5c5678]
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 0x439708
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x7c]
push 0x10000
jmp 0x439a06
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 0x43973c
mov dword [ebp - 0xcc], 0xc0010002
jmp 0x4399f3
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.0052ae70
lea esi, [ebp - 0x11c]
mov eax, edi
mov byte [ebp - 4], 3
call fcn.0042a2a0
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xf8]
lea edi, [ebp - 0xc8]
mov dword [ebp - 0xfc], 1
call fcn.0052af50
test al, al
je 0x4397b9
mov edx, dword [0x5d1f14]
lea ecx, [ebp - 0xf8]
call fcn.00528fa0
test al, al
jne 0x4397b9
mov bl, 1
jmp 0x4397bb
xor bl, bl
mov dword [ebp - 4], 3
cmp dword [ebp - 0x104], 0x10
jb 0x4397da
mov edx, dword [ebp - 0x118]
push edx
call fcn.0053d782
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 0x4399cc
lea eax, [ebp - 0xf8]
push eax
mov edx, str.error_code
call fcn.0052a710
test al, al
je 0x439849
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0x100]
call fcn.0042a8c0
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
cmp eax, 0xc0010013
jne 0x4399cc
mov dword [ebp - 0xd8], 8
mov dword [ebp - 0xcc], esi
jmp 0x4399cc
lea ecx, [ebp - 0xf8]
push ecx
mov edx, str.action
call fcn.0052a710
test al, al
je 0x4399cc
push esi
mov eax, 0x58cc54
lea edi, [ebp - 0xf8]
call fcn.00467bb0
add esp, 4
mov dword [ebp - 0xd0], eax
push esi
mov eax, 0x58d770
call fcn.00467bb0
lea edx, [ebp - 0x30]
add esp, 4
push edx
mov esi, str.action
mov dword [ebp - 0xd4], eax
call fcn.00467c80
add esp, 4
mov esi, dword [ebp - 0x1c]
mov eax, esi
cmp esi, 0x13
jb 0x4398b0
mov eax, 0x13
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
mov edx, edi
cmp ebx, 0x10
jae 0x4398c0
lea edx, [ebp - 0x2c]
push eax
mov ecx, str.ADD_TIME_ADD_DEVICE
call fcn.00421080
add esp, 4
test eax, eax
jne 0x4398f0
cmp esi, 0x13
jb 0x4398f0
cmp esi, 0x13
setne al
test eax, eax
jne 0x4398f0
mov dword [ebp - 0xd8], 3
jmp 0x4399ba
mov eax, esi
cmp esi, 8
jb 0x4398fc
mov eax, 8
mov edx, edi
cmp ebx, 0x10
jae 0x439906
lea edx, [ebp - 0x2c]
push eax
mov ecx, str.ADD_TIME
call fcn.00421080
add esp, 4
test eax, eax
jne 0x439936
cmp esi, 8
jb 0x439936
cmp esi, 8
setne al
test eax, eax
jne 0x439936
mov dword [ebp - 0xd8], 1
jmp 0x4399ba
mov eax, esi
cmp esi, 0xa
jb 0x439942
mov eax, 0xa
mov edx, edi
cmp ebx, 0x10
jae 0x43994c
lea edx, [ebp - 0x2c]
push eax
mov ecx, str.ADD_DEVICE
call fcn.00421080
add esp, 4
test eax, eax
jne 0x439979
cmp esi, 0xa
jb 0x439979
cmp esi, 0xa
setne al
test eax, eax
jne 0x439979
mov dword [ebp - 0xd8], 2
jmp 0x4399ba
mov eax, esi
cmp esi, 0x14
jb 0x439985
mov eax, 0x14
mov edx, edi
cmp ebx, 0x10
jae 0x43998f
lea edx, [ebp - 0x2c]
push eax
mov ecx, str.ADD_DEVICE_NOVALIDAC
call fcn.00421080
add esp, 4
test eax, eax
jne 0x4399ba
cmp esi, 0x14
jb 0x4399ba
cmp esi, 0x14
setne al
test eax, eax
jne 0x4399ba
mov dword [ebp - 0xd8], 4
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xcc], 0
call fcn.00424920
lea edi, [ebp - 0xc8]
call fcn.00402520
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0
call fcn.00528e60
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.0053d78d
mov esp, ebp
pop ebp
ret