Function at 0x48c430
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d9da8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5181f4]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5181f4]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, ecx
xor esi, esi
cmp dword [ebp + 0x60], esi
je 0x48c473
lea eax, [esi + 1]
jmp 0x48c7a5
push 0xffffffffffffffff
lea eax, [ebp + 4]
push esi
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
call fcn.00404c75
mov ecx, dword [esp + 0x38]
cmp ecx, 8
mov edx, dword [esp + 0x24]
mov dword [esp + 0x64], esi
mov eax, edx
jae 0x48c4ab
lea eax, [esp + 0x24]
mov ebx, dword [esp + 0x34]
lea edi, [eax + ebx*2]
cmp edi, esi
je 0x48c4d7
cmp ecx, 8
mov eax, edx
jae 0x48c4c1
lea eax, [esp + 0x24]
cmp eax, edi
ja 0x48c4d7
cmp ecx, 8
mov eax, edx
jae 0x48c4d0
lea eax, [esp + 0x24]
lea eax, [eax + ebx*2]
cmp edi, eax
jbe 0x48c4e8
call fcn.00441e1b
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
cmp ecx, 8
jb 0x48c670
test edx, edx
mov esi, edx
je 0x48c518
cmp ecx, 8
mov eax, edx
jae 0x48c502
lea eax, [esp + 0x24]
cmp eax, esi
ja 0x48c518
cmp ecx, 8
mov eax, edx
jae 0x48c511
lea eax, [esp + 0x24]
lea ecx, [eax + ebx*2]
cmp esi, ecx
jbe 0x48c51d
call fcn.00441e1b
cmp esi, edi
mov eax, esi
je 0x48c535
cmp word [eax], 0x5c
jne 0x48c52e
mov word [eax], 0x2f
add eax, 2
cmp eax, edi
jne 0x48c523
push 7
push str.Global_
xor edi, edi
push edi
lea ecx, [esp + 0x2c]
call fcn.0048ae00
mov eax, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x48c55b
lea eax, [esp + 0x24]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [ebp + 0x64], eax
jne 0x48c59c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x48c59c
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x48c584
lea eax, [esp + 0x24]
push eax
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, edi
mov dword [ebp + 0x64], eax
je 0x48c739
mov esi, dword [ebp + 0x64]
cmp esi, edi
mov ebx, 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
je 0x48c5b9
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push edi
mov dword [esp + 0x58], edi
mov word [esp + 0x48], di
lea edi, [ebp + 4]
push edi
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], bl
mov dword [esp + 0x60], 7
call fcn.00404c75
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
mov dword [esp + 0x2c], 0x5c
call fcn.004275e6
push eax
lea ecx, [esp + 0x44]
call fcn.00404404
cmp dword [esp + 0x54], 8
mov ecx, dword [esp + 0x40]
jae 0x48c617
lea ecx, [esp + 0x40]
call fcn.0048af80
test eax, eax
jge 0x48c679
mov edi, 8
cmp dword [esp + 0x54], edi
jb 0x48c638
mov eax, dword [esp + 0x40]
push eax
call fcn.00441cca
add esp, 4
xor eax, eax
cmp esi, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], eax
mov word [esp + 0x40], ax
je 0x48c656
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0x38], edi
jb 0x48c669
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00441cca
add esp, 4
xor eax, eax
jmp 0x48c7a5
lea esi, [esp + 0x24]
jmp 0x48c4f7
cmp dword [edi + 0x18], 8
jb 0x48c684
mov eax, dword [edi + 4]
jmp 0x48c687
lea eax, [edi + 4]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x48c6f3
mov ebx, 8
cmp dword [esp + 0x54], ebx
jb 0x48c6bd
mov edx, dword [esp + 0x40]
push edx
call fcn.00441cca
add esp, 4
cmp esi, edi
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], di
je 0x48c6d9
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0x38], ebx
jb 0x48c669
mov eax, dword [esp + 0x24]
push eax
call fcn.00441cca
add esp, 4
xor eax, eax
jmp 0x48c7a5
push 0x4008
push eax
call fcn.004516b1
push 0x4eb338
push eax
call fcn.004cdc15
add esp, 0x10
cmp eax, edi
mov dword [ebp + 0x60], eax
jne 0x48c746
call fcn.00445f6b
mov ecx, dword [eax]
and ecx, 0x20000000
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x3c]
call fcn.00404364
lea ecx, [esp + 0x14]
call fcn.0048ab20
lea ecx, [esp + 0x20]
call fcn.00404364
xor eax, eax
jmp 0x48c7a5
push 2
push edi
push eax
call fcn.004cd717
mov edx, dword [ebp + 0x60]
push edx
call fcn.004cd622
add esp, 0x10
test eax, eax
jle 0x48c770
mov eax, dword [ebp + 0x60]
push 0x4eb330
push eax
call fcn.004cda42
add esp, 8
mov ecx, dword [0x51a5e0]
push 3
push str.Opening_the_log__schema___d
push ecx
push edi
push ebp
call fcn.0048bcc0
add esp, 0x14
lea ecx, [esp + 0x3c]
call fcn.00404364
lea ecx, [esp + 0x14]
call fcn.0048ab20
lea ecx, [esp + 0x20]
call fcn.00404364
mov eax, ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00441cbb
add esp, 0x54
ret