Function at 0x40cb30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bb5f
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2e4
mov eax, dword [0x4c40e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.DumpCleanUp_Mutex_202108010954
lea ecx, [ebp - 0x44]
call fcn.0040f080
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040f570
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0xffffffff
je 0x40cba1
cmp dword [ebp - 0x1a4], 0
jne 0x40cbba
lea ecx, [ebp - 0x44]
call fcn.0040f570
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0xffffffff
je 0x40cc91
cmp dword [ebp - 0x1a4], 0
je 0x40cc91
mov dword [ebp - 0x1d4], 0x3e8
mov eax, dword [ebp - 0x1d4]
push eax
mov ecx, dword [ebp - 0x1a4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1ec], eax
lea edx, [ebp - 0x1a4]
push edx
lea ecx, [ebp - 0x2a0]
call fcn.0040d3a0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x290], esp
push eax
call fcn.0041d8b0
mov dword [ebp - 0x2a4], eax
lea ecx, [ebp - 0xa4]
call fcn.00404540
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x40cc4d
jmp 0x40cc4f
jmp 0x40cc82
mov dword [ebp - 0x1d8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.004045a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040f220
mov eax, dword [ebp - 0x1d8]
jmp 0x40d37d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.004045a0
mov byte [ebp - 4], 2
cmp dword [ebp + 0xc], 3
jle 0x40cd63
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040f080
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 4], 3
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
push ecx
lea ecx, [ebp - 0xbc]
call fcn.0040f080
lea ecx, [ebp - 0xd4]
call fcn.0040f570
push eax
call dword [sym.imp.MSVCR120.dll_atof]
add esp, 4
fstp qword [ebp - 0x23c]
movsd xmm0, qword [ebp - 0x23c]
comisd xmm0, xmmword [0x4afe78]
jbe 0x40cd19
mov edx, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x23c]
movsd qword [edx + 8], xmm0
lea ecx, [ebp - 0xbc]
call fcn.0040f570
push eax
call dword [sym.imp.MSVCR120.dll_atoi]
add esp, 4
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jle 0x40cd49
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1bc]
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0xbc]
call fcn.0040f220
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.0040f220
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c1f0
add esp, 8
lea ecx, [ebp - 0x130]
push ecx
call fcn.004093b0
add esp, 4
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
imul eax, dword [edx + 0x10], 0xffffffff
push eax
lea ecx, [ebp - 0xec]
push ecx
call fcn.00409400
add esp, 8
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1d0]
call fcn.004109a0
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 6
movsd xmm0, qword [0x4afe78]
movsd qword [ebp - 0x1b4], xmm0
mov edx, dword [ebp + 8]
movsd xmm0, qword [edx + 8]
mulsd xmm0, qword [0x4afe98]
movsd qword [ebp - 0x268], xmm0
movsd xmm0, qword [0x4afea0]
movsd qword [ebp - 0x28c], xmm0
lea ecx, [ebp - 0x298]
call fcn.00413b60
mov dword [ebp - 0x278], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2b8]
call fcn.004109a0
mov dword [ebp - 0x29c], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x174]
call fcn.004135e0
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x148]
call fcn.0040f980
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e8], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x1e8]
push edx
lea ecx, [ebp - 0x118]
call fcn.00413680
mov dword [ebp - 0x254], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x148]
call fcn.0040c690
jmp 0x40ce92
lea ecx, [ebp - 0x118]
call fcn.004137c0
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.0041d650
add esp, 8
mov byte [ebp - 0x19f], al
movzx edx, byte [ebp - 0x19f]
test edx, edx
je 0x40d091
lea ecx, [ebp - 0x118]
call fcn.004137a0
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
call fcn.00402980
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040f9e0
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x74]
call fcn.0040fa00
mov dword [ebp - 0x260], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.0040f010
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 0xf
xorpd xmm0, xmm0
movlpd qword [ebp - 0x24c], xmm0
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00409460
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.0040f5d0
movzx edx, al
test edx, edx
jne 0x40cfab
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0041cc70
add esp, 8
mov byte [ebp - 0x19d], al
movzx edx, byte [ebp - 0x19d]
test edx, edx
je 0x40cfab
lea eax, [ebp - 0x74]
push eax
call fcn.0041d920
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.0040f220
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x5c]
call fcn.0040f220
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x74]
call fcn.0040c690
jmp 0x40ce87
lea ecx, [ebp - 0x5c]
push ecx
call fcn.004094f0
add esp, 4
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 0x1f4], edx
mov edx, dword [ebp - 0x1f8]
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
call fcn.0049a41f
divsd xmm0, qword [ebp - 0x28c]
movsd qword [ebp - 0x244], xmm0
movsd xmm0, qword [ebp - 0x1b4]
addsd xmm0, qword [ebp - 0x244]
movsd qword [ebp - 0x1b4], xmm0
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0041d950
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x200]
mov dword [ebp - 0x208], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x208]
push edx
lea ecx, [ebp - 0x1d0]
call fcn.00413a20
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x19c]
call fcn.0040d4d0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.0040f220
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x5c]
call fcn.0040f220
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x74]
call fcn.0040c690
jmp 0x40ce87
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x118]
call fcn.00413780
movzx eax, byte [ebp - 0x1a6]
push eax
lea ecx, [ebp - 0x274]
push ecx
lea ecx, [ebp - 0x1d0]
call fcn.00410b80
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.00410b20
mov ecx, dword [eax]
push ecx
call fcn.0041d9a0
add esp, 0xc
lea edx, [ebp - 0x1d0]
mov dword [ebp - 0x1b8], edx
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp - 0x1b8]
call fcn.00410b20
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x1b8]
call fcn.00410b80
jmp 0x40d117
lea ecx, [ebp - 0x1ac]
call fcn.00413bb0
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x1ac]
call fcn.0040fcf0
mov byte [ebp - 0x19e], al
movzx eax, byte [ebp - 0x19e]
test eax, eax
je 0x40d22d
lea ecx, [ebp - 0x1ac]
call fcn.00413030
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x1c0], ecx
movsd xmm0, qword [ebp - 0x268]
comisd xmm0, xmmword [ebp - 0x1b4]
jbe 0x40d172
jmp 0x40d22d
mov edx, dword [ebp - 0x1c0]
push edx
call fcn.00418330
add esp, 4
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x1c0]
push ecx
call fcn.0041a290
add esp, 4
mov dword [ebp - 0x22c], eax
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x204], edx
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x8c]
call fcn.0040f980
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0041d740
add esp, 4
mov byte [ebp - 0x1a5], al
movzx edx, byte [ebp - 0x1a5]
test edx, edx
je 0x40d219
lea eax, [ebp - 0x8c]
push eax
call fcn.0041d5c0
add esp, 4
mov ecx, dword [ebp - 0x204]
movsd xmm0, qword [ebp - 0x1b4]
subsd xmm0, qword [ecx]
movsd qword [ebp - 0x1b4], xmm0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8c]
call fcn.0040c690
jmp 0x40d10c
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x174]
call fcn.00413780
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2b8]
call fcn.00411230
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x298]
call fcn.0040d4b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1d0]
call fcn.00413b40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xec]
call fcn.0040f220
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x130]
call fcn.0040f220
jmp 0x40d33e
mov dword [ebp - 4], 0
jmp 0x40d35e
mov dword [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040f220
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00499716
mov esp, ebp
pop ebp
ret