Function at 0x40d9fd
Capabilities:
Check mutex on windows
Create process on windows
Hide graphical window

Disassembly:
push 0x4c8
mov eax, 0x425c6d
call fcn.00416bad
mov esi, dword [ebp + 8]
push 0x42d560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x4b8], ebx
test ebx, ebx
je 0x40dd9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40dd9a
and dword [ebp - 4], 0
call fcn.0040173d
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4b4], eax
push ecx
lea ecx, [eax + 0x80]
call fcn.00405e97
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405a11
call fcn.0040ba1d
mov edi, eax
push esi
mov ecx, edi
call fcn.0040ba83
and dword [ebp - 0x4b0], 0
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x4b4]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.00402a06
test al, al
jne 0x40dcb0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x28]
call fcn.0040cad1
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00405a11
cmp byte [edi + 0x29], 0
je 0x40dadf
mov ecx, edi
call fcn.0040bafd
mov ecx, edi
call fcn.0040bb2c
jmp 0x40dd8c
push ecx
push esi
lea ecx, [ebp - 0x4ac]
call fcn.00410885
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 2
push eax
movzx eax, word [ebp - 0x4a0]
push 0x40d894
push dword [ebp - 0x49c]
push eax
push dword [ebp - 0x4a4]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp - 0x4a8], eax
test eax, eax
jne 0x40db61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00406746
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40db3c
mov eax, dword [eax]
push str.Failed_to_create_the_main_window
push eax
push 2
push ecx
mov ecx, dword [ebp - 0x4b4]
call fcn.004025d5
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405e0a
jmp 0x40dc9c
push 7
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
push 1
push dword [ebp - 0x4a8]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x4d4]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40dc74
lea eax, [ebp - 0x4d4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [ebp - 0x4d0], 0x101
jne 0x40dc62
cmp dword [ebp - 0x4cc], 0x70
jne 0x40dc62
xor esi, esi
mov dword [ebp - 0x18], 7
xor eax, eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
call fcn.00408924
mov ecx, eax
call fcn.0040d9e4
push eax
mov edx, 0x42e2d4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.0040b764
pop ecx
push ecx
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
call fcn.0040dda4
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004065fe
push esi
push 1
lea ecx, [ebp - 0x5c]
call fcn.00405e0a
push esi
push 1
lea ecx, [ebp - 0x74]
call fcn.00405e0a
push esi
push 1
lea ecx, [ebp - 0x44]
call fcn.00405e0a
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 1
cmovae eax, dword [ebp - 0x2c]
push esi
push eax
push str.explorer.exe
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00405e0a
lea eax, [ebp - 0x4d4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40db7c
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, edi
call fcn.0040bb2c
and dword [edi + 4], 0
push esi
call dword [sym.imp.USER32.dll_DestroyCursor]
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0
call fcn.00410979
jmp 0x40dd8c
mov eax, dword [ebp - 0x4b0]
cmp eax, 3
jbe 0x40dd10
push 0x42d510
push 0
push esi
lea ecx, [ebp - 0x290]
call fcn.00412054
cmp byte [edi + 0x29], 0
jne 0x40dd28
lea eax, [ebp - 0x290]
push eax
movzx eax, word [ebp - 0x284]
push 0x40d894
push dword [ebp - 0x280]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
je 0x40dd28
lea ecx, [ebp - 0x290]
call fcn.00412122
mov eax, dword [ebp - 0x4b0]
push 0
inc eax
lea ecx, [ebp - 0x2c]
push 1
mov dword [ebp - 0x4b0], eax
call fcn.00405a11
jmp 0x40da80
lea ecx, [ebp - 0x290]
call fcn.00412122
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405a11
jmp 0x40dd9a
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.00416aff
ret 0x10