Function at 0x4903d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x60]
mov ecx, dword [edx + 0x128]
mov dword [ebp - 4], eax
cmp ecx, 1
jne 0x490407
push 0x4f6540
push dword [ebp - 4]
call fcn.004d2efc
add esp, 8
test eax, eax
je 0x49044b
push str.CONIN_
push dword [ebp - 4]
call fcn.004d2efc
add esp, 8
test eax, eax
jne 0x490452
mov eax, dword [ebp + 8]
push dword [eax + 0xd4]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x49044b
mov eax, dword [0x5212e8]
test eax, eax
je 0x490452
mov eax, dword [ebp + 8]
push dword [eax + 0xd4]
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
jne 0x490452
mov dword [ebp - 4], 0x4f5f6c
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x49046f
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x49045a
dec eax
lea ebx, [eax - 0x10]
test ebx, ebx
jle 0x49048b
mov edx, dword [ebp - 4]
cmp ebx, 8
jle 0x490483
mov ebx, 8
lea ecx, [edx + ebx]
mov dword [ebp - 0x18], ecx
sub eax, ebx
mov edx, ecx
and edx, 0xfffffff8
mov dword [ebp - 0x1c], edx
and ecx, 7
mov dword [ebp - 0x14], ecx
je 0x4904ca
mov ecx, edx
mov ebx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x20], edx
mov edx, dword [ecx + 0xc]
neg ebx
lea ecx, [ebx*8 + 0x40]
cmp ecx, 0x1f
ja 0x4904c1
mov ebx, dword [ebp - 0x20]
shld edx, ebx, cl
shl ebx, cl
jmp 0x4904ce
mov edx, dword [ebp - 0x20]
shl edx, cl
xor ebx, ebx
jmp 0x4904ce
xor ebx, ebx
xor edx, edx
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x14]
shl ecx, 3
cmp ecx, 0x1f
mov dword [ebp - 0x14], ecx
ja 0x4904f9
mov esi, edi
mov edi, dword [ebp - 0x20]
shrd edi, esi, cl
shr esi, cl
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jmp 0x490507
mov esi, edi
shr esi, cl
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
or ebx, dword [ebp - 0x20]
or edx, dword [ebp - 0x1c]
cmp eax, 8
ja 0x490529
mov ecx, dword [eax*8 + 0x4f64e0]
mov eax, dword [eax*8 + 0x4f64e4]
and ebx, ecx
and edx, eax
jmp 0x4905cc
mov edi, dword [ebp - 0x18]
lea edi, [edi + eax - 8]
mov eax, edi
and eax, 0xfffffff8
and edi, 7
mov dword [ebp - 0x1c], eax
je 0x49057f
mov esi, eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, edi
neg eax
lea ecx, [eax*8 + 0x40]
cmp ecx, 0x1f
ja 0x49056e
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
shld esi, eax, cl
shl eax, cl
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
jmp 0x490587
mov eax, dword [ebp - 0x20]
shl eax, cl
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
jmp 0x490587
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
shl edi, 3
cmp edi, 0x1f
ja 0x4905ae
mov esi, dword [ebp - 0x20]
mov ecx, edi
shrd esi, eax, cl
mov edi, eax
shr edi, cl
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
jmp 0x4905bc
mov dword [ebp - 0x1c], 0
mov ecx, edi
shr eax, cl
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
or ecx, dword [ebp - 0x1c]
xor ebx, eax
xor edx, ecx
mov eax, 0x3ee4f99d
mov edi, dword [0x50fea0]
xor ebx, edx
imul ebx
mov ecx, ebx
sar ecx, 0x1f
sar edx, 7
sub edx, ecx
imul esi, edx, 0x209
sub ebx, esi
mov eax, ebx
cdq
xor ebx, edx
sub ebx, edx
cmp edi, 2
jge 0x490622
lea eax, [ebx*4]
mov edx, ebx
shl edx, 5
sub edx, eax
mov ecx, dword [edx + 0x51c5e8]
mov dword [ebp - 0x18], edx
test ecx, ecx
jne 0x490677
mov eax, edx
mov dword [eax + 0x51c5e8], 1
jmp 0x490677
lea eax, [ebx*4]
mov edx, ebx
shl edx, 5
sub edx, eax
mov dword [ebp - 0x18], edx
lea esi, [edx + 0x51c5e8]
push esi
call fcn.004833c0
pop ecx
test eax, eax
jne 0x490677
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x51c5e4]
test edx, edx
je 0x49092c
mov dword [eax + 0x51c5e8], 0
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push dword [eax + 0x51c5e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.004833c0
pop ecx
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x490917
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x51c5e0]
mov dword [ebp - 0x14], edx
test edx, edx
je 0x49090b
mov ecx, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
mov esi, dword [ecx + 8]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x4906ce
test dl, dl
je 0x4906ca
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x4906ce
add edi, 2
add esi, 2
test dl, dl
jne 0x4906ae
xor eax, eax
jmp 0x4906d3
sbb eax, eax
or eax, 1
test eax, eax
jle 0x4908f7
mov ebx, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4906a8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x20]
push eax
push 0
push 0x24
call fcn.00484a50
add esp, 0xc
mov esi, eax
test esi, esi
je 0x49074c
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x490883
cmp eax, 2
jge 0x490724
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x51c5e8], 0
jmp 0x49073d
mov eax, dword [ebp - 0x18]
push dword [eax + 0x51c5e4]
mov dword [eax + 0x51c5e8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov eax, esi
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x490766
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x490751
dec eax
mov edx, dword [ebp - 0x20]
inc eax
add edx, 8
push edx
push 0
push eax
call fcn.00484a50
add esp, 0xc
mov esi, eax
test esi, esi
je 0x4907d2
push dword [ebp - 0x20]
call fcn.004849b0
pop ecx
mov eax, dword [0x50fea0]
cmp eax, 1
je 0x4908a4
cmp eax, 2
jge 0x4907aa
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x51c5e8], 0
jmp 0x4907c3
mov eax, dword [ebp - 0x18]
push dword [eax + 0x51c5e4]
mov dword [eax + 0x51c5e8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov eax, esi
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 4]
mov esi, dword [eax + 8]
mov dl, byte [edi]
inc edi
mov byte [esi], dl
inc esi
test dl, dl
jne 0x4907db
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
test edx, edx
je 0x4907f7
mov eax, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
test edx, edx
je 0x4908e6
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx + 0x20], al
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x14], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, dword [0x50fea0]
inc dword [edx + 0x18]
cmp eax, 1
je 0x4908c5
cmp eax, 2
jge 0x49085b
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x51c5e8], 0
jmp 0x490874
mov eax, dword [ebp - 0x18]
push dword [eax + 0x51c5e4]
mov dword [eax + 0x51c5e8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push dword [eax + 0x51c5f8]
push dword [eax + 0x51c5f4]
call fcn.00483370
add esp, 8
mov eax, dword [0x50fea0]
jmp 0x490710
mov eax, dword [ebp - 0x18]
push dword [eax + 0x51c5f8]
push dword [eax + 0x51c5f4]
call fcn.00483370
add esp, 8
mov eax, dword [0x50fea0]
jmp 0x490796
mov eax, dword [ebp - 0x18]
push dword [eax + 0x51c5f8]
push dword [eax + 0x51c5f4]
call fcn.00483370
add esp, 8
mov eax, dword [0x50fea0]
jmp 0x490847
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x51c5e0], edx
jmp 0x490810
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x20]
jne 0x4906ec
jmp 0x49082d
mov dword [ebp - 0x1c], 0
jmp 0x4906ec
mov eax, dword [ebp - 0x18]
lea edx, [eax + 0x51c5f4]
push edx
call fcn.00483390
pop ecx
jmp 0x490685
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x51c5e8], 0
mov dword [edx + 0x51c5e4], eax
jmp 0x49065f