Function at 0x403820
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bb69
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x439080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 7
movups xmmword [ebp - 0x70], xmm0
mov word [ebp - 0x70], ax
mov dword [ebp - 4], eax
cmp byte [0x43ae6c], al
je 0x40387a
mov eax, dword [0x43ae74]
jmp 0x403880
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov dword [ebp - 0xb4], eax
lea ecx, [ebp - 0x88]
call fcn.00408430
mov byte [ebp - 4], 1
mov ecx, 0x43ae98
cmp dword [0x43aeac], 7
mov edi, dword [ebp - 0x78]
cmova ecx, dword [0x43ae98]
mov eax, dword [ebp - 0x74]
mov esi, dword [0x43aea8]
sub eax, edi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xbc], edi
cmp esi, eax
ja 0x40397c
cmp dword [ebp - 0x74], 7
lea eax, [esi + edi]
mov dword [ebp - 0x78], eax
lea edx, [ebp - 0x88]
cmova edx, dword [ebp - 0x88]
lea eax, [esi + esi]
mov dword [ebp - 0xb8], eax
add eax, ecx
mov dword [ebp - 0xa4], edx
cmp eax, edx
jbe 0x403915
lea eax, [edx + edi*2]
cmp ecx, eax
ja 0x403915
cmp edx, ecx
ja 0x40390d
xor edi, edi
jmp 0x403917
mov edi, edx
sub edi, ecx
sar edi, 1
jmp 0x403917
mov edi, esi
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xb8]
add ecx, edx
lea eax, [eax*2 + 2]
push eax
push edx
push ecx
call fcn.0040c890
lea esi, [edi + edi]
push esi
push dword [ebp - 0xb0]
push dword [ebp - 0xa4]
call fcn.0040c890
mov edx, dword [ebp - 0xa8]
mov eax, edx
mov ecx, dword [ebp - 0xa4]
sub eax, edi
add eax, eax
add ecx, esi
push eax
lea eax, [edi + edx]
mov edx, dword [ebp - 0xb0]
lea eax, [edx + eax*2]
push eax
push ecx
call fcn.0040c890
add esp, 0x24
lea eax, [ebp - 0x88]
jmp 0x403998
push esi
push ecx
push ecx
mov byte [ebp - 0xa8], 0
lea ecx, [ebp - 0x88]
push dword [ebp - 0xa8]
push esi
call fcn.0040a2e0
movups xmm0, xmmword [eax]
xor ecx, ecx
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x5c]
movq qword [ebp - 0xac], xmm1
movups xmmword [ebp - 0x24], xmm0
cmp ecx, 7
jbe 0x403a05
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4039ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041d9
push ecx
push edx
call fcn.0040b624
movups xmm0, xmmword [ebp - 0x24]
add esp, 8
movq xmm1, qword [ebp - 0xac]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x74]
movq qword [ebp - 0x60], xmm1
movups xmmword [ebp - 0x70], xmm0
cmp ecx, 7
jbe 0x403a4f
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403a45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041d9
push ecx
push edx
call fcn.0040b624
add esp, 8
cmp dword [ebp - 0x5c], 7
lea eax, [ebp - 0x70]
push 0x1f0000
cmova eax, dword [ebp - 0x70]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexExW]
mov dword [0x43ae64], eax
test eax, eax
jne 0x403ba3
call fcn.004047f0
lea ecx, [ebp - 0x58]
call fcn.00404ad0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x403a93
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x43aec0
call fcn.00409f10
add esp, 4
mov edx, str.could_not_create_open_stopping_mutex._Error:
mov ecx, eax
call fcn.00408600
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x13]
mov dword [ebp - 0xa4], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0xa4]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x403ac2
push ecx
lea eax, [ebp - 0x13]
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00409e00
mov byte [ebp - 4], 3
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0xf
mov ecx, edi
cmova edx, dword [ebp - 0x40]
call fcn.00408600
push eax
call fcn.004088a0
mov byte [ebp - 4], 2
add esp, 4
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x403b56
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403b4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041de
push ecx
push edx
call fcn.0040b624
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0xf
jbe 0x403e17
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403e0d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041de
jmp 0x403e0d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x404184
call fcn.004047f0
lea ecx, [ebp - 0x58]
call fcn.00404ad0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x403bd2
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x43aec0
call fcn.00409f10
mov edx, str.Stopping_mutex_already_exists.
mov ecx, eax
call fcn.00408600
push eax
call fcn.004088a0
mov byte [ebp - 4], 0
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x403c2c
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403c22
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041e3
push ecx
push edx
call fcn.0040b624
add esp, 8
call fcn.004049e0
cmp byte [0x43ae6c], 0
jne 0x403cc3
call fcn.004047f0
lea ecx, [ebp - 0x58]
call fcn.00404ad0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x403c5a
mov eax, dword [eax]
push edx
mov edx, eax
mov ecx, 0x43aec0
call fcn.00409f10
mov edx, str.This_instance_is_stopped_by_another_load_generator_instance.
mov ecx, eax
call fcn.00408600
push eax
call fcn.004088a0
mov byte [ebp - 4], 0
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x403cb4
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403caa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041e8
push ecx
push edx
call fcn.0040b624
add esp, 8
call fcn.004049e0
mov esi, 0xfffffffc
jmp 0x404186
cmp dword [ebp - 0x5c], 7
lea eax, [ebp - 0x70]
cmova eax, dword [ebp - 0x70]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x43ae64], eax
test eax, eax
jne 0x403e26
call fcn.004047f0
lea ecx, [ebp - 0xa0]
call fcn.00404ad0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x403d08
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x43aec0
call fcn.00409f10
add esp, 4
mov edx, str.Could_not_open_stopper_mutex._Error:
mov ecx, eax
call fcn.00408600
mov edi, eax
call esi
mov ecx, eax
lea esi, [ebp - 0x13]
mov dword [ebp - 0xa4], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0xa4]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x403d33
push ecx
lea eax, [ebp - 0x13]
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00409e00
mov byte [ebp - 4], 7
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0xf
mov ecx, edi
cmova edx, dword [ebp - 0x58]
call fcn.00408600
push eax
call fcn.004088a0
mov byte [ebp - 4], 6
add esp, 4
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x403dc7
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403dbd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041ed
push ecx
push edx
call fcn.0040b624
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x403e17
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403e0d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041ed
push ecx
push edx
call fcn.0040b624
add esp, 8
call fcn.004049e0
mov esi, 0xfffffffe
jmp 0x404186
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 8
cmp eax, 0x102
ja 0x403fbe
je 0x403fa1
test eax, eax
je 0x403e96
cmp eax, 0x80
jne 0x403fc3
mov eax, dword [0x435458]
movq xmm0, qword [str.WAIT_ABANDONED]
mov dword [ebp - 0x38], eax
mov ax, word [0x43545c]
mov dword [ebp - 0x30], 0xe
mov word [ebp - 0x34], ax
mov byte [ebp - 0x32], 0
jmp 0x403ff9
call fcn.004047f0
lea ecx, [ebp - 0xa0]
call fcn.00404ad0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x403eb5
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x43aec0
call fcn.00409f10
add esp, 4
mov edx, str.This_instance_stops_another_load_generator_instance_with_process_ID
mov ecx, eax
call fcn.00408600
mov edx, dword [ebp - 0xb4]
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.004020d0
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x403ef0
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.00409f10
mov edx, 0x435400
mov ecx, eax
call fcn.00408600
push eax
call fcn.004088a0
mov byte [ebp - 4], 9
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x403f47
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403f3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041f2
push ecx
push edx
call fcn.0040b624
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x403f97
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403f8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041f2
push ecx
push edx
call fcn.0040b624
add esp, 8
mov esi, 0xfffffffd
jmp 0x404149
mov eax, dword [0x435468]
movq xmm0, qword [str.WAIT_TIMEOUT]
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
jmp 0x403ff9
cmp eax, 0xffffffff
je 0x403fd4
push 0x12
push str.WAIT_UNKNOWN_ERROR
lea ecx, [ebp - 0x40]
call fcn.00408010
jmp 0x403ffe
mov ax, word [0x435478]
movq xmm0, qword [str.WAIT_FAILED]
mov word [ebp - 0x38], ax
mov al, byte [0x43547a]
mov dword [ebp - 0x30], 0xb
mov byte [ebp - 0x36], al
mov byte [ebp - 0x35], 0
movq qword [ebp - 0x40], xmm0
call fcn.004047f0
lea ecx, [ebp - 0xa0]
call fcn.00404ad0
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x40401d
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x43aec0
call fcn.00409f10
add esp, 4
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0xf
mov ecx, eax
cmova edx, dword [ebp - 0x40]
call fcn.00408600
mov edx, str.:_could_not_obtain_stopping_mutex_ownership._Error:
mov ecx, eax
call fcn.00408600
mov edi, eax
call esi
mov ecx, eax
lea esi, [ebp - 0x13]
mov dword [ebp - 0xa4], ecx
nop word [eax + eax]
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0xa4]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x404060
push ecx
lea eax, [ebp - 0x13]
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00409e00
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0xf
mov ecx, edi
cmova edx, dword [ebp - 0x58]
call fcn.00408600
push eax
call fcn.004088a0
mov byte [ebp - 4], 0xb
add esp, 4
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x4040f4
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4040ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041f7
push ecx
push edx
call fcn.0040b624
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x404144
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40413a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041f7
push ecx
push edx
call fcn.0040b624
add esp, 8
mov esi, 0xfffffffe
call fcn.004049e0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x404186
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404178
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4041fc
push ecx
push edx
call fcn.0040b624
add esp, 8
jmp 0x404186
xor esi, esi
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x4041bc
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4041b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404201
push ecx
push edx
call fcn.0040b624
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b390
mov esp, ebp
pop ebp
ret
call fcn.00414c66
call fcn.00414c66
call fcn.00414c66
call fcn.00414c66
call fcn.00414c66
call fcn.00414c66
call fcn.00414c66
call fcn.00414c66
call fcn.00414c66
int3