Function at 0x424037
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4a12f0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ebx, [edi + 4]
cmp dword [ebx + 0x14], 8
jb 0x42405e
mov eax, dword [ebx]
jmp 0x424060
mov eax, ebx
lea esi, [edi + 0x34]
cmp dword [esi + 0x14], 8
jb 0x42406d
mov ecx, dword [esi]
jmp 0x42406f
mov ecx, esi
push eax
push ecx
push str.Relaunching___ls__with_flags___ls__n
call fcn.004016a0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x424086
mov esi, dword [esi]
push esi
xor esi, esi
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.00409e10
push dword [ebp - 0x20]
call fcn.00409bf0
pop ecx
test al, al
je 0x424104
push 0x1388
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x424104
test eax, eax
je 0x424104
cmp eax, 0x102
jne 0x424104
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.0042465a
push eax
lea ecx, [ebp - 0x28]
call fcn.0040cfa0
lea ecx, [ebp - 0x30]
call fcn.0040d070
lea ecx, [ebp - 0x28]
call fcn.0040d0e0
push esi
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d120
lea ecx, [ebp - 0x28]
call fcn.0040d070
call fcn.0040e400
cmp eax, 5
jl 0x4241e0
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00403ad0
push 0x38
lea eax, [ebp - 0x68]
mov dword [ebp - 0x6c], 0x3c
push 0
push eax
call fcn.00439c00
add edi, 0x1c
mov dword [ebp - 0x68], 0x4000000
xor ebx, ebx
add esp, 0xc
inc ebx
mov dword [ebp - 0x50], ebx
cmp dword [edi + 0x14], 8
jb 0x424155
mov edi, dword [edi]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push edi
cmovae eax, dword [ebp - 0x1c]
push str.Relaunching_Chrome_via_shortcut___ls__n
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], eax
call fcn.004016a0
pop ecx
pop ecx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4241ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
lea ecx, [ebp - 0x1c]
or edi, 0x80070000
test eax, eax
push 0
push ebx
cmovle edi, eax
call fcn.00404aa0
test esi, esi
js 0x4241c5
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4241c5
push 0
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00404aa0
test esi, esi
js 0x4241c1
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov edi, esi
lea ecx, [ebp - 0x20]
call fcn.00409e70
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439bb3
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
call fcn.00403b00
lea eax, [ebp - 0x1c]
push eax
call fcn.00420d82
pop ecx
test al, al
je 0x424295
push str.force_immersive
call fcn.004027a0
mov ecx, eax
call fcn.00402d90
push 0x38
mov bl, al
mov dword [ebp - 0x6c], 0x3c
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00439c00
add esp, 0xc
mov dword [ebp - 0x68], 0x4000000
mov dword [ebp - 0x50], 1
test bl, bl
jne 0x424247
cmp dword [edi + 0x2c], esi
je 0x424247
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x424252
mov eax, dword [eax]
jmp 0x424252
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], eax
xor ecx, ecx
test bl, bl
mov eax, str._ServerName:DefaultBrowserServer
cmove eax, ecx
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x424295
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00403c30
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
jmp 0x4241c5
lea ecx, [ebp - 0x1c]
call fcn.00403c30
jmp 0x4241c3