Function at 0x4239cc
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x18], edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
cmp ecx, 7
mov dword [ebp - 0x20], esi
mov esi, eax
mov eax, 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
jne 0x423a04
mov edx, 1
mov ebx, 6
jmp 0x423a18
cmp ecx, 0xa
mov ebx, ecx
jne 0x423a10
mov ebx, 9
xor edx, edx
cmp ecx, 0xa
sete dl
cmp dword [0x501600], 0
je 0x4247d9
cmp dword [0x4fd500], 2
jge 0x423a37
cmp ebx, 6
je 0x424625
cmp esi, 0xfffffffb
je 0x424655
cmp esi, 0xfffffffa
jg 0x423a4a
mov dword [ebp - 4], esi
jmp 0x423a50
lea eax, [esi + 5]
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edi
mov ecx, dword [ebp - 4]
test ecx, ecx
jl 0x423bfd
cmp ecx, 0x68
jg 0x423bfd
mov edx, ecx
lea eax, [ecx*4]
shl edx, 5
sub edx, eax
cmp dword [edx + 0x50186c], 0
je 0x423ab2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 4]
mov edx, ecx
shl edx, 5
lea edi, [ecx*4]
sub edx, edi
cmp eax, dword [edx + 0x501868]
jne 0x423ab2
mov eax, 0x28
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
cmp dword [0x4fd500], 2
jge 0x423ae9
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov edx, dword [ecx + 0x501864]
test edx, edx
je 0x423adb
mov eax, 0x98
jmp 0x423b63
mov dword [ecx + 0x501864], 1
xor eax, eax
jmp 0x423b63
lea eax, [edx + 0x501864]
push eax
call fcn.00417940
add esp, 4
test eax, eax
je 0x423b03
mov eax, 0x98
jmp 0x423b63
mov edx, dword [ebp - 4]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x501860], 0
je 0x4245f4
mov dword [ecx + 0x501864], 0
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x501860]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x501864]
push ecx
call fcn.00417940
add esp, 4
test eax, eax
je 0x423b6e
mov eax, 0x98
jmp 0x423b95
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 4]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x501868], eax
xor eax, eax
mov dword [ecx + 0x50186c], 1
test eax, eax
jne 0x423aa5
mov eax, dword [ebp - 4]
lea edx, [eax*4]
shl eax, 5
sub eax, edx
mov edx, dword [eax + 0x501878]
test edx, edx
je 0x423bd6
movzx ecx, byte [edx + 0x171]
test cl, 0x20
jne 0x423bcc
test cl, 0x18
je 0x423bcc
cmp ebx, 6
je 0x423bd6
cmp dword [edx + 0x18], 0
je 0x4245e2
lea edi, [ebp - 0xc]
lea edx, [ebp - 8]
lea eax, [eax + 0x501860]
push eax
push edx
push ebx
push edi
push esi
call fcn.00428ec0
add esp, 0x14
cmp eax, 0xfffffffd
je 0x423a56
jmp 0x4244bb
lea edi, [ebp - 0x24]
mov dword [esp + 0xc], edi
mov eax, esi
lea edx, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.004247f0
test eax, eax
jne 0x424424
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x423c2c
cmp esi, dword [eax + 0x100]
je 0x424643
mov edi, dword [ebp - 4]
lea eax, [ebp - 8]
lea edx, [ebp - 0x10]
lea ecx, [edi*4]
shl edi, 5
sub edi, ecx
lea ecx, [edi + 0x501860]
push ecx
push eax
push ebx
push edx
push esi
call fcn.00428ec0
add esp, 0x14
cmp eax, 0xfffffffd
je 0x423a56
mov edx, dword [ebp - 0x3c]
test eax, eax
mov edi, dword [ebp - 0x38]
jne 0x423aa5
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x42434b
mov dword [ebp - 0xc], eax
cmp dword [eax + 0x18], 0
je 0x4241d4
mov eax, dword [0x4fd500]
cmp eax, 1
je 0x4241a7
cmp eax, 2
jge 0x423cb7
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x501864], 0
jmp 0x423cdf
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x501864], 0
push dword [edx + 0x501860]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
cmp ebx, 6
jne 0x423cec
mov ebx, 9
mov dword [eax], ecx
test edi, edi
je 0x423cf5
mov dword [edi + 4], ecx
mov dword [ecx + 0x64], edi
cmp ebx, 0xf
je 0x423d1d
cmp ebx, 0x12
je 0x423d1d
cmp ebx, 0xc
jne 0x423d13
mov eax, dword [ebp - 0xc]
or byte [eax + 0x17a], 2
jmp 0x423d1d
mov eax, dword [ebp - 0xc]
and byte [eax + 0x17a], 0xfd
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x164], bl
mov edx, dword [ebp - 0xc]
and byte [edx + 0x17a], 0xf7
mov ecx, dword [ebp - 0xc]
and byte [ecx + 0x17a], 0xef
cmp dword [ebp - 8], 0
je 0x424131
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004258c0
mov ebx, eax
test ebx, ebx
je 0x424131
cmp esi, 0xfffffffa
jle 0x423d64
lea eax, [esi + 5]
mov edx, eax
jmp 0x423d68
mov eax, esi
mov edx, esi
test eax, eax
jl 0x423f21
cmp eax, 0x68
jg 0x423f21
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
mov edi, dword [eax + 0x501878]
test edi, edi
mov dword [ebp - 0x34], edi
je 0x424140
mov ecx, edi
cmp dword [ecx + 0x18], 0
je 0x423db6
mov eax, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], edx
push 0
push esi
call fcn.00429540
add esp, 8
jmp 0x424119
mov esi, dword [edi + 0x64]
movzx ecx, byte [edi + 0x17b]
test cl, 1
mov dword [ebp - 0x2c], esi
mov dword [edi + 0x64], 0
mov dword [ebp - 0x3c], ecx
je 0x423e00
mov esi, edi
movzx edi, byte [esi + 0x173]
mov ecx, edi
shr edi, 6
and ecx, 0xffffffdf
and edi, 1
shl edi, 5
or ecx, edi
mov byte [esi + 0x173], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xfffffffe
mov dword [ebp - 0x3c], ecx
mov byte [esi + 0x17b], cl
test byte [ebp - 0x3c], 2
je 0x423e25
mov esi, dword [ebp - 0x34]
movzx ecx, byte [esi + 0x16a]
mov byte [esi + 0x169], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xfffffffd
mov dword [ebp - 0x3c], ecx
mov byte [esi + 0x17b], cl
test byte [ebp - 0x3c], 4
je 0x423e4a
mov esi, dword [ebp - 0x34]
movzx ecx, byte [esi + 0x162]
mov byte [esi + 0x161], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xfffffffb
mov dword [ebp - 0x3c], ecx
mov byte [esi + 0x17b], cl
test byte [ebp - 0x3c], 8
je 0x423e7e
mov esi, dword [ebp - 0x34]
movzx edi, byte [esi + 0x176]
mov ecx, edi
shr edi, 2
and ecx, 0xfffffffd
and edi, 1
add edi, edi
or ecx, edi
mov byte [esi + 0x176], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xfffffff7
mov dword [ebp - 0x3c], ecx
mov byte [esi + 0x17b], cl
test byte [ebp - 0x3c], 0x10
je 0x423ea3
mov esi, dword [ebp - 0x34]
movzx ecx, byte [esi + 0x168]
mov byte [esi + 0x167], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xffffffef
mov dword [ebp - 0x3c], ecx
mov byte [esi + 0x17b], cl
test byte [ebp - 0x3c], 0x20
je 0x423ec5
mov esi, dword [ebp - 0x34]
movzx ecx, byte [esi + 0x16c]
mov byte [esi + 0x16b], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xffffffdf
mov byte [esi + 0x17b], cl
mov dword [eax + 0x50186c], 0
mov dword [eax + 0x501868], 0xffffffff
cmp dword [0x4fd500], 2
jge 0x423ef1
mov dword [eax + 0x501864], 0
jmp 0x424109
mov dword [ebp - 0x3c], edx
mov dword [eax + 0x501864], 0
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
push dword [edx + 0x501860]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x424109
mov dword [ebp - 0x3c], edx
lea edi, [ebp - 0x34]
mov dword [esp + 0xc], edi
mov eax, esi
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x28]
call fcn.004247f0
test eax, eax
jne 0x424119
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x423f4f
cmp esi, dword [eax + 0x100]
je 0x423fb2
mov eax, dword [0x4fd500]
cmp eax, 1
je 0x42414d
cmp eax, 2
jge 0x423f7d
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x501864], 0
jmp 0x423fa2
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x501864], 0
push dword [edx + 0x501860]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push esi
call fcn.00429540
add esp, 8
jmp 0x424119
mov eax, dword [0x4fd500]
cmp eax, 1
je 0x42417a
cmp eax, 2
jge 0x423fe0
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x501864], 0
jmp 0x424005
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x501864], 0
push dword [edx + 0x501860]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x64]
mov dword [ebp - 0x2c], eax
movzx eax, byte [ecx + 0x17b]
test al, 1
mov dword [ecx + 0x64], 0
je 0x424046
movzx esi, byte [ecx + 0x173]
mov edx, esi
shr esi, 6
and edx, 0xffffffdf
and esi, 1
and eax, 0xfffffffe
shl esi, 5
or edx, esi
mov byte [ecx + 0x173], dl
mov byte [ecx + 0x17b], al
test al, 2
je 0x424060
movzx edx, byte [ecx + 0x16a]
and eax, 0xfffffffd
mov byte [ecx + 0x169], dl
mov byte [ecx + 0x17b], al
test al, 4
je 0x42407a
movzx edx, byte [ecx + 0x162]
and eax, 0xfffffffb
mov byte [ecx + 0x161], dl
mov byte [ecx + 0x17b], al
test al, 8
je 0x4240a3
movzx esi, byte [ecx + 0x176]
mov edx, esi
shr esi, 2
and edx, 0xfffffffd
and esi, 1
and eax, 0xfffffff7
add esi, esi
or edx, esi
mov byte [ecx + 0x176], dl
mov byte [ecx + 0x17b], al
test al, 0x10
je 0x4240bd
movzx edx, byte [ecx + 0x168]
and eax, 0xffffffef
mov byte [ecx + 0x167], dl
mov byte [ecx + 0x17b], al
test al, 0x20
je 0x4240d7
movzx edx, byte [ecx + 0x16c]
and eax, 0xffffffdf
mov byte [ecx + 0x16b], dl
mov byte [ecx + 0x17b], al
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0xffffffff
cmp dword [0x4fd500], 2
jge 0x4240f7
mov dword [ecx + 4], 0
jmp 0x424109
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x2c], 0
je 0x424119
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
mov eax, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], edx
jmp 0x423da6
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x501874]
push dword [edx + 0x501870]
call fcn.00417920
add esp, 8
mov eax, dword [0x4fd500]
jmp 0x423f5d
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x501874]
push dword [edx + 0x501870]
call fcn.00417920
add esp, 8
mov eax, dword [0x4fd500]
jmp 0x423fc0
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x501874]
push dword [edx + 0x501870]
call fcn.00417920
add esp, 8
mov eax, dword [0x4fd500]
jmp 0x423c94
cmp dword [eax + 0xc], 0
je 0x4241f7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x3c], edx
cmp eax, dword [edx + 8]
jne 0x4241f7
mov dword [ebp - 0x3c], 0x28
jmp 0x424297
cmp dword [0x4fd500], 2
jge 0x42421c
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 4]
test edx, edx
je 0x424211
mov eax, 0x98
jmp 0x424265
mov dword [eax + 4], 1
xor eax, eax
jmp 0x424265
mov eax, dword [ebp - 0x3c]
add eax, 4
push eax
call fcn.00417940
add esp, 4
test eax, eax
je 0x424236
mov eax, 0x98
jmp 0x424265
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x42432c
mov dword [eax + 4], 0
mov eax, dword [ebp - 0xc]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
call fcn.00417940
add esp, 4
test eax, eax
je 0x424272
mov dword [ebp - 0x3c], 0x98
jmp 0x42428d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0xc]
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 1
cmp dword [ebp - 0x3c], 0
je 0x423c86
mov eax, dword [0x4fd500]
cmp eax, 1
je 0x4242ff
cmp eax, 2
jge 0x4242c1
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x501864], 0
jmp 0x4242e6
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x501864], 0
push dword [edx + 0x501860]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x501874]
push dword [edx + 0x501870]
call fcn.00417920
add esp, 8
mov eax, dword [0x4fd500]
jmp 0x4242a1
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
jmp 0x424249
mov dword [ebp - 8], 0
cmp esi, 0xfffffffb
jge 0x424362
test edx, edx
jne 0x424362
mov eax, 0x20
jmp 0x4243ca
lea eax, [ebp - 0x38]
push eax
push 1
push 0x188
call fcn.004265d0
add esp, 0xc
test eax, eax
jne 0x4243c6
push 0x188
push 0
push dword [ebp - 0x38]
call fcn.004c49d0
add esp, 0xc
mov eax, dword [ebp - 0x38]
cmp esi, 0xfffffffa
mov dword [eax + 0x100], esi
lea eax, [esi + 5]
jg 0x42439e
mov eax, esi
cmp eax, 0x69
jge 0x4243a7
test eax, eax
jge 0x4243c4
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [edx], eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x38]
mov dword [edx + 8], 0xffffffff
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0xc], eax
xor eax, eax
test eax, eax
je 0x42443a
mov edx, dword [0x4fd500]
cmp edx, 1
je 0x42446a
cmp edx, 2
jge 0x4243f9
mov ecx, dword [ebp - 4]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x501864], 0
jmp 0x424424
mov ecx, dword [ebp - 4]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x501864], 0
push dword [ecx + 0x501860]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x42449e
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov eax, edx
mov dword [ebp - 0xc], eax
mov dword [0x509e80], 1
jmp 0x423c7c
mov ecx, dword [ebp - 4]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
push dword [ecx + 0x501874]
push dword [ecx + 0x501870]
mov dword [ebp - 0x3c], eax
call fcn.00417920
mov eax, dword [ebp - 0x3c]
add esp, 8
mov edx, dword [0x4fd500]
jmp 0x4243d9
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x501878], edx
jmp 0x424456
mov edi, dword [ebp - 0x38]
test eax, eax
jne 0x423aa5
cmp dword [ebp - 0xc], 0
je 0x4244de
mov dword [0x509e80], 1
mov ecx, dword [ebp - 0xc]
jmp 0x423cdf
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0x188
call fcn.004265d0
add esp, 0xc
test eax, eax
je 0x424570
mov ecx, dword [ebp - 4]
mov edx, ecx
shl edx, 5
lea eax, [ecx*4]
sub edx, eax
cmp dword [0x4fd500], 2
mov dword [edx + 0x50186c], 0
mov dword [edx + 0x501868], 0xffffffff
jge 0x424538
mov dword [edx + 0x501864], 0
xor eax, eax
jmp 0x42455a
mov dword [edx + 0x501864], 0
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
push dword [ecx + 0x501860]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
push 0x188
push 0
push dword [ebp - 0xc]
call fcn.004c49d0
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp esi, 0xfffffffa
mov dword [eax + 0x100], esi
lea eax, [esi + 5]
jg 0x424595
mov eax, esi
cmp eax, 0x69
jge 0x42459e
test eax, eax
jge 0x4245bb
mov edx, dword [ebp - 0xc]
xor eax, eax
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [0x509e80], 1
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x501878], ecx
jmp 0x423cdf
mov edi, dword [ebp - 0x38]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], edx
jmp 0x4244cc
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 4]
mov edi, edx
shl edi, 5
lea ecx, [edx*4]
sub edi, ecx
mov dword [edi + 0x501860], eax
mov dword [edi + 0x501864], 0
jmp 0x423b2b
mov dword [ebp - 0x30], 2
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x3c], edx
call fcn.00417220
mov edx, dword [ebp - 0x3c]
add esp, 4
jmp 0x423a37
mov dword [ebp - 0x3c], eax
mov edi, dword [ebp - 0x38]
mov dword [ebp - 8], 1
jmp 0x423c7c
lea eax, [ebp - 0xc]
push eax
push 1
push 0x188
call fcn.004265d0
mov dword [ebp - 0x38], eax
add esp, 0xc
cmp dword [ebp - 0x38], 0
jne 0x4246b7
push 0x188
push 0
push dword [ebp - 0xc]
call fcn.004c49d0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x3c]
push edx
push 0
push 0xa4
mov dword [eax + 0x100], esi
call fcn.004265d0
mov dword [ebp - 0x38], eax
add esp, 0x18
cmp dword [ebp - 0x38], 0
je 0x4246d6
push dword [ebp - 0xc]
call fcn.00426690
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x38], 0
je 0x424702
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
push 0xa4
mov dword [edx + 0x58], eax
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x3c]
push 0
mov dword [esi + 0x5c], ecx
push dword [ebp - 0x3c]
call fcn.004c49d0
add esp, 0xc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [0x4fd500]
cmp eax, 2
jge 0x42471f
cmp eax, 1
je 0x4247b1
mov eax, 0x4fd460
mov dword [ebp - 0x38], eax
jmp 0x424734
lea eax, [ebp - 0x38]
push eax
call fcn.00417700
add esp, 4
mov esi, eax
test esi, esi
jne 0x42478e
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [edx + 0x28], eax
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword [esi], ecx
cmp dword [0x4fd500], 1
je 0x4247c3
mov eax, dword [ebp - 0xc]
test edi, edi
mov byte [eax + 0x164], bl
mov eax, dword [ebp - 0xc]
je 0x424760
mov dword [edi + 4], eax
mov dword [eax + 0x64], edi
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
and byte [edx + 0x17a], 0xf7
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
and byte [ecx + 0x17a], 0xef
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
xor eax, eax
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call fcn.00426690
add esp, 4
mov edx, dword [ebp - 0x14]
mov eax, esi
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
push 0x4fd4c4
call fcn.004178f0
add esp, 4
jmp 0x424715
mov eax, dword [ebp - 0x38]
push dword [eax + 0x68]
push dword [eax + 0x64]
call fcn.00417920
add esp, 8
jmp 0x42474d
mov dword [ebp - 0x3c], edx
call fcn.00417b80
mov edx, dword [ebp - 0x3c]
jmp 0x423a25