Function at 0x45e880
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba041
mov eax, dword fs:[0]
push eax
sub esp, 0x540
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x540], 0
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x538], 0
push 0
push 0x4d29c4
lea ecx, [ebp - 0x540]
mov dword [ebp - 4], 0
push ecx
push eax
call fcn.00409440
mov ecx, dword [ebp - 0x53c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x540]
add esp, 0x10
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jb 0x45ef53
cmp dword [esi + 0x14], 8
jb 0x45e91d
mov esi, dword [esi]
push esi
call dword [0x4c5924]
imul esi, eax, 0x2710
add esp, 4
mov eax, dword [ebp - 0x540]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x45e93e
mov eax, dword [eax]
push eax
call dword [0x4c5924]
imul eax, eax, 0x64
add esp, 4
add esi, eax
mov eax, dword [ebp - 0x540]
add eax, 0x30
cmp dword [eax + 0x14], 8
jb 0x45e95e
mov eax, dword [eax]
push eax
call dword [0x4c5924]
add esi, eax
add esp, 4
cmp esi, 0xea64
jae 0x45ef4d
push str.softwareFortinetFortiClientIPSecTunnels
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], str.KeepRunning
mov dword [ebp - 0x4a0], 4
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], str.show_alwaysup
mov dword [ebp - 0x490], 4
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], str.show_remember_password
mov dword [ebp - 0x480], 4
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], str.show_autoconnect
mov dword [ebp - 0x470], 4
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], str.save_username
mov dword [ebp - 0x460], 4
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0x4db2c0
mov dword [ebp - str.OD_:8_J8], str.promptusername
mov dword [ebp - 0x450], 4
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0x4db2c0
mov dword [ebp - 0x444], str.User
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x43c], 1
mov dword [ebp - 0x438], 0x4db2c0
mov dword [ebp - 0x434], str.SavePass
mov dword [ebp - 0x430], 4
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x528], 0
mov dword [ebp - 0x524], str.KeepRunning
mov dword [ebp - 0x520], 4
mov dword [ebp - 0x51c], 0
mov dword [ebp - 0x518], 0
mov dword [ebp - 0x514], str.show_alwaysup
mov dword [ebp - 0x510], 4
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0
mov dword [ebp - 0x504], str.show_remember_password
mov dword [ebp - 0x500], 4
mov dword [ebp - 0x4fc], 0
mov dword [ebp - 0x4f8], 0
mov dword [ebp - 0x4f4], str.show_autoconnect
mov dword [ebp - 0x4f0], 4
mov dword [ebp - 0x4ec], 0
mov dword [ebp - 0x4e8], 0
mov dword [ebp - 0x4e4], str.save_username
mov dword [ebp - 0x4e0], 4
mov dword [ebp - 0x4dc], 0
mov dword [ebp - 0x4d8], 0
mov dword [ebp - str.OD_:8_J8], str.promptusername
mov dword [ebp - 0x4d0], 4
mov dword [ebp - 0x4cc], 0
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 0x4c4], str.DATA1
mov dword [ebp - 0x4c0], 1
mov dword [ebp - 0x4bc], 1
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b4], str.SavePass
mov dword [ebp - 0x4b0], 4
mov dword [ebp - 0x4ac], 0
call fcn.004a7eca
mov ebx, eax
add esp, 8
mov dword [ebp - 0x544], ebx
test ebx, ebx
je 0x45eda4
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004b493e
add esp, 0xc
mov dword [ebp - 0x530], 0x104
lea eax, [ebp - 0x530]
mov dword [ebp - 0x534], 0
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push ebx
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
jne 0x45ed9b
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
add esp, 0x24
lea esi, [ebp - 0x4a0]
mov ebx, 8
nop word [eax + eax]
push dword [esi + 4]
lea ecx, [ebp - 0x428]
push dword [esi]
lea edi, [ecx + 2]
push dword [esi - 4]
push dword [esi - 8]
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [ebp - 0x548], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ece2
sub ecx, edi
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call int.00410410
push 0
sub esp, 0x18
mov byte [ebp - 4], 1
mov edx, esp
lea ecx, [ebp - 0x21c]
xor eax, eax
lea edi, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ed27
sub ecx, edi
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call int.00410410
lea ecx, [ebp - 0x529]
mov byte [ebp - 4], 0
call fcn.00459420
add esi, 0x10
sub ebx, 1
jne 0x45ecb0
mov edi, dword [ebp - 0x534]
lea eax, [ebp - 0x530]
mov ebx, dword [ebp - 0x544]
inc edi
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x534], edi
push eax
push edi
push ebx
mov dword [ebp - 0x530], 0x104
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
je 0x45ec61
push ebx
call fcn.004a7ed0
add esp, 4
push str.softwareFortinetFortiClientSslvpnTunnels
push reloc.SHELL32.dll_SHChangeNotifyRegister
call fcn.004a7eca
mov ebx, eax
add esp, 8
mov dword [ebp - 0x544], ebx
test ebx, ebx
je 0x45ef4d
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004b493e
add esp, 0xc
mov dword [ebp - 0x530], 0x104
lea eax, [ebp - 0x530]
mov dword [ebp - 0x534], 0
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push ebx
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
jne 0x45ef44
nop
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
add esp, 0x24
lea esi, [ebp - 0x520]
mov ebx, 8
push dword [esi + 4]
lea ecx, [ebp - 0x428]
push dword [esi]
lea edi, [ecx + 2]
push dword [esi - 4]
push dword [esi - 8]
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [ebp - 0x54c], esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ee87
sub ecx, edi
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call int.00410410
push 1
sub esp, 0x18
mov byte [ebp - 4], 2
mov edx, esp
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp - 0x21c]
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45eed0
sub eax, edi
mov ecx, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call int.00410410
lea ecx, [ebp - 0x529]
mov byte [ebp - 4], 0
call fcn.00459420
add esi, 0x10
sub ebx, 1
jne 0x45ee55
mov edi, dword [ebp - 0x534]
lea eax, [ebp - 0x530]
mov ebx, dword [ebp - 0x544]
inc edi
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x534], edi
push eax
push edi
push ebx
mov dword [ebp - 0x530], 0x104
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
test eax, eax
je 0x45ee10
push ebx
call fcn.004a7ed0
add esp, 4
mov esi, dword [ebp - 0x540]
test esi, esi
je 0x45efbe
mov edi, dword [ebp - 0x53c]
cmp esi, edi
je 0x45ef75
mov ecx, esi
call fcn.00413170
add esi, 0x18
cmp esi, edi
jne 0x45ef61
mov esi, dword [ebp - 0x540]
mov ecx, dword [ebp - 0x538]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x45efb4
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45efb4
call dword [0x4c59b0]
push ecx
push esi
call fcn.004aebf7
add esp, 8
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