Function at 0x467150
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4babd0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
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 dword [ebp - 0x2a8], ecx
mov dword [ebp - 0x29c], 0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
push 0x4cc9ec
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 1
call dword [0x4c5f74]
xor eax, eax
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2c4], eax
push 0x4dc6e8
push eax
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
mov dword [ebp - 0x2d0], esi
test esi, esi
je 0x46723b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 1
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 5
call fcn.004936a0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call dword [0x4c5f8c]
push eax
lea ecx, [ebp - 0x28c]
call dword [0x4c5f70]
mov ecx, dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x29c], 1
push dword [ecx - 0xc]
push ecx
push 0x2c
push str.softwareFortinetFortiClientIPSecTunnels_
push eax
call dword [0x4c5f6c]
add esp, 0x14
mov ecx, ebx
mov byte [ebp - 4], 8
call dword [0x4c5f8c]
push eax
lea ecx, [ebp - 0x298]
call dword [0x4c5f70]
mov ecx, dword [ebx]
mov edi, eax
push 3
push 0x4e0ab8
lea eax, [ebp - 0x298]
mov dword [ebp - 0x29c], 3
push dword [ecx - 0xc]
push ecx
push eax
call dword [0x4c5f6c]
add esp, 0x14
lea ecx, [ebp - 0x288]
push dword [edi]
call fcn.00493b20
lea ecx, [ebp - 0x298]
mov edi, eax
call dword [0x4c5d9c]
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 6
call dword [0x4c5d9c]
test edi, edi
je 0x467311
lea eax, [ebp - 0x234]
push eax
push str.RemoteGW
jmp 0x467388
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
call dword [0x4c5f8c]
push eax
lea ecx, [ebp - 0x28c]
call dword [0x4c5f70]
mov ecx, dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x29c], 4
push dword [ecx - 0xc]
push ecx
push 0x2c
push str.softwareFortinetFortiClientIPSecTunnels_
push eax
call dword [0x4c5f6c]
add esp, 0x14
lea ecx, [ebp - 0x288]
push dword [edi]
call fcn.00493b20
lea ecx, [ebp - 0x28c]
mov byte [ebp - 4], 6
mov edi, eax
call dword [0x4c5d9c]
test edi, edi
je 0x4678de
lea eax, [ebp - 0x234]
push eax
push str.PolicyServer
lea ecx, [ebp - 0x288]
call fcn.00493d40
lea ecx, [ebp - 0x288]
call fcn.00493740
mov byte [ebp - 4], 4
test esi, esi
je 0x4673b4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00472010
push 0x4e0aac
push eax
mov dword [ebp - 0x29c], eax
call dword [0x4c5ad8]
add esp, 0xc
mov dword [ebp - 0x28c], eax
test eax, eax
je 0x467457
xor ebx, ebx
xor esi, esi
cmp esi, ebx
je 0x467402
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x2bc], ebx
jmp 0x467429
lea eax, [ebp - 0x28c]
push eax
push ebx
lea ecx, [ebp - 0x2c0]
call fcn.004600f0
mov eax, dword [ebp - 0x2b8]
mov esi, eax
mov ebx, dword [ebp - 0x2bc]
mov dword [ebp - 0x2b0], eax
push 0x4e0aac
push 0
call dword [0x4c5ad8]
add esp, 8
mov dword [ebp - 0x28c], eax
test eax, eax
jne 0x4673f1
mov edi, dword [ebp - 0x2c0]
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x2a0], edi
jmp 0x467459
xor edi, edi
mov eax, dword [ebp - 0x224]
push 1
lea eax, [eax*2 + 2]
push eax
call dword [0x4c5964]
mov ebx, eax
add esp, 8
mov dword [ebp - 0x298], ebx
test ebx, ebx
je 0x4675d1
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
mov edx, ebx
cmovae ecx, dword [ebp - 0x234]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4674a0
push 0
push 0x4e0ab0
push ebx
call dword [0x4c5ad0]
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x28c], ecx
test ecx, ecx
je 0x467534
xor esi, esi
nop
mov eax, dword [ebp - 0x2c8]
cmp esi, eax
je 0x4674e7
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x2c8], eax
jmp 0x467508
lea ecx, [ebp - 0x28c]
push ecx
push eax
lea ecx, [ebp - 0x2cc]
call fcn.004603b0
mov eax, dword [ebp - 0x2c4]
mov esi, eax
mov dword [ebp - 0x2ac], eax
push 0
push 0x4e0ab0
push 0
call dword [0x4c5ad0]
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x28c], ecx
test ecx, ecx
jne 0x4674d0
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2b4], eax
jmp 0x467536
xor eax, eax
mov ebx, dword [ebp - 0x294]
sub ebx, edi
sar ebx, 2
test ebx, ebx
jle 0x4675c2
mov ecx, edi
mov esi, eax
sub ecx, eax
mov dword [ebp - 0x28c], ecx
push dword [ecx + esi]
mov edi, dword [esi]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x46757a
mov ecx, dword [ebp - 0x2a8]
call fcn.004668f0
push eax
push edi
call fcn.0042c5e0
add esp, 8
test al, al
je 0x4675ae
mov eax, dword [ebp - 0x290]
lea ecx, [ebp - 0x290]
cmp dword [eax - 0xc], 0
je 0x46759d
push 0x4e0b30
call dword [0x4c5d84]
lea ecx, [ebp - 0x290]
push edi
call dword [0x4c5f84]
mov dword [ebp - 0x2a4], 1
mov ecx, dword [ebp - 0x28c]
add esi, 4
sub ebx, 1
jne 0x467551
mov edi, dword [ebp - 0x2a0]
push dword [ebp - 0x298]
call dword [0x4c5958]
add esp, 4
push dword [ebp - 0x29c]
call dword [0x4c5958]
mov ebx, dword [ebp - 0x2a4]
add esp, 4
test ebx, ebx
je 0x467864
xor eax, eax
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov eax, dword [ebp - 0x2a8]
mov byte [ebp - 4], 0xa
push dword [eax + 0x610]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push 4
push 0x4e0b34
lea ecx, [ebp - 0x24c]
call int.00410410
mov eax, dword [ebp - 0x290]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x467660
sub edx, esi
lea ecx, [ebp - 0x24c]
sar edx, 1
push edx
push eax
call fcn.00415420
push 1
push 0x4dc618
lea ecx, [ebp - 0x24c]
call fcn.00415420
push 5
push str.__T__
lea ecx, [ebp - 0x24c]
call fcn.00415420
mov eax, dword [ebp + 8]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4676b0
sub edx, esi
lea ecx, [ebp - 0x24c]
sar edx, 1
push edx
push eax
call fcn.00415420
push 1
push 0x4dc618
lea ecx, [ebp - 0x24c]
call fcn.00415420
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x298], eax
test esi, esi
je 0x4677b9
test eax, eax
je 0x4677b9
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004b493e
push 0x4db2c0
push esi
push str.softwareFortinetFortiClientIPSecTunnels
push 0x4db320
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x294], ebx
push 0x104
push eax
call fcn.0042da70
add esp, 0x28
lea eax, [ebp - 0x294]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x21c]
push eax
push reloc.SHELL32.dll_SHChangeNotifyRegister
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4677b9
push eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], ebx
push eax
push str.RemoteGWValid
push dword [ebp - 0x294]
call fcn.004a7edc
add esp, 0x10
test al, al
je 0x4677a9
mov eax, dword [ebp - 0x2a0]
test eax, eax
je 0x4677a9
push dword [ebp - 0x298]
push eax
call dword [0x4c5ae4]
add esp, 8
mov ecx, 1
test eax, eax
cmove ebx, ecx
push dword [ebp - 0x294]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x46781c
mov ebx, dword [ebp - 0x2a8]
push dword [ebx + 0x610]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push eax
push 3
call fcn.004a80d0
add esp, 8
push 0xffffffffffffffff
push dword [ebx + 0x610]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 3
call fcn.004a8022
add esp, 4
test eax, eax
je 0x46781c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 3
call fcn.004a8022
add esp, 4
test eax, eax
jne 0x467806
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x46785e
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467854
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x467854
call dword [0x4c59b0]
push edx
push ecx
call fcn.004aebf7
add esp, 8
mov ebx, dword [ebp - 0x2a4]
mov edx, dword [ebp - 0x2b4]
test edx, edx
je 0x4678a3
mov ecx, dword [ebp - 0x2ac]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x467899
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x467899
call dword [0x4c59b0]
push ecx
push edx
call fcn.004aebf7
add esp, 8
test edi, edi
je 0x4678fd
mov ecx, dword [ebp - 0x2b0]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4678d2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4678d2
call dword [0x4c59b0]
push ecx
push edi
call fcn.004aebf7
add esp, 8
jmp 0x4678fd
lea ecx, [ebp - 0x288]
call fcn.00493740
test esi, esi
je 0x4678fb
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
lea ecx, [ebp - 0x290]
call dword [0x4c5d9c]
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x46794b
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467941
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x467941
call dword [0x4c59b0]
push edx
push ecx
call fcn.004aebf7
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp + 8]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call dword [0x4c5d9c]
mov eax, ebx
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 4