Function at 0x401cb0
Capabilities:
Check mutex on windows
Create process on windows
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x104
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x158]
push esi
push ecx
push eax
mov dword [0x4188e4], eax
call edi
lea eax, [ebp - 0x158]
push 0x5c
push eax
call fcn.00403210
pop ecx
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x401d05
mov byte [eax], 0x2f
lea eax, [ebp - 0x158]
push 0x5c
push eax
call fcn.00403210
pop ecx
pop ecx
jmp 0x401cec
lea eax, [ebp - 0x158]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401f01
lea eax, [ebp - 0x158]
push esi
push eax
push dword [ebp + 8]
call edi
push ebx
push 0x401c85
push ebx
push 0x66
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
cmp eax, ebx
mov dword [0x4188e0], eax
je 0x401d55
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebp - 0x360]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x25c]
push eax
push ebx
lea eax, [ebp - 0x360]
push 0x4151a4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x25c]
push eax
call fcn.00401be4
test eax, eax
pop ecx
jne 0x401dd6
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x48c]
push str.Unable_to_create_temporary_directory___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x48c]
push 0x10
push str.Error
push eax
push dword [0x4188e0]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401f01
lea eax, [ebp - 0x158]
push eax
call fcn.004010b6
cmp eax, ebx
pop ecx
mov dword [0x418914], eax
je 0x401e1d
push 0x401b12
push eax
call fcn.00401175
push dword [0x4188e0]
lea eax, [ebp - 0x25c]
push eax
push dword [0x418914]
call fcn.004011c8
push dword [0x418914]
call fcn.004016f0
add esp, 0x18
mov eax, dword [0x4188e0]
cmp eax, ebx
je 0x401e33
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4188e0], ebx
cmp dword [0x4188e8], ebx
jne 0x401ea8
cmp dword [0x4188dc], ebx
mov dword [ebp + 8], ebx
jle 0x401ea8
push 0x44
mov edi, 0x418680
pop esi
push esi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00402b20
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], esi
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401e97
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp + 8]
add edi, 4
mov eax, dword [ebp + 8]
cmp eax, dword [0x4188dc]
jl 0x401e4e
xor edi, edi
cmp dword [0x4188dc], ebx
jle 0x401ecb
mov esi, 0x418680
push dword [esi]
call fcn.0040ab4b
inc edi
add esi, 4
cmp edi, dword [0x4188dc]
pop ecx
jl 0x401eb7
cmp dword [0x4188d8], ebx
jle 0x401ef4
mov esi, 0x418748
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi]
call fcn.0040ab4b
inc ebx
add esi, 4
cmp ebx, dword [0x4188d8]
pop ecx
jl 0x401ed8
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10