Function at 0x45f0b0
Capabilities:
Check mutex on windows
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba0f2
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x50dc94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x50f810], 2
je 0x45f107
push 0x4dcb9c
push 0x4cc2e4
push str.__debug
push 0x1d1
push 0
push 0
call fcn.00421090
add esp, 0x18
push 0x4dc6e8
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
mov dword [ebp - 0x474], esi
test esi, esi
je 0x45f12e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test byte [0x50f810], 2
mov dword [ebp - 4], 0
je 0x45f15e
push 0x4dcb9c
push 0x4cc2e4
push str.__debug
push 0x1d3
push 0
push 0
call fcn.00421090
add esp, 0x18
push str.softwareFortinetFortiClientIPSecTunnels
push SHChangeNotifyRegister
call fcn.004a7eca
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45f395
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
call fcn.00428320
mov dword [ebp - 0x460], eax
push 0x20a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004b493e
add esp, 0xc
mov dword [ebp - 0x464], 0x104
lea eax, [ebp - 0x464]
xor edi, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
jne 0x45f31a
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004b493e
lea eax, [ebp - 0x21c]
push eax
push str.softwareFortinetFortiClientIPSecTunnels
push str._s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push 0x105
push eax
call fcn.0042da70
lea eax, [ebp - 0x428]
push eax
push reloc.SHELL32.dll_SHChangeNotifyRegister
call fcn.004a7eca
add esp, 0x2c
test eax, eax
je 0x45f240
push eax
call fcn.004a7ed0
add esp, 4
jmp 0x45f2f1
xor eax, eax
mov dword [ebp - 0x430], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f266
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x440]
call fcn.00410410
push dword [ebp - 0x474]
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 2
push eax
push 0
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x460]
call fcn.0041bc60
mov edx, dword [ebp - 0x42c]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x45f2f1
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45f2e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f6dd
push edx
push ecx
call fcn.004aebf7
add esp, 8
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0x104
push eax
lea eax, [ebp - 0x21c]
inc edi
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
je 0x45f1e3
push ebx
call fcn.004a7ed0
mov eax, dword [ebp - 0x460]
mov byte [ebp - 0x46c], 0
push dword [ebp - 0x46c]
push eax
push dword [eax]
lea eax, [ebp - 0x465]
push eax
call fcn.004586e0
add esp, 0x14
mov edi, dword [ebp - 0x460]
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 3
push dword [edi + 4]
call fcn.00428340
mov eax, dword [ebp - 0x460]
push 0x28
mov byte [ebp - 4], 0
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x460]
mov dword [eax], edi
mov eax, dword [ebp - 0x460]
mov dword [eax + 8], edi
push dword [ebp - 0x460]
mov dword [ebp - 0x45c], 0
call fcn.004aebf7
add esp, 8
push str.softwareFortinetFortiClientSslvpnTunnels
push SHChangeNotifyRegister
call fcn.004a7eca
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45f5f0
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
call fcn.00428320
mov dword [ebp - 0x460], eax
push 0x20a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.004b493e
add esp, 0xc
mov dword [ebp - 0x464], 0x104
lea eax, [ebp - 0x464]
xor edi, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
jne 0x45f575
nop word [eax + eax]
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004b493e
lea eax, [ebp - 0x21c]
push eax
push str.softwareFortinetFortiClientSslvpnTunnels
push str._s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push 0x105
push eax
call fcn.0042da70
lea eax, [ebp - 0x428]
push eax
push reloc.SHELL32.dll_SHChangeNotifyRegister
call fcn.004a7eca
add esp, 0x2c
test eax, eax
je 0x45f47d
push eax
call fcn.004a7ed0
add esp, 4
jmp 0x45f54c
lea eax, [ebp - 0x21c]
push eax
push 0x200
push str.update_user_settings
push str._ws__d__s_does_not_exist___mark_for_HKCU_deletion
call fcn.0047c780
add esp, 0x10
mov dword [ebp - 0x430], 0
xor eax, eax
mov dword [ebp - 0x42c], 7
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x440], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f4c1
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x440]
call fcn.00410410
push dword [ebp - 0x474]
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 5
push eax
push 0
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x460]
call fcn.0041bc60
mov edx, dword [ebp - 0x42c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x45f54c
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45f542
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45f6dd
push edx
push ecx
call fcn.004aebf7
add esp, 8
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0x104
push eax
lea eax, [ebp - 0x21c]
inc edi
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
je 0x45f420
push ebx
call fcn.004a7ed0
mov eax, dword [ebp - 0x460]
mov byte [ebp - 0x46c], 0
push dword [ebp - 0x46c]
push eax
push dword [eax]
lea eax, [ebp - 0x465]
push eax
call fcn.004588b0
add esp, 0x14
mov edi, dword [ebp - 0x460]
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 6
push dword [edi + 4]
call fcn.00428340
mov eax, dword [ebp - 0x460]
push 0x28
mov byte [ebp - 4], 0
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x460]
mov dword [eax], edi
mov eax, dword [ebp - 0x460]
mov dword [eax + 8], edi
push dword [ebp - 0x460]
mov dword [ebp - 0x45c], 0
call fcn.004aebf7
add esp, 8
call fcn.0045e1e0
xor eax, eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
push str.softwareFortinetFortiClient
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov byte [ebp - 4], 7
call fcn.004a7eca
mov edi, eax
add esp, 8
test edi, edi
je 0x45f693
push 0
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0
push eax
push str.upgraded_from
push edi
call fcn.004a7edc
add esp, 0x10
test al, al
je 0x45f68a
mov edx, dword [ebp - 0x464]
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45f660
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x458]
call fcn.00410410
push dword [ebp - 0x464]
call fcn.004a7efa
add esp, 4
push edi
call fcn.004a7ed0
add esp, 4
cmp dword [ebp - 0x448], 0
je 0x45f6ab
lea eax, [ebp - 0x458]
push eax
call fcn.0045e880
add esp, 4
mov edx, dword [ebp - 0x444]
cmp edx, 8
jb 0x45f6ed
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45f6e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45f6e3
call dword [0x4c59b0]
push edx
push ecx
call fcn.004aebf7
add esp, 8
xor eax, eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
test esi, esi
je 0x45f71c
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae9c0
mov esp, ebp
pop ebp
ret