Function at 0x433bb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 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 0x433be5
push 0x4b4320
push eax
call fcn.0048afc2
add esp, 8
test eax, eax
je 0x433c2a
push str.CONIN_
mov eax, dword [ebp - 4]
push eax
call fcn.0048afc2
add esp, 8
test eax, eax
jne 0x433c32
mov eax, dword [ebp + 8]
push dword [eax + 0xd4]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x433c2a
mov eax, dword [0x4caa54]
test eax, eax
je 0x433c32
mov eax, dword [ebp + 8]
push dword [eax + 0xd4]
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
jne 0x433c32
mov eax, str.CONOUT_
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x433c51
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x433c3a
add eax, 0xffffffff
lea ebx, [eax - 0x10]
test ebx, ebx
jle 0x433c6d
mov edx, dword [ebp - 4]
cmp ebx, 8
jle 0x433c65
mov ebx, 8
lea ecx, [edx + ebx]
mov dword [ebp - 0x14], ecx
sub eax, ebx
mov ecx, dword [ebp - 0x14]
mov edx, ecx
and edx, 0xfffffff8
mov dword [ebp - 0xc], edx
and ecx, 7
mov dword [ebp - 0x24], ecx
je 0x433caf
mov ecx, edx
mov ebx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 0xc]
neg ebx
lea ecx, [ebx*8 + 0x40]
cmp ecx, 0x1f
ja 0x433ca6
mov ebx, dword [ebp - 0x10]
shld edx, ebx, cl
shl ebx, cl
jmp 0x433cb3
mov edx, dword [ebp - 0x10]
xor ebx, ebx
shl edx, cl
jmp 0x433cb3
xor ebx, ebx
xor edx, edx
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], edi
shl ecx, 3
cmp ecx, 0x1f
mov dword [ebp - 0x24], ecx
ja 0x433ce1
mov esi, edi
mov edi, dword [ebp - 8]
shrd edi, esi, cl
mov dword [ebp - 8], edi
shr esi, cl
mov dword [ebp - 0xc], esi
jmp 0x433ceb
xor esi, esi
mov dword [ebp - 0xc], esi
shr edi, cl
mov dword [ebp - 8], edi
or ebx, dword [ebp - 8]
or edx, dword [ebp - 0xc]
cmp eax, 8
ja 0x433d0d
mov ecx, dword [eax*8 + 0x4b42c0]
mov eax, dword [eax*8 + 0x4b42c4]
and ebx, ecx
and edx, eax
jmp 0x433db4
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax - 8]
mov esi, eax
and esi, 0xfffffff8
and eax, 7
mov dword [ebp - 0x10], esi
je 0x433d61
mov edi, esi
mov esi, dword [edi + 8]
mov dword [ebp - 0x14], esi
mov esi, dword [edi + 0xc]
mov dword [ebp - 8], esi
mov esi, eax
neg esi
lea ecx, [esi*8 + 0x40]
cmp ecx, 0x1f
ja 0x433d52
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
shld edi, esi, cl
shl esi, cl
mov dword [ebp - 8], edi
mov dword [ebp - 0x24], esi
jmp 0x433d69
mov edi, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x24], esi
shl edi, cl
mov dword [ebp - 8], edi
jmp 0x433d69
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], esi
mov edi, dword [ebp - 0x10]
mov esi, dword [edi]
mov dword [ebp - 0xc], esi
mov esi, dword [edi + 4]
shl eax, 3
mov dword [ebp - 0x10], esi
cmp eax, 0x1f
ja 0x433d95
mov edi, dword [ebp - 0xc]
mov ecx, eax
shrd edi, esi, cl
mov ecx, eax
mov eax, esi
mov dword [ebp - 0xc], edi
shr eax, cl
mov dword [ebp - 0x14], eax
jmp 0x433da4
xor esi, esi
mov dword [ebp - 0x14], esi
mov ecx, eax
mov eax, dword [ebp - 0x10]
shr eax, cl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
or eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
or ecx, dword [ebp - 0x14]
xor ebx, eax
xor edx, ecx
mov eax, 0x3ee4f99d
mov edi, dword [0x4c9460]
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 0x433e08
mov eax, ebx
shl eax, 2
mov edx, ebx
shl edx, 5
sub edx, eax
mov ecx, dword [edx + 0x440c2e8]
mov dword [ebp - 0x10], edx
test ecx, ecx
jne 0x433e5b
mov eax, edx
mov dword [eax + 0x440c2e8], 1
jmp 0x433e5b
mov eax, ebx
shl eax, 2
mov edx, ebx
shl edx, 5
sub edx, eax
mov dword [ebp - 0x10], edx
lea esi, [edx + 0x440c2e8]
push esi
call fcn.004161ac
pop ecx
test eax, eax
jne 0x433e5b
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x440c2e4]
test edx, edx
je 0x434162
mov dword [eax + 0x440c2e8], 0
mov eax, dword [ebp - 0x10]
push 0xffffffffffffffff
push dword [eax + 0x440c2e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.004161ac
pop ecx
mov eax, dword [0x4c9460]
cmp eax, 1
je 0x43414d
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x440c2e0]
mov dword [ebp - 0x14], edx
test edx, edx
je 0x434143
mov edi, dword [ebp - 4]
mov eax, edx
mov esi, dword [eax + 8]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x433ea5
test dl, dl
je 0x433ea1
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x433ea5
add edi, 2
add esi, 2
test dl, dl
jne 0x433e85
xor eax, eax
jmp 0x433eaa
sbb eax, eax
or eax, 1
test eax, eax
jle 0x434136
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
mov ebx, ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x434128
mov edi, dword [ebp - 4]
mov esi, dword [ecx + 8]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x433eea
test dl, dl
je 0x433ee6
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x433eea
add edi, 2
add esi, 2
test dl, dl
jne 0x433eca
xor eax, eax
jmp 0x433eef
sbb eax, eax
or eax, 1
test eax, eax
jg 0x433eb8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x24]
je 0x43405d
lea eax, [ebp - 0x24]
push eax
push 0
push 0x24
call fcn.00431768
add esp, 0xc
mov esi, eax
test esi, esi
je 0x433f62
mov eax, dword [0x4c9460]
cmp eax, 1
je 0x4340b4
cmp eax, 2
jge 0x433f3a
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x440c2e8], 0
jmp 0x433f53
mov eax, dword [ebp - 0x10]
push dword [eax + 0x440c2e4]
mov dword [eax + 0x440c2e8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov eax, esi
mov esi, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x433f7e
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x433f67
add eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add eax, 1
add edx, 8
push edx
push 0
push eax
call fcn.00431768
add esp, 0xc
mov esi, eax
test esi, esi
je 0x433fec
push dword [ebp - 0x24]
call fcn.004316dc
pop ecx
mov eax, dword [0x4c9460]
cmp eax, 1
je 0x4340d5
cmp eax, 2
jge 0x433fc4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x440c2e8], 0
jmp 0x433fdd
mov eax, dword [ebp - 0x10]
push dword [eax + 0x440c2e4]
mov dword [eax + 0x440c2e8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
mov eax, esi
mov esi, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 4]
mov esi, dword [eax + 8]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x433ff5
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
test edx, edx
je 0x434015
mov eax, dword [ebp - 0x24]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
test edx, edx
je 0x434117
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
mov edx, dword [ebp - 0x24]
xor eax, eax
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x1c], al
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x1d], al
mov esi, dword [ebp - 0x24]
mov byte [esi + 0x1e], al
mov edi, dword [ebp - 0x24]
mov byte [edi + 0x1f], al
mov edx, dword [ebp - 0x24]
mov byte [edx + 0x20], al
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x14], ebx
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov eax, dword [0x4c9460]
add dword [edx + 0x18], 1
cmp eax, 1
je 0x4340f6
cmp eax, 2
jge 0x43408c
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x440c2e8], 0
jmp 0x4340a5
mov eax, dword [ebp - 0x10]
push dword [eax + 0x440c2e4]
mov dword [eax + 0x440c2e8], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
push dword [eax + 0x440c2f8]
push dword [eax + 0x440c2f4]
call fcn.00416160
add esp, 8
mov eax, dword [0x4c9460]
jmp 0x433f26
mov eax, dword [ebp - 0x10]
push dword [eax + 0x440c2f8]
push dword [eax + 0x440c2f4]
call fcn.00416160
add esp, 8
mov eax, dword [0x4c9460]
jmp 0x433fb0
mov eax, dword [ebp - 0x10]
push dword [eax + 0x440c2f8]
push dword [eax + 0x440c2f4]
call fcn.00416160
add esp, 8
mov eax, dword [0x4c9460]
jmp 0x434078
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x440c2e0], edx
jmp 0x43402e
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x24]
jmp 0x433f02
mov edx, 0
mov dword [ebp - 0xc], edx
jmp 0x433efc
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x433f02
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0x440c2f4]
push edx
call fcn.00416180
pop ecx
jmp 0x433e69
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x440c2e8], 0
mov dword [edx + 0x440c2e4], eax
jmp 0x433e43