Function at 0x100561c
Capabilities:
Check mutex on windows

Disassembly:
push 0x34
mov eax, 0x100db48
call fcn.01007951
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], ebx
push 3
pop edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 4
mov esi, 0x1001780
push esi
lea ecx, [ebp - 0x14]
call fcn.01003672
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.01003672
mov dword [ebp - 4], edi
push dword [ebp + 8]
call fcn.0100a5a6
test eax, eax
jne 0x100579a
mov byte [ebp - 4], 6
push esi
lea ecx, [ebp - 0x30]
call fcn.01002ec1
mov byte [ebp - 4], 7
push 0x10012f0
lea ecx, [ebp - 0x2c]
call fcn.01002ec1
mov byte [ebp - 4], 8
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.01002ec1
mov byte [ebp - 4], 9
push eax
push 0x1001300
lea eax, [ebp - 0x3c]
push eax
call fcn.01003746
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.01003703
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.01003703
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.0100363e
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
je 0x1005704
call fcn.010035ed
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x38]
cmp ecx, ebx
je 0x1005717
call fcn.010035ed
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
je 0x100572a
call fcn.010035ed
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x40]
cmp ecx, ebx
je 0x100573d
call fcn.010035ed
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x1005750
call fcn.010035ed
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x1005763
call fcn.010035ed
mov dword [ebp - 0x30], ebx
push ebx
push dword [ebp + 0xc]
call fcn.01008332
test eax, eax
je 0x100579a
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.01003672
push ebx
push dword [ebp + 0x10]
call fcn.01008332
lea ecx, [ebp - 0x18]
test eax, eax
jne 0x1005792
push 0x10012f4
jmp 0x1005795
push dword [ebp + 0x10]
call fcn.01003672
mov dword [ebp - 4], edi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
call fcn.010037f5
mov dword [ebp + 0x28], eax
cmp eax, 1
jne 0x1005849
push 0x6c
call fcn.0100a082
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01008d2a
mov byte [ebp - 4], 2
jmp 0x10057f9
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x1005808
call fcn.010035ed
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x100581b
call fcn.010035ed
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x100582d
call fcn.010035ed
mov dword [ebp - 0x18], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x1005cab
call fcn.010035ed
mov dword [ebp - 0x1c], ebx
jmp 0x1005cab
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x1005857
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
jmp 0x100585a
mov dword [ebp + 0x10], ebx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1005865
mov ecx, dword [eax]
jmp 0x1005867
xor ecx, ecx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1005872
mov eax, dword [eax]
jmp 0x1005874
xor eax, eax
mov esi, dword [ebp + 0x20]
mov edx, dword [esi]
lea edi, [ebp - 0x24]
push edi
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push ecx
push eax
push esi
call dword [edx + 0xc]
mov edi, eax
push ebx
push dword [ebp + 0xc]
call fcn.01008332
test eax, eax
je 0x10058d2
cmp edi, ebx
jge 0x10058d4
cmp edi, 0x80070005
jne 0x10058d2
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x10058b0
mov ecx, dword [eax]
jmp 0x10058b2
xor ecx, ecx
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x10058bd
mov eax, dword [eax]
jmp 0x10058bf
xor eax, eax
mov edx, dword [esi]
lea edi, [ebp - 0x24]
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
push esi
call dword [edx + 0xc]
mov edi, eax
cmp edi, ebx
jne 0x1005c55
push dword [ebp + 0x30]
push dword [ebp + 0x24]
push dword [ebp - 0x24]
call fcn.0100670b
cmp eax, ebx
jge 0x100591e
push eax
call fcn.01006a2b
push 0x20001
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.0100a09a
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x10057ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], ebx
jmp 0x10057ca
cmp dword [ebp + 0x2c], ebx
jne 0x100596f
push 0x1001758
lea ecx, [ebp + 0xc]
call fcn.01002ec1
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
cmp eax, ebx
je 0x100593e
mov ecx, dword [eax]
jmp 0x1005940
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
lea esi, [ebp - 0x28]
push esi
push ebx
push 0x30
push ecx
push eax
call dword [edx + 0x48]
mov esi, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x1005a82
call fcn.010035ed
mov dword [ebp + 0xc], ebx
jmp 0x1005a82
push 0x1001724
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
je 0x1005a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1005a0c
push 0x1aa
call fcn.0100a082
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01008d2a
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x10059ba
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x10059cd
call fcn.010035ed
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x10059e0
call fcn.010035ed
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x10059f2
call fcn.010035ed
mov dword [ebp - 0x18], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x1005a05
call fcn.010035ed
mov dword [ebp - 0x1c], ebx
xor eax, eax
jmp 0x1005cae
push 0x10016a8
lea ecx, [ebp + 0x10]
call fcn.01002ec1
mov esi, eax
mov byte [ebp - 4], 0xf
push 0x10016a0
lea ecx, [ebp + 0xc]
call fcn.01002ec1
mov byte [ebp - 4], 0x10
mov ecx, dword [esi]
cmp ecx, ebx
je 0x1005a3a
mov ecx, dword [ecx]
jmp 0x1005a3c
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x1005a46
mov edx, dword [eax]
jmp 0x1005a48
xor edx, edx
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
lea edi, [ebp - 0x28]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
call dword [esi + 0x50]
mov esi, eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x1005a6f
call fcn.010035ed
mov dword [ebp + 0xc], ebx
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x1005a82
call fcn.010035ed
mov dword [ebp + 0x10], ebx
cmp esi, ebx
jl 0x1005c3a
push dword [ebp + 0x30]
push dword [ebp + 0x24]
push dword [ebp - 0x28]
call fcn.0100670b
cmp eax, ebx
jge 0x1005ace
push eax
call fcn.01006a2b
push 0x20001
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.0100a09a
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x10057ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x28], ebx
jmp 0x10057ca
push dword [ebp + 0x1c]
push dword [ebp + 0x28]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 0x28]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push dword [ebp + 8]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__
cmp dword [ebp + 0x2c], ebx
jne 0x1005aff
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 3
call fcn.010041dd
jmp 0x1005b0c
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 3
call fcn.01003c86
dec eax
je 0x1005c15
dec eax
je 0x1005bfd
dec eax
je 0x1005be4
dec eax
je 0x1005bb8
sub eax, 4
je 0x1005b9f
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x1005b3d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x1005b4d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x1005b60
call fcn.010035ed
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x1005b73
call fcn.010035ed
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x1005b85
call fcn.010035ed
mov dword [ebp - 0x18], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x1005b98
call fcn.010035ed
mov dword [ebp - 0x1c], ebx
mov eax, esi
jmp 0x1005cae
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x1005905
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x28], ebx
jmp 0x1005905
push 0x1001530
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01008d2a
push 0xfb
call fcn.0100a082
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01008d2a
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x10059aa
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x28], ebx
jmp 0x10059aa
push 0x69
call fcn.0100a082
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01008d2a
jmp 0x1005b9f
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01008103
push 0x20001
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.0100a09a
jmp 0x1005b9f
push 0x69
call fcn.0100a082
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01008d2a
jmp 0x1005905
push 0x73
jmp 0x10057b6
xor eax, eax
inc eax
call fcn.010079ca
ret 0x2c