Function at 0x40bd9c
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 0x40bdd4
mov edx, 1
mov ebx, 6
jmp 0x40bde8
cmp ecx, 0xa
mov ebx, ecx
jne 0x40bde0
mov ebx, 9
xor edx, edx
cmp ecx, 0xa
sete dl
cmp dword [0x4e68e0], 0
je 0x40cbd6
cmp dword [0x4e30a0], 2
jge 0x40be07
cmp ebx, 6
je 0x40ca02
cmp esi, 0xfffffffb
je 0x40ca32
cmp esi, 0xfffffffa
jg 0x40be1a
mov dword [ebp - 4], esi
jmp 0x40be20
lea eax, [esi + 5]
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edi
mov ecx, dword [ebp - 4]
test ecx, ecx
jl 0x40bfcd
cmp ecx, 0x68
jg 0x40bfcd
mov edx, ecx
lea eax, [ecx*4]
shl edx, 5
sub edx, eax
cmp dword [edx + 0x4e690c], 0
je 0x40be82
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 + 0x4e6908]
jne 0x40be82
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 [0x4e30a0], 2
jge 0x40beb9
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov edx, dword [ecx + 0x4e6904]
test edx, edx
je 0x40beab
mov eax, 0x98
jmp 0x40bf33
mov dword [ecx + 0x4e6904], 1
xor eax, eax
jmp 0x40bf33
lea eax, [edx + 0x4e6904]
push eax
call fcn.00401c70
add esp, 4
test eax, eax
je 0x40bed3
mov eax, 0x98
jmp 0x40bf33
mov edx, dword [ebp - 4]
mov ecx, edx
shl ecx, 5
lea eax, [edx*4]
sub ecx, eax
cmp dword [ecx + 0x4e6900], 0
je 0x40c9d1
mov dword [ecx + 0x4e6904], 0
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4e6900]
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 + 0x4e6904]
push ecx
call fcn.00401c70
add esp, 4
test eax, eax
je 0x40bf3e
mov eax, 0x98
jmp 0x40bf65
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 + 0x4e6908], eax
xor eax, eax
mov dword [ecx + 0x4e690c], 1
test eax, eax
jne 0x40be75
mov eax, dword [ebp - 4]
lea edx, [eax*4]
shl eax, 5
sub eax, edx
mov edx, dword [eax + 0x4e6918]
test edx, edx
je 0x40bfa6
movzx ecx, byte [edx + 0x169]
test cl, 0x20
jne 0x40bf9c
test cl, 0x18
je 0x40bf9c
cmp ebx, 6
je 0x40bfa6
cmp dword [edx + 0x18], 0
je 0x40c9bf
lea edi, [ebp - 0xc]
lea edx, [ebp - 8]
lea eax, [eax + 0x4e6900]
push eax
push edx
push ebx
push edi
push esi
call fcn.00415df0
add esp, 0x14
cmp eax, 0xfffffffd
je 0x40be26
jmp 0x40c892
lea edi, [ebp - 0x24]
mov dword [esp + 0xc], edi
mov eax, esi
lea edx, [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.0040cc00
test eax, eax
jne 0x40cbe6
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40bffc
cmp esi, dword [eax + 0x100]
je 0x40ca20
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 + 0x4e6900]
push ecx
push eax
push ebx
push edx
push esi
call fcn.00415df0
add esp, 0x14
cmp eax, 0xfffffffd
je 0x40be26
mov edx, dword [ebp - 0x38]
test eax, eax
mov edi, dword [ebp - 0x3c]
jne 0x40be75
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x40c71b
mov dword [ebp - 0xc], eax
cmp dword [eax + 0x18], 0
je 0x40c5a4
mov eax, dword [0x4e30a0]
cmp eax, 1
je 0x40c577
cmp eax, 2
jge 0x40c087
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6904], 0
jmp 0x40c0af
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6904], 0
push dword [edx + 0x4e6900]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
cmp ebx, 6
jne 0x40c0bc
mov ebx, 9
mov dword [eax], ecx
test edi, edi
je 0x40c0c5
mov dword [edi + 4], ecx
mov dword [ecx + 0x64], edi
cmp ebx, 0xf
je 0x40c0ed
cmp ebx, 0x12
je 0x40c0ed
cmp ebx, 0xc
jne 0x40c0e3
mov eax, dword [ebp - 0xc]
or byte [eax + 0x172], 2
jmp 0x40c0ed
mov eax, dword [ebp - 0xc]
and byte [eax + 0x172], 0xfd
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x15c], bl
mov edx, dword [ebp - 0xc]
and byte [edx + 0x172], 0xf7
mov ecx, dword [ebp - 0xc]
and byte [ecx + 0x172], 0xef
cmp dword [ebp - 8], 0
je 0x40c501
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0040d770
mov ebx, eax
test ebx, ebx
je 0x40c501
cmp esi, 0xfffffffa
jle 0x40c134
lea eax, [esi + 5]
mov edx, eax
jmp 0x40c138
mov eax, esi
mov edx, esi
test eax, eax
jl 0x40c2f1
cmp eax, 0x68
jg 0x40c2f1
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
mov edi, dword [eax + 0x4e6918]
test edi, edi
mov dword [ebp - 0x34], edi
je 0x40c510
mov ecx, edi
cmp dword [ecx + 0x18], 0
je 0x40c186
mov eax, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x3c], edx
push 0
push esi
call fcn.00416470
add esp, 8
jmp 0x40c4e9
mov esi, dword [edi + 0x64]
movzx ecx, byte [edi + 0x173]
test cl, 1
mov dword [ebp - 0x2c], esi
mov dword [edi + 0x64], 0
mov dword [ebp - 0x3c], ecx
je 0x40c1d0
mov esi, edi
movzx edi, byte [esi + 0x16b]
mov ecx, edi
shr edi, 6
and ecx, 0xffffffdf
and edi, 1
shl edi, 5
or ecx, edi
mov byte [esi + 0x16b], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xfffffffe
mov dword [ebp - 0x3c], ecx
mov byte [esi + 0x173], cl
test byte [ebp - 0x3c], 2
je 0x40c1f5
mov esi, dword [ebp - 0x34]
movzx ecx, byte [esi + 0x162]
mov byte [esi + 0x161], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xfffffffd
mov dword [ebp - 0x3c], ecx
mov byte [esi + 0x173], cl
test byte [ebp - 0x3c], 4
je 0x40c21a
mov esi, dword [ebp - 0x34]
movzx ecx, byte [esi + 0x15a]
mov byte [esi + 0x159], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xfffffffb
mov dword [ebp - 0x3c], ecx
mov byte [esi + 0x173], cl
test byte [ebp - 0x3c], 8
je 0x40c24e
mov esi, dword [ebp - 0x34]
movzx edi, byte [esi + 0x16e]
mov ecx, edi
shr edi, 2
and ecx, 0xfffffffd
and edi, 1
add edi, edi
or ecx, edi
mov byte [esi + 0x16e], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xfffffff7
mov dword [ebp - 0x3c], ecx
mov byte [esi + 0x173], cl
test byte [ebp - 0x3c], 0x10
je 0x40c273
mov esi, dword [ebp - 0x34]
movzx ecx, byte [esi + 0x160]
mov byte [esi + 0x15f], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xffffffef
mov dword [ebp - 0x3c], ecx
mov byte [esi + 0x173], cl
test byte [ebp - 0x3c], 0x20
je 0x40c295
mov esi, dword [ebp - 0x34]
movzx ecx, byte [esi + 0x164]
mov byte [esi + 0x163], cl
mov ecx, dword [ebp - 0x3c]
and ecx, 0xffffffdf
mov byte [esi + 0x173], cl
mov dword [eax + 0x4e690c], 0
mov dword [eax + 0x4e6908], 0xffffffff
cmp dword [0x4e30a0], 2
jge 0x40c2c1
mov dword [eax + 0x4e6904], 0
jmp 0x40c4d9
mov dword [ebp - 0x3c], edx
mov dword [eax + 0x4e6904], 0
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
push dword [edx + 0x4e6900]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40c4d9
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.0040cc00
test eax, eax
jne 0x40c4e9
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40c31f
cmp esi, dword [eax + 0x100]
je 0x40c382
mov eax, dword [0x4e30a0]
cmp eax, 1
je 0x40c51d
cmp eax, 2
jge 0x40c34d
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6904], 0
jmp 0x40c372
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6904], 0
push dword [edx + 0x4e6900]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
push esi
call fcn.00416470
add esp, 8
jmp 0x40c4e9
mov eax, dword [0x4e30a0]
cmp eax, 1
je 0x40c54a
cmp eax, 2
jge 0x40c3b0
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6904], 0
jmp 0x40c3d5
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6904], 0
push dword [edx + 0x4e6900]
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 + 0x173]
test al, 1
mov dword [ecx + 0x64], 0
je 0x40c416
movzx esi, byte [ecx + 0x16b]
mov edx, esi
shr esi, 6
and edx, 0xffffffdf
and esi, 1
and eax, 0xfffffffe
shl esi, 5
or edx, esi
mov byte [ecx + 0x16b], dl
mov byte [ecx + 0x173], al
test al, 2
je 0x40c430
movzx edx, byte [ecx + 0x162]
and eax, 0xfffffffd
mov byte [ecx + 0x161], dl
mov byte [ecx + 0x173], al
test al, 4
je 0x40c44a
movzx edx, byte [ecx + 0x15a]
and eax, 0xfffffffb
mov byte [ecx + 0x159], dl
mov byte [ecx + 0x173], al
test al, 8
je 0x40c473
movzx esi, byte [ecx + 0x16e]
mov edx, esi
shr esi, 2
and edx, 0xfffffffd
and esi, 1
and eax, 0xfffffff7
add esi, esi
or edx, esi
mov byte [ecx + 0x16e], dl
mov byte [ecx + 0x173], al
test al, 0x10
je 0x40c48d
movzx edx, byte [ecx + 0x160]
and eax, 0xffffffef
mov byte [ecx + 0x15f], dl
mov byte [ecx + 0x173], al
test al, 0x20
je 0x40c4a7
movzx edx, byte [ecx + 0x164]
and eax, 0xffffffdf
mov byte [ecx + 0x163], dl
mov byte [ecx + 0x173], al
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0xffffffff
cmp dword [0x4e30a0], 2
jge 0x40c4c7
mov dword [ecx + 4], 0
jmp 0x40c4d9
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 0x40c4e9
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 0x40c176
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4e6914]
push dword [edx + 0x4e6910]
call fcn.00401c50
add esp, 8
mov eax, dword [0x4e30a0]
jmp 0x40c32d
mov edx, dword [ebp - 0x3c]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4e6914]
push dword [edx + 0x4e6910]
call fcn.00401c50
add esp, 8
mov eax, dword [0x4e30a0]
jmp 0x40c390
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4e6914]
push dword [edx + 0x4e6910]
call fcn.00401c50
add esp, 8
mov eax, dword [0x4e30a0]
jmp 0x40c064
cmp dword [eax + 0xc], 0
je 0x40c5c7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], edx
cmp eax, dword [edx + 8]
jne 0x40c5c7
mov dword [ebp - 0x3c], 0x28
jmp 0x40c667
cmp dword [0x4e30a0], 2
jge 0x40c5ec
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
test edx, edx
je 0x40c5e1
mov eax, 0x98
jmp 0x40c635
mov dword [eax + 4], 1
xor eax, eax
jmp 0x40c635
mov eax, dword [ebp - 0x2c]
add eax, 4
push eax
call fcn.00401c70
add esp, 4
test eax, eax
je 0x40c606
mov eax, 0x98
jmp 0x40c635
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x40c6fc
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.00401c70
add esp, 4
test eax, eax
je 0x40c642
mov dword [ebp - 0x3c], 0x98
jmp 0x40c65d
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 0x40c056
mov eax, dword [0x4e30a0]
cmp eax, 1
je 0x40c6cf
cmp eax, 2
jge 0x40c691
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6904], 0
jmp 0x40c6b6
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6904], 0
push dword [edx + 0x4e6900]
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 + 0x4e6914]
push dword [edx + 0x4e6910]
call fcn.00401c50
add esp, 8
mov eax, dword [0x4e30a0]
jmp 0x40c671
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 0x40c619
mov dword [ebp - 8], 0
cmp esi, 0xfffffffb
jge 0x40c734
test edx, edx
jne 0x40c734
mov dword [ebp - 0x34], 0x20
jmp 0x40c7ac
lea eax, [ebp - 0x38]
push eax
push 1
push 0x180
call fcn.0040e4f0
mov dword [ebp - 0x34], eax
add esp, 0xc
cmp dword [ebp - 0x34], 0
jne 0x40c7a6
push 0x180
push 0
mov eax, dword [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], eax
call fcn.004a9020
add esp, 0xc
mov eax, dword [ebp - 0x3c]
cmp esi, 0xfffffffa
mov dword [eax + 0x100], esi
lea eax, [esi + 5]
jg 0x40c779
mov eax, esi
cmp eax, 0x69
jge 0x40c782
test eax, eax
jge 0x40c79f
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
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0
je 0x40c818
mov eax, dword [0x4e30a0]
cmp eax, 1
je 0x40c848
cmp eax, 2
jge 0x40c7da
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6904], 0
jmp 0x40c7ff
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6904], 0
push dword [edx + 0x4e6900]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
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 0x40c875
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
mov eax, edx
mov dword [ebp - 0xc], eax
mov dword [0x4ef160], 1
jmp 0x40c04c
mov edx, dword [ebp - 4]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x4e6914]
push dword [edx + 0x4e6910]
call fcn.00401c50
add esp, 8
mov eax, dword [0x4e30a0]
jmp 0x40c7ba
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
mov dword [ecx + 0x4e6918], edx
jmp 0x40c834
mov edi, dword [ebp - 0x3c]
test eax, eax
jne 0x40be75
cmp dword [ebp - 0xc], 0
je 0x40c8b5
mov dword [0x4ef160], 1
mov ecx, dword [ebp - 0xc]
jmp 0x40c0af
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push 1
push 0x180
call fcn.0040e4f0
mov dword [ebp - 0x3c], eax
add esp, 0xc
cmp dword [ebp - 0x3c], 0
je 0x40c94d
mov ecx, dword [ebp - 4]
mov edx, ecx
shl edx, 5
lea eax, [ecx*4]
sub edx, eax
cmp dword [0x4e30a0], 2
mov dword [edx + 0x4e690c], 0
mov dword [edx + 0x4e6908], 0xffffffff
jge 0x40c912
mov dword [edx + 0x4e6904], 0
jmp 0x40c934
mov dword [edx + 0x4e6904], 0
lea eax, [ecx*4]
shl ecx, 5
sub ecx, eax
push dword [ecx + 0x4e6900]
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
push 0x180
push 0
push dword [ebp - 0xc]
call fcn.004a9020
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp esi, 0xfffffffa
mov dword [eax + 0x100], esi
lea eax, [esi + 5]
jg 0x40c972
mov eax, esi
cmp eax, 0x69
jge 0x40c97b
test eax, eax
jge 0x40c998
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 [0x4ef160], 1
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov dword [edx + 0x4e6918], ecx
jmp 0x40c0af
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], edx
jmp 0x40c8a3
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 + 0x4e6900], eax
mov dword [edi + 0x4e6904], 0
jmp 0x40befb
mov dword [ebp - 0x30], 2
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x38], edx
call fcn.004013d0
mov edx, dword [ebp - 0x38]
add esp, 4
jmp 0x40be07
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 8], 1
jmp 0x40c04c
lea eax, [ebp - 0xc]
push eax
push 1
push 0x180
call fcn.0040e4f0
mov dword [ebp - 0x38], eax
add esp, 0xc
cmp dword [ebp - 0x38], 0
jne 0x40ca91
push 0x180
push 0
push dword [ebp - 0xc]
call fcn.004a9020
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x3c]
push edx
push 0
push 0x54
mov dword [eax + 0x100], esi
call fcn.0040e4f0
mov dword [ebp - 0x38], eax
add esp, 0x18
cmp dword [ebp - 0x38], 0
je 0x40cab0
push dword [ebp - 0xc]
call fcn.0040e5b0
add esp, 4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x38], 0
je 0x40caf5
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]
mov dword [edx + 0x58], eax
mov edx, 0x54
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x5c], ecx
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ecx + edx - 4], eax
mov dword [ecx + edx - 8], eax
mov dword [ecx + edx - 0xc], eax
mov dword [ecx + edx - 0x10], eax
mov dword [ecx + edx - 0x14], eax
mov dword [ecx + edx - 0x18], eax
mov dword [ecx + edx - 0x1c], eax
sub edx, 0x1c
jne 0x40caca
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [0x4e30a0]
cmp eax, 2
jge 0x40cb16
cmp eax, 1
je 0x40cba6
mov dword [ebp - 0x38], section..data
mov edx, section..data
jmp 0x40cb30
lea eax, [ebp - 0x38]
push eax
call fcn.004019e0
add esp, 4
mov esi, eax
test esi, esi
jne 0x40cb83
mov eax, dword [0x4e30a0]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
cmp eax, 1
mov edx, dword [edx]
mov dword [ecx + 0x28], edx
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0xc]
mov dword [esi], edx
je 0x40cbbd
mov byte [edx + 0x15c], bl
test edi, edi
mov eax, dword [ebp - 0xc]
je 0x40cb55
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 + 0x172], 0xf7
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
and byte [ecx + 0x172], 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.0040e5b0
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 0x4e3064
call fcn.00401c20
add esp, 4
mov eax, dword [0x4e30a0]
jmp 0x40cb08
mov eax, dword [ebp - 0x38]
push dword [eax + 0x68]
push dword [eax + 0x64]
call fcn.00401c50
add esp, 8
mov edx, dword [ebp - 0xc]
jmp 0x40cb45
mov dword [ebp - 0x38], edx
call fcn.00401eb0
mov edx, dword [ebp - 0x38]
jmp 0x40bdf5
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