Function at 0x401ef0
Capabilities:
Check mutex on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572165
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x5db004]
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 ebx, ecx
mov dword [ebp - 0x4bc], ebx
call fcn.0040fe29
mov ecx, eax
test ecx, ecx
je 0x4021b9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, 0x5b7d70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
test eax, 0xffff0000
jne 0x401f61
movzx eax, ax
push eax
call fcn.00402a50
jmp 0x401f6d
push 0x15
push 0x5b7d70
call fcn.00402f90
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x18]
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401fad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xb7
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ebx, 0xb7
jmp 0x402172
call fcn.0040fe29
mov ecx, eax
test ecx, ecx
je 0x4021c3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x401fef
push 0x105
lea ecx, [ebp - 0x14]
call fcn.00402da0
mov esi, dword [ebp - 0x14]
cmp dword [esi - 8], 0x105
jl 0x4021af
push 0x104
xor eax, eax
mov dword [esi - 0xc], 0x105
push esi
push eax
mov word [esi + 0x20a], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [esi - 8]
push esi
call fcn.0055a832
add esp, 8
test eax, eax
js 0x4021af
cmp eax, dword [esi - 8]
jg 0x4021af
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 4], 1
jle 0x402053
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00402c90
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.0055a832
add esp, 8
test eax, eax
js 0x4021af
cmp eax, dword [esi - 8]
jg 0x4021af
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 8
push eax
mov dword [ebp - 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, ebx
call fcn.0040e051
push 0
call fcn.004102dc
push 0xc
call fcn.0040d381
add esp, 8
mov dword [ebp - 0x4c0], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4020de
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.004110db
mov ebx, eax
jmp 0x4020e0
xor ebx, ebx
push 0x583be4
mov byte [ebp - 4], 2
call fcn.00419a10
mov ecx, dword [ebp - 0x4bc]
push str.Local_AppWizard_Generated_Applications
call fcn.0041d1b4
push 0x498
lea eax, [ebp - 0x4b8]
push 0
push eax
call fcn.005579a0
add esp, 8
lea ecx, [ebp - 0x4b8]
call fcn.00403510
mov eax, dword [ebp - 0x4bc]
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 4
mov dword [eax + 0x20], ecx
call fcn.0041d9e4
test ebx, ebx
je 0x402144
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 4]
call fcn.0041e9a6
lea ecx, [ebp - 0x4b8]
xor ebx, ebx
call fcn.004021d0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402172
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x402191
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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.00555b04
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402f40
push 0x80004005
call fcn.00402f40
push 0x80004005
call fcn.00402f40
int3