Function at 0x401b46
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa24
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 0x104
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
push esi
push eax
push ebx
call edi
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004035ba
test eax, eax
je 0x401c00
lea eax, [ebp - 0x520]
push 0
push eax
call fcn.004029c0
test eax, eax
je 0x401c00
push 0x4012d4
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x401be4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401be4
push 0x10030
push ebx
push 2
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004038cc
mov dword [ebp - 4], 0x800700b7
jmp 0x401e79
call fcn.00403a3b
test eax, eax
jne 0x401c0c
push 0x10030
push ebx
push 9
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004038cc
mov dword [ebp - 4], 0x80004005
jmp 0x401e79
lea eax, [ebp - 0x218]
push eax
call fcn.00403560
lea eax, [ebp - 0x218]
push 0x4013f0
push eax
call fcn.00403529
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401ca8
lea eax, [ebp - 0x418]
push 0x200
push eax
push 3
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x401c66
lea eax, [ebp - 0x418]
push 0x4013d4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0xa24]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xa24]
push 0x10030
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], 0x80070002
jmp 0x401e79
test byte [0x405114], 1
jne 0x401cc9
push 0x10124
push ebx
push 4
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004038cc
cmp eax, 7
je 0x401cfe
push 0
push 0x4013bc
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x401d25
test byte [0x405114], 1
jne 0x401d0a
push 0x10001
push ebx
push 5
push dword [ebp + 0x10]
push dword [ebp + 8]
jmp 0x41d518
mov dword [ebp - 4], 0x800704c7
jmp 0x401e79
push 0
push 0
push dword [ebp + 8]
push 0x65
push ebx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call fcn.004020eb
push dword [ebp + 8]
xor eax, eax
cmp dword [ebp - 8], eax
sete al
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00402154
lea eax, [ebp - 0x114]
push esi
push eax
push ebx
call edi
lea eax, [ebp - 0x114]
push eax
call fcn.00403560
lea eax, [ebp - 0x114]
push eax
call fcn.00403560
lea eax, [ebp - 0x114]
push eax
call fcn.004021d4
lea eax, [ebp - 0x31c]
push esi
push eax
push ebx
call edi
lea eax, [ebp - 0x624]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x114]
xor esi, esi
push eax
push esi
lea eax, [ebp - 0x624]
push 0x4013b8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x114]
push 0x2e
push eax
call fcn.00403189
cmp eax, esi
jne 0x401dd2
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x114]
push 0x4013b0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x114]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x114]
push esi
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test byte [0x405114], 1
lea ecx, [ebp - 0x218]
push ecx
push eax
je 0x401e3d
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x83c]
push 0x401394
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x401e59
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x83c]
push 0x401380
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push dword [ebp + 0x14]
lea eax, [ebp - 0x83c]
push 0xffffffffffffffff
push esi
push eax
call fcn.00403c50
cmp dword [ebp - 8], esi
je 0x401e79
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401e8a
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x10], 0
je 0x401e95
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10