Function at 0x4038bc
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create directory
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x4dc]
sub esp, 0x55c
mov eax, dword [0x410180]
xor eax, ebp
mov dword [ebp + 0x4d8], eax
mov eax, dword [ebp + 0x4e4]
push ebx
push esi
push edi
push 0x4012fc
push 1
xor ebx, ebx
push ebx
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
call esi
mov edi, 0xb7
cmp eax, edi
jne 0x403917
cmp dword [ebp - 0x40], ebx
je 0x403917
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4013ac
lea eax, [ebp + 0x3d4]
push 0x401660
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x401658
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call esi
cmp eax, edi
jne 0x4039a2
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
lea eax, [ebp + 0x3d4]
push eax
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x403967
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
jmp 0x403995
lea eax, [ebp + 0x3d4]
push 0x401650
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
lea eax, [ebp + 0x3d4]
push eax
push ebx
call esi
mov esi, eax
cmp esi, ebx
je 0x40399b
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x4013ac
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x40], eax
cmp eax, ebx
je 0x4039cb
call esi
cmp eax, edi
jne 0x4039cb
push 0x7d0
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x44]
push 0x208
mov dword [0x410e84], eax
lea eax, [ebp + 0x1cc]
push ebx
push eax
call fcn.004060e0
add esp, 0xc
lea eax, [ebp + 0x1cc]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x403a56
push 0x4014e0
push 1
push ebx
push ebx
push 0x40161c
call fcn.00403c30
add esp, 0x14
push 7
xor eax, eax
pop ecx
mov dword [ebp - 0x64], ebx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x58], 0x4015ec
mov dword [ebp - 0x54], 0x10
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, ebx
je 0x403b97
lea ecx, [ebp + 0x1cc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp + 0x1cc]
push 0x7e
push eax
call fcn.00406085
pop ecx
test eax, eax
pop ecx
lea eax, [ebp + 0x1cc]
je 0x403a80
push esi
mov esi, 0x410e88
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x403a8e
push eax
mov esi, 0x410e88
push esi
call fcn.00406169
pop ecx
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4015c4
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [eax*2 + 0x410e86], 0x5c
je 0x403ab6
push 0x4015c0
push esi
call edi
push 0x401328
push esi
push 0x4015b4
mov edi, 0x411090
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403b0b
push 0x4014e0
push 1
push ebx
push ebx
push 0x401580
call fcn.00403c30
add esp, 0x14
jmp 0x403b97
push ebx
push 0x40384d
push ebx
push 0x65
push dword [0x410e84]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x410e80], eax
cmp eax, ebx
jne 0x403b3a
push 0x4014e0
push 1
push 1
push ebx
push 0x401548
jmp 0x403afe
lea ecx, [ebp + 0x3d4]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 5
push dword [0x410e80]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebx
push 0x7e8
push dword [0x410e80]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
jmp 0x403b85
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
call esi
test eax, eax
jne 0x403b71
call fcn.00403580
mov ecx, dword [ebp + 0x4d8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040615a
add ebp, 0x4dc
leave
ret 0x10