Function at 0x413830
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4908fe
mov eax, dword fs:[0]
push eax
sub esp, 0x8f4
mov eax, dword [0x4ad658]
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
xor ebx, ebx
mov dword [ebp - 0x8e0], 0x498f1c
mov dword [ebp - 0x8dc], ebx
mov dword [ebp - 0x8d8], ebx
mov dword [ebp - 0x8d4], ebx
mov dword [ebp - 0x8d0], ebx
mov dword [ebp - 0x8cc], ebx
mov dword [ebp - 0x8c8], ebx
mov dword [ebp - 4], ebx
mov edi, dword [0x4b6080]
lea eax, [ebp - 0x8e0]
add edi, 0x10
push edi
mov dword [ebp - 0x8a4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x4b5d64]
lea ecx, [ebp - 0x8a4]
push ecx
lea edx, [ebp - 0x8a8]
push edx
mov dword [ebp - 0x8a8], eax
call fcn.0041ba90
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xf
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], bl
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
xor ecx, ecx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xfc], ebx
mov byte [ebp - 0x10c], bl
lea edx, [ebp - 0x8a4]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 9
mov dword [ebp - 0x8a4], ebx
push edx
lea eax, [ebp - 0xd4]
push eax
lea edx, [ebp - 0xf0]
lea ecx, [ebp - 0x48]
call fcn.00413680
add esp, 0x20
test al, al
jne 0x4139e6
mov eax, dword [ebp - 0x64]
mov ecx, 0x10
mov dword [ebp - 0x54], ebx
cmp dword [ebp - 0x50], ecx
jae 0x4139c4
lea eax, [ebp - 0x64]
mov byte [eax], bl
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x18], ecx
jae 0x4139d4
lea eax, [ebp - 0x2c]
mov byte [eax], bl
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x34], ecx
jae 0x4139e4
lea eax, [ebp - 0x48]
mov byte [eax], bl
lea ecx, [ebp - 0x2c]
lea esi, [ebp - 0x154]
call fcn.00458190
mov esi, eax
lea ebx, [ebp - 0x80]
lea edi, [ebp - 0x128]
mov byte [ebp - 4], 0xa
call fcn.00414470
mov esi, 0x10
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x140], esi
jb 0x413a28
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.00464d3e
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x144], ebx
mov byte [ebp - 0x154], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x128]
cmp dword [ebp - 0x114], esi
jae 0x413a5b
lea eax, [ebp - 0x128]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 0xffffffff
je 0x413f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413f38
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
cmp dword [ebp - 0x8a4], ebx
je 0x413ab0
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x138]
mov esi, 2
push edx
jmp 0x413ae4
cmp dword [ebp - 0x1c], ebx
jne 0x413acf
push 0x122
push 0x23a
push ebx
push ebx
lea eax, [ebp - 0x138]
mov esi, 1
push eax
jmp 0x413ae4
push 0xf2
push 0x1cb
push ebx
push ebx
lea ecx, [ebp - 0x138]
xor esi, esi
push ecx
call dword [sym.imp.USER32.dll_SetRect]
push esi
lea edi, [ebp - 0x8a0]
call fcn.00403090
push ebx
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0xd
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x900]
mov dword [ebp - 0x8ec], 7
mov dword [ebp - 0x8f0], ebx
mov word [ebp - 0x900], dx
call fcn.00412800
push ebx
lea ecx, [ebp - 0x900]
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x5c8]
mov byte [ebp - 4], 0xe
call fcn.00412800
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x8ec], 8
jb 0x413b5f
mov edx, dword [ebp - 0x900]
push edx
call fcn.00464d3e
add esp, 4
push ecx
mov eax, esp
lea ecx, [ebp - 0x138]
lea esi, [ebp - 0x8a0]
mov dword [ebp - 0x8a8], esp
mov dword [eax], ecx
call fcn.004141e0
cmp eax, ebx
jne 0x413d0e
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.00404450
mov edi, 0x10
cmp dword [ebp - 0x114], edi
jb 0x413baa
mov edx, dword [ebp - 0x128]
push edx
call fcn.00464d3e
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x128], bl
cmp dword [ebp - 0xf8], edi
jb 0x413bd8
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00464d3e
add esp, 4
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xfc], ebx
mov byte [ebp - 0x10c], bl
jb 0x413c02
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00464d3e
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
cmp dword [ebp - 0x6c], edi
jb 0x413c2c
mov eax, dword [ebp - 0x80]
push eax
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0xdc], edi
jb 0x413c4c
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
cmp dword [ebp - 0x34], edi
jb 0x413c6f
mov edx, dword [ebp - 0x48]
push edx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], edi
jb 0x413c89
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0xa4], edi
jb 0x413ca9
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
cmp dword [ebp - 0x50], edi
jb 0x413ccc
mov edx, dword [ebp - 0x64]
push edx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0xc0], edi
jb 0x413cec
mov eax, dword [ebp - 0xd4]
push eax
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0xc0], esi
lea esi, [ebp - 0x8e0]
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], bl
call fcn.00414100
jmp 0x4140d6
lea ecx, [ebp - 0x89c]
call fcn.0041b130
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x8a8], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x10c]
mov esi, 0xf
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00412a40
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x8a0]
push edx
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x48]
call fcn.00406020
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x8a0]
push ecx
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0xd4]
call fcn.00405a70
mov edx, dword [ebp - 0x89c]
xor eax, eax
cmp dword [ebp - 0x8a4], ebx
sete al
push eax
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [ebp - 0x8e0]
call fcn.0041b090
mov dword [ebp - 0x8a8], eax
call fcn.0041af40
lea ecx, [ebp - 0x8a0]
mov byte [ebp - 4], 0xc
call fcn.00404450
mov edi, 0x10
cmp dword [ebp - 0x114], edi
jb 0x413dd3
mov eax, dword [ebp - 0x128]
push eax
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x128], bl
cmp dword [ebp - 0xf8], edi
jb 0x413dfc
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.00464d3e
add esp, 4
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xfc], ebx
mov byte [ebp - 0x10c], bl
jb 0x413e26
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00464d3e
add esp, 4
xor eax, eax
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0x6c], edi
jb 0x413e50
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0xdc], edi
jb 0x413e70
mov edx, dword [ebp - 0xf0]
push edx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
cmp dword [ebp - 0x34], edi
jb 0x413e93
mov eax, dword [ebp - 0x48]
push eax
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], edi
jb 0x413ead
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0xa4], edi
jb 0x413ecd
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
cmp dword [ebp - 0x50], edi
jb 0x413ef0
mov eax, dword [ebp - 0x64]
push eax
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0xc0], edi
jb 0x413f10
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0xc0], esi
lea esi, [ebp - 0x8e0]
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], bl
call fcn.00414100
mov eax, dword [ebp - 0x8a8]
jmp 0x4140d8
cmp dword [ebp - 0x114], esi
jb 0x413f4f
mov edx, dword [ebp - 0x128]
push edx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], ebx
mov byte [ebp - 0x128], bl
cmp dword [ebp - 0xf8], esi
jb 0x413f78
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00464d3e
add esp, 4
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xfc], ebx
mov byte [ebp - 0x10c], bl
jb 0x413fa2
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00464d3e
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
cmp dword [ebp - 0x6c], esi
jb 0x413fcc
mov eax, dword [ebp - 0x80]
push eax
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0xdc], esi
jb 0x413fec
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
cmp dword [ebp - 0x34], esi
jb 0x41400f
mov edx, dword [ebp - 0x48]
push edx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], esi
jb 0x414029
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0xa4], esi
jb 0x414049
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
cmp dword [ebp - 0x50], esi
jb 0x41406c
mov edx, dword [ebp - 0x64]
push edx
call fcn.00464d3e
add esp, 4
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0xc0], esi
jb 0x41408c
mov eax, dword [ebp - 0xd4]
push eax
call fcn.00464d3e
add esp, 4
mov eax, dword [ebp - 0x8d0]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], bl
cmp eax, ebx
je 0x4140b7
push eax
call fcn.00464e48
add esp, 4
mov dword [ebp - 0x8d0], ebx
mov eax, dword [ebp - 0x8dc]
mov dword [ebp - 0x8cc], ebx
mov dword [ebp - 0x8c8], ebx
cmp eax, ebx
je 0x4140d6
push eax
call fcn.00464e48
add esp, 4
xor eax, eax
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.00464d49
mov esp, ebp
pop ebp
ret