Function at 0x40b2e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c738
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x465d3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi + 4]
sub eax, 0x10
push eax
call fcn.00401500
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0040d5e8
push 0
or ebx, 0xffffffff
push ebx
push 0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0040b050
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
test eax, eax
je 0x40b555
cmp dword [edi - 0xc], 0
je 0x40b555
cmp dword [ebp + 0xc], 0
jg 0x40b373
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b367
sub eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40b37f
mov esi, dword [esi + 8]
jmp 0x40b387
cmp eax, 1
jne 0x40b397
mov esi, dword [esi + 0xc]
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00402000
mov edi, dword [ebp - 0x14]
push str.MY_LOG_201103311054
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x40b555
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40b518
push eax
mov byte [ebp - 4], 3
call fcn.004337ef
add esp, 4
lea ecx, [ebp - 0x54]
push ecx
push 0x3021
push edi
lea ecx, [ebp - 0x40]
mov ebx, eax
mov dword [ebp - 0x24], edx
call fcn.0040d9e7
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b3f0
test eax, eax
jne 0x40b46e
cmp dword [ebp - 0x4c], 5
jne 0x40b4cd
push eax
call fcn.004337ef
add esp, 4
sub eax, ebx
sbb edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
js 0x40b456
jg 0x40b418
cmp eax, 0xa
jbe 0x40b456
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.0040afc0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040d6c3
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40b59a
push 0x64
call esi
lea ecx, [ebp - 0x54]
push ecx
push 0x1021
push edi
lea ecx, [ebp - 0x40]
call fcn.0040d9e7
jmp 0x40b3f0
lea ecx, [ebp - 0x40]
call fcn.0040d4d3
test edx, edx
ja 0x40b481
cmp eax, 0x1400000
jbe 0x40b495
push 0
push 0
lea ecx, [ebp - 0x40]
call fcn.0040d49d
lea ecx, [ebp - 0x40]
call fcn.0040d40a
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x28]
push 2
push 0
push 0
lea ecx, [ebp - 0x40]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0040d31e
push 2
push 0x451c68
lea ecx, [ebp - 0x40]
call fcn.0040d31e
lea ecx, [ebp - 0x40]
call fcn.0040d582
mov dword [ebp - 4], 2
jmp 0x40b518
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b42e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b42e
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
mov dword [ebp - 0x54], vtable.CFileException.0
mov byte [ebp - 4], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b57e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040d6c3
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
mov dword [ebp - 4], ebx
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x40b5a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc