Function at 0x40d5a0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x9c
mov eax, str.NvTut
lea edx, [esp]
push ebx
push esi
mov ecx, dword [eax]
mov ax, word [eax + 4]
push edi
push ebp
xor esi, esi
push str.VirtuaCop2
mov dword [edx], ecx
mov word [edx + 4], ax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x459620], eax
test eax, eax
je 0x40d93a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d60b
mov eax, dword [0x459620]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x459620]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x459620], esi
jmp 0x40d93a
call fcn.0040e7b0
call fcn.0042d370
mov dword [0x45962c], eax
call fcn.0040e4b0
mov dword [0x459628], eax
cmp eax, 0xffffffff
je 0x40d93a
mov edi, dword [esp + 0xb0]
lea eax, [esp + 0x10]
xor ebx, ebx
mov dword [0x52b8a0], edi
mov dword [esp + 0x28], edi
push 0x7b
push edi
mov ebp, dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x40d950
call ebp
mov dword [esp + 0x2c], eax
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov eax, dword [0x52b8bc]
lea edx, [esp + 0x18]
mov dword [esp + 0x20], ebx
push edx
mov ecx, dword [eax*4 + str.f]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40d93a
push 0
push edi
push 0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x21
call edi
lea ebx, [eax*2 + 0x1e0]
push 4
call edi
add ebx, eax
push 0xf
call edi
add ebx, eax
push ebx
push 0x20
call edi
lea eax, [eax*2 + 0x280]
lea ecx, [esp + 0x24]
push eax
push 0x80000000
push 0x80000000
push 0xce0000
push str.VirtuaCop_2
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x52b85c], eax
test eax, eax
jne 0x40d717
push 0
push str.VirtuaCop_2
push str.Cant_create_main_window_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40d93a
mov ecx, dword [esp + 0xbc]
mov dword [0x52b85c], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x52b85c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0040e750
push 0x65
mov ecx, dword [0x52b8a0]
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, eax
call fcn.004461e0
mov ecx, dword [0x459628]
test ecx, ecx
je 0x40d766
mov eax, dword [0x45962c]
test eax, eax
je 0x40d77e
push 0
mov eax, dword [0x52b85c]
push 0x9c50
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.004463c0
mov ebp, dword [esp + 0x5c]
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
lea eax, [esp + 0x40]
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov ecx, dword [0x52b85c]
test eax, eax
mov eax, dword [0x459600]
je 0x40d7e1
mov eax, dword [esp + 0x44]
cmp eax, 0x12
je 0x40d934
lea eax, [esp + 0x40]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40d78d
test eax, eax
je 0x40d913
call ebx
mov dword [0x4ceb98], eax
mov eax, dword [0x4595fc]
test eax, eax
jne 0x40d806
mov eax, dword [0x4ceb98]
add eax, 0x21
mov dword [0x4ceb9c], eax
call ebx
cmp eax, dword [0x4ceb9c]
jae 0x40d8ce
call dword [0x52b840]
call fcn.0040a5d0
mov dword [0x52b8c0], 0
call fcn.00446240
call fcn.00429be0
call ebx
mov ecx, dword [0x4ceb98]
mov edx, dword [0x459624]
sub eax, ecx
mov ecx, dword [0x52b8a8]
mov dword [0x52b890], eax
test edx, edx
mov eax, dword [0x4595f4]
je 0x40d8af
cmp ecx, 0x1e
jbe 0x40d861
mov ecx, 0x1e
test eax, eax
mov dword [0x52b8a8], ecx
je 0x40d887
mov eax, dword [0x52b890]
push eax
push ecx
lea ecx, [esp + 0x64]
push str._2d_FPS__Main__4dms
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40d89b
lea eax, [esp + 0x5c]
push ecx
push str._2d_FPS
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
call dword [0x52b83c]
mov eax, dword [0x4595f4]
inc eax
push eax
jmp 0x40d8b1
push 0
inc ebp
call dword [0x52b844]
call ebx
cmp eax, dword [0x4ceb9c]
jae 0x40d90c
call ebx
cmp eax, dword [0x4ceb9c]
jb 0x40d8c2
jmp 0x40d90c
call dword [0x52b840]
call fcn.0040a5d0
mov dword [0x52b8c0], 1
call fcn.00446240
mov eax, dword [0x4ceb94]
cmp eax, 4
lea ecx, [eax + 1]
mov dword [0x4ceb94], ecx
jle 0x40d90c
call ebx
mov dword [0x4ceb94], 0
mov dword [0x4ceb9c], eax
add dword [0x4ceb9c], 0x21
call ebx
lea ecx, [esi + 0x3e8]
cmp eax, ecx
jbe 0x40d78d
mov dword [0x52b8a8], ebp
call ebx
xor ebp, ebp
mov esi, eax
jmp 0x40d78d
mov eax, dword [esp + 0x48]
jmp 0x40d93c
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x9c
ret 0x10