Function at 0x419224
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x28], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4195ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x29], 0
lea edx, [ebp - 0x198]
mov eax, dword [0x4d6dec]
call fcn.00406224
lea eax, [ebp - 0x198]
push eax
lea edx, [ebp - 0x19c]
mov eax, dword [0x4d6da0]
call fcn.00406224
mov edx, dword [ebp - 0x19c]
pop eax
call fcn.004037a0
mov eax, dword [ebp - 0x198]
call fcn.00403998
push eax
push 0
push 0x100000
call sub.KERNEL32.dll_OpenMutexA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4195ac
push 0x104
lea eax, [ebp - 0x191]
push eax
push ebx
call sub.KERNEL32.dll_GetModuleFileNameA
push 0xffffffffffffffff
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x41959c
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 1
lea ebx, [ebp - 0x8c]
lea esi, [ebp - 0x24]
lea edx, [ebp - 0x1a0]
mov eax, dword [0x4d6dec]
call fcn.00406224
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x1a4]
mov dl, byte [ebp - 0x64]
add dl, 0x30
call fcn.004036f0
mov edx, dword [ebp - 0x1a4]
pop eax
call fcn.004037a0
mov eax, dword [ebp - 0x1a0]
call fcn.00403998
push eax
push 0
push 0xf001f
call sub.KERNEL32.dll_OpenFileMappingA
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x41937b
push 0
push 0
push 0
push 0xf001f
push edi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [esi], eax
cmp dword [esi], 0
jne 0x419373
mov eax, dword [ebx]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
mov dword [ebx], eax
jmp 0x41937b
mov eax, dword [esi]
mov eax, dword [eax + 8]
add dword [ebp - 0x68], eax
cmp dword [ebx], 0
je 0x419393
inc dword [ebp - 0x64]
add esi, 4
add ebx, 4
cmp dword [ebp - 0x64], 0xa
jne 0x4192f9
mov eax, dword [ebp - 0x68]
dec eax
cmp eax, 0
jl 0x419555
mov dword [ebp - 0x64], eax
push ebp
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x64]
call fcn.00419198
pop ecx
mov eax, dword [ebp - 0x34]
cmp byte [eax], 0
je 0x4193f0
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
jne 0x4193f0
lea eax, [ebp - 0x191]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x4193f4
xor ecx, ecx
jmp 0x4193f6
mov cl, 1
test cl, cl
je 0x419548
cmp byte [ebp + 8], 0
jne 0x419434
mov eax, dword [ebp - 0x4c]
mov al, byte [eax]
cmp al, byte [ebp + 0xc]
jne 0x419548
mov eax, dword [ebp - 0x54]
cmp dword [eax + 4], 0
jne 0x419548
cmp dword [eax], 0
jne 0x419548
mov eax, dword [ebp - 0x5c]
cmp dword [eax], 0
jne 0x419548
mov byte [ebp - 0x29], 1
mov esi, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
sub ebx, 2
sub ebx, esi
jl 0x41953d
inc ebx
push ebp
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x38]
lea eax, [esi + 1]
call fcn.00419198
pop ecx
mov edx, 0x5b
mov eax, dword [ebp - 0x44]
call fcn.00404eb4
mov eax, 0x5a
mov edx, dword [ebp - 0x48]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x44]
mov byte [ecx + eax], dl
dec eax
cmp eax, 0xffffffff
jne 0x41947c
mov eax, dword [ebp - 0x50]
mov al, byte [eax]
mov edx, dword [ebp - 0x4c]
mov byte [edx], al
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov edx, dword [ebp - 0x5c]
mov dword [edx], eax
mov edx, 0x104
mov eax, dword [ebp - 0x3c]
call fcn.00404eb4
mov edx, 0x104
mov eax, dword [ebp - 0x34]
call fcn.00404eb4
mov eax, 0x103
mov edx, dword [ebp - 0x40]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x3c]
mov byte [ecx + eax], dl
dec eax
cmp eax, 0xffffffff
jne 0x4194d1
mov eax, 0x103
mov edx, dword [ebp - 0x38]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x34]
mov byte [ecx + eax], dl
dec eax
test eax, eax
jne 0x4194e8
mov ecx, 1
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
call fcn.0040fe60
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x34]
cmp byte [eax], 0
je 0x41953d
inc esi
dec ebx
jne 0x41944a
push 0
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.dll_InterlockedExchange
dec dword [ebp - 0x64]
cmp dword [ebp - 0x64], 0xffffffff
jne 0x4193a3
mov dword [ebp - 0x64], 9
lea esi, [ebp - 0x8c]
lea ebx, [ebp - 0x24]
cmp dword [esi], 0
je 0x419585
mov eax, dword [ebx]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov eax, dword [esi]
push eax
call sub.KERNEL32.dll_CloseHandle
add ebx, 4
add esi, 4
dec dword [ebp - 0x64]
jne 0x419565
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4195a3
mov eax, dword [ebp - 0x30]
push eax
call sub.KERNEL32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4195d1
lea eax, [ebp - 0x1a4]
mov edx, 4
call fcn.0040352c
ret