Function at 0x407d30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x45506c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
call fcn.00402f50
sub esp, 0x18
mov esi, eax
mov ecx, esp
push 7
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.loading
mov byte [ecx], 0
call fcn.004067e0
push 2
mov ecx, esi
call fcn.00404830
push 0x27
push str.Global9E27A5A3F6924FFFAE834E230CB27575
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
mov byte [esp + 0x18], 0
call fcn.004067e0
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408049
cmp eax, 5
je 0x408049
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x407e09
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407dff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080c8
push edx
push ecx
call fcn.0040d83c
add esp, 8
sub esp, 0x18
lea eax, [esi + 0x48]
mov ecx, esp
push eax
call fcn.004058b0
call fcn.004087b0
add esp, 0x18
test al, al
je 0x407e34
sub esp, 0x18
mov ecx, esp
push 0x14
push str.setup.exe_is_running
jmp 0x40808e
push dword [ebp + 8]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0
call fcn.00409470
push 2
lea eax, [esp + 0x14]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push 0x40
mov edx, dword [ecx + 4]
sub eax, edx
mov esi, dword [ecx]
push edx
cdq
sub eax, edx
sar eax, 1
push esi
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
push 0xffffffffffffffff
push dword [ecx + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x30]
push 0
push 0x14
push 0x400
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.00402f50
mov ecx, eax
call fcn.00405480
push 7
xor eax, eax
mov dword [esp + 0x24], 0
push str.Loading
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov word [esp + 0x18], ax
call fcn.00408120
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x10]
lea ecx, [eax + 0x18]
cmp ecx, edx
je 0x407f03
cmp dword [esp + 0x24], 8
mov eax, edx
push dword [esp + 0x20]
cmovae eax, dword [esp + 0x14]
push eax
call fcn.00408120
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
push ecx
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esp + 0x24]
cmp edx, 8
jb 0x407f57
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407f4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080c3
push edx
push ecx
call fcn.0040d83c
add esp, 8
mov eax, dword [esp + 0x30]
push 0x6d
push dword [eax + 0x14]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push 0
push eax
call esi
test eax, eax
je 0x407fc6
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x407fb5
lea eax, [esp + 0x10]
push eax
call edi
lea eax, [esp + 0x10]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x407f90
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x58]
test esi, esi
je 0x407fef
push dword [esi]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push esi
call dword [sym.imp.gdiplus.dll_GdipFree]
mov eax, dword [esp + 0x30]
mov dword [eax + 0x58], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x40800b
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x30]
mov dword [eax + 0x4c], 0
mov eax, dword [esp + 0x30]
push dword [eax + 0x50]
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x30]
push dword [eax + 0x54]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x30]
push dword [eax + 0x48]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040d826
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x408082
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408078
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080c8
push edx
push ecx
call fcn.0040d83c
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x13
push str.load.exe_is_running
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004067e0
push 3
mov ecx, esi
call fcn.00404830
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d826
mov esp, ebp
pop ebp
ret 0x10
call fcn.00428830
call fcn.00428830
int3