Function at 0x433820
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
mov esi, dword [eax]
cmp esi, 0xffffffff
mov dword [ebp - 8], edi
je 0x433848
jle 0x433ba6
cmp esi, 0x68
jg 0x433ba6
inc esi
mov eax, esi
mov ebx, esi
mov edx, esi
test eax, eax
jl 0x433b8e
mov dword [ebp - 0x1c], esi
cmp eax, 0x271
jg 0x433b8e
mov esi, eax
lea ecx, [eax*4]
shl esi, 5
sub esi, ecx
cmp dword [esi + 0x508338], 0
je 0x433b83
mov dword [ebp - 0x18], edx
cmp eax, 0x68
jg 0x433a41
cmp dword [esi + 0x50832c], 0
je 0x4338d2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
shl ecx, 5
mov eax, ebx
lea edx, [ebx*4]
sub ecx, edx
cmp esi, dword [ecx + 0x508328]
jne 0x4338d2
mov esi, dword [ebp - 0x1c]
mov eax, 0x28
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], esi
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp dword [0x5052e0], 2
jge 0x43390c
lea edx, [eax*4]
shl eax, 5
sub eax, edx
mov ecx, dword [eax + 0x508324]
test ecx, ecx
je 0x4338fb
mov eax, 0x98
jmp 0x433992
mov dword [eax + 0x508324], 1
xor eax, eax
jmp 0x433992
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x508324]
push edx
call fcn.0041e6c0
add esp, 4
test eax, eax
je 0x433932
mov eax, 0x98
jmp 0x433992
mov edx, dword [ebp - 0x18]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x508320], 0
je 0x433ddf
mov dword [ecx + 0x508324], 0
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x508320]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x508324]
push ecx
call fcn.0041e6c0
add esp, 4
test eax, eax
je 0x43399d
mov eax, 0x98
jmp 0x4339c4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x18]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x508328], eax
xor eax, eax
mov dword [ecx + 0x50832c], 1
test eax, eax
jne 0x433dd7
mov eax, dword [ebp - 0x18]
mov ecx, eax
shl ecx, 5
lea edx, [eax*4]
sub ecx, edx
mov edx, dword [ecx + 0x508338]
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x433da3
mov dword [ecx + 0x50832c], 0
mov dword [ecx + 0x508328], 0xffffffff
cmp dword [0x5052e0], 2
jge 0x433a1a
mov dword [ecx + 0x508324], 0
jmp 0x433b83
mov dword [ecx + 0x508324], 0
lea edx, [eax*4]
shl eax, 5
sub eax, edx
push dword [eax + 0x508320]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x433b80
call fcn.004341c0
mov edi, eax
mov edx, dword [0x5052e0]
cmp edx, 2
jge 0x433a73
mov eax, dword [esi + 0x508324]
test eax, eax
jne 0x433afb
mov dword [esi + 0x508324], 1
mov ebx, dword [ebp - 0x18]
jmp 0x433afb
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x508324]
push edx
call fcn.0041e6c0
add esp, 4
test eax, eax
jne 0x433af2
mov edx, dword [ebp - 0x18]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x508320], 0
je 0x43406a
mov dword [ecx + 0x508324], 0
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push 0xffffffffffffffff
push dword [edx + 0x508320]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x508324]
push ecx
call fcn.0041e6c0
add esp, 4
mov edx, dword [0x5052e0]
mov ebx, dword [ebp - 0x18]
cmp edx, 1
je 0x434047
mov ecx, ebx
lea eax, [ebx*4]
shl ecx, 5
sub ecx, eax
mov edx, dword [ecx + 0x508338]
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x433e34
mov edx, dword [0x5052e0]
cmp edx, 1
je 0x433e10
mov eax, dword [ebp - 0x18]
cmp edx, 2
jge 0x433b52
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
mov dword [ebx + 0x508324], 0
jmp 0x433b83
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
mov dword [ebx + 0x508324], 0
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
push dword [eax + 0x508320]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x18]
inc eax
mov ebx, eax
mov edx, eax
jns 0x43385a
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [edx], 0xffffffff
mov esp, ebp
pop ebp
ret
lea eax, [esi - 5]
test esi, esi
jge 0x433baf
mov eax, esi
lea ebx, [ebp - 0x10]
mov dword [esp + 0xc], ebx
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00433680
mov edi, eax
mov ebx, dword [ebp - 0x18]
mov eax, ebx
call fcn.004341c0
cmp eax, 0x7fffffff
je 0x433bde
cmp eax, 0xfffffffa
lea esi, [eax + 5]
jg 0x433bde
mov esi, eax
mov eax, dword [ebp + 0xc]
test edi, edi
mov dword [eax], esi
jne 0x433d94
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x43411f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x433c10
mov eax, edx
cmp eax, ecx
je 0x434111
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x433c01
cmp dword [edx + 0xc], 0
je 0x433c2e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 8]
jne 0x433c2e
mov ebx, 0x28
jmp 0x433cba
cmp dword [0x5052e0], 2
jge 0x433c50
mov eax, dword [edx + 4]
test eax, eax
je 0x433c45
mov eax, 0x98
jmp 0x433c96
mov dword [edx + 4], 1
xor eax, eax
jmp 0x433c96
add edx, 4
push edx
call fcn.0041e6c0
add esp, 4
test eax, eax
je 0x433c67
mov eax, 0x98
jmp 0x433c96
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x4340f5
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call fcn.0041e6c0
add esp, 4
test eax, eax
je 0x433ca1
mov ebx, 0x98
jmp 0x433cb6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
xor ebx, ebx
mov dword [edx + 8], eax
mov dword [edx + 0xc], 1
test ebx, ebx
je 0x433d21
mov eax, dword [0x5052e0]
cmp eax, 1
je 0x43409b
cmp eax, 2
jge 0x433ce8
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x508324], 0
jmp 0x433d0d
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x508324], 0
push dword [edx + 0x508320]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp + 0xc]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], esi
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5052e0]
cmp eax, 1
je 0x4340c8
cmp eax, 2
jge 0x433d4f
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x508324], 0
jmp 0x433d74
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x508324], 0
push dword [edx + 0x508320]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00434200
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov eax, edx
mov edx, dword [ebp + 0x10]
call fcn.00434200
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
mov dword [edx], ecx
mov ebx, dword [ecx + 0x100]
cmp ebx, 0xfffffffa
lea esi, [ebx + 5]
jg 0x433dc8
mov esi, ebx
mov dword [edi], esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
jmp 0x4338c0
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x18]
mov ebx, edx
shl ebx, 5
lea ecx, [edx*4]
sub ebx, ecx
mov dword [ebx + 0x508320], eax
mov dword [ebx + 0x508324], 0
jmp 0x43395a
push dword [ecx + 0x508334]
push dword [ecx + 0x508330]
call fcn.0041e6a0
add esp, 8
mov ebx, dword [ebp - 0x18]
mov eax, ebx
mov edx, dword [0x5052e0]
jmp 0x433b35
cmp dword [edx + 0xc], 0
je 0x433e52
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 8]
jne 0x433e52
mov ebx, 0x28
jmp 0x433ede
cmp dword [0x5052e0], 2
jge 0x433e74
mov eax, dword [edx + 4]
test eax, eax
je 0x433e69
mov eax, 0x98
jmp 0x433eba
mov dword [edx + 4], 1
xor eax, eax
jmp 0x433eba
add edx, 4
push edx
call fcn.0041e6c0
add esp, 4
test eax, eax
je 0x433e8b
mov eax, 0x98
jmp 0x433eba
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x43402b
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x14]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call fcn.0041e6c0
add esp, 4
test eax, eax
je 0x433ec5
mov ebx, 0x98
jmp 0x433eda
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x14]
xor ebx, ebx
mov dword [edx + 8], eax
mov dword [edx + 0xc], 1
test ebx, ebx
je 0x433f4f
mov eax, dword [0x5052e0]
cmp eax, 1
je 0x433fd1
cmp eax, 2
jge 0x433f0c
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x508324], 0
jmp 0x433f31
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x508324], 0
push dword [edx + 0x508320]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, 0xfffffffa
lea edx, [edi + 5]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
jg 0x433f40
mov edx, edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5052e0]
cmp eax, 1
je 0x433ffe
cmp eax, 2
jge 0x433f7d
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x508324], 0
jmp 0x433fa2
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x508324], 0
push dword [edx + 0x508320]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00434200
cmp edi, 0xfffffffa
lea ebx, [edi + 5]
mov ecx, dword [ebp + 8]
jg 0x433fba
mov ebx, edi
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov dword [esi], ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x508334]
push dword [edx + 0x508330]
call fcn.0041e6a0
add esp, 8
mov eax, dword [0x5052e0]
jmp 0x433eec
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x508334]
push dword [edx + 0x508330]
call fcn.0041e6a0
add esp, 8
mov eax, dword [0x5052e0]
jmp 0x433f5d
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov dword [edx + 4], 0
jmp 0x433e9e
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
lea edx, [ebx + 0x508330]
push edx
call fcn.0041e670
add esp, 4
mov ebx, dword [ebp - 0x18]
jmp 0x433b04
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x18]
mov ebx, edx
shl ebx, 5
lea ecx, [edx*4]
sub ebx, ecx
mov dword [ebx + 0x508320], eax
mov dword [ebx + 0x508324], 0
jmp 0x433aba
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x508334]
push dword [edx + 0x508330]
call fcn.0041e6a0
add esp, 8
mov eax, dword [0x5052e0]
jmp 0x433cc8
mov edx, dword [ebp - 0x18]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x508334]
push dword [edx + 0x508330]
call fcn.0041e6a0
add esp, 8
mov eax, dword [0x5052e0]
jmp 0x433d2f
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov dword [edx + 4], 0
jmp 0x433c7a
mov edx, dword [eax + 0x28]
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x433c10
mov ecx, dword [0x5052e0]
cmp ecx, 1
je 0x434181
mov eax, dword [ebp - 0x18]
lea edx, [ebx*4]
shl ebx, 5
sub ebx, edx
cmp ecx, 2
jge 0x43414a
mov dword [ebx + 0x508324], 0
jmp 0x43416f
lea edx, [eax*4]
shl eax, 5
sub eax, edx
mov dword [ebx + 0x508324], 0
push dword [eax + 0x508320]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
inc eax
mov ebx, eax
lea edx, [esi + 1]
mov dword [ecx], edx
mov edx, eax
jmp 0x43384f
lea eax, [ebx*4]
shl ebx, 5
sub ebx, eax
push dword [ebx + 0x508334]
push dword [ebx + 0x508330]
call fcn.0041e6a0
add esp, 8
mov ebx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, dword [0x5052e0]
jmp 0x43412d