Function at 0x18002b9b0
Capabilities:
Check mutex on windows
Create directory

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov rax, qword [0x18009b1a0]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov dword [rsp + 0x20], 0
mov eax, 1
mov word [rsp + 0x2c], ax
movsx rax, word [rsp + 0x2c]
lea rcx, [0x18009aa10]
cmp dword [rcx + rax*4], 1
jne 0x18002ba2b
movsx rax, word [rsp + 0x2c]
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x2c]
lea rdx, [0x18009aa10]
mov dword [rdx + rcx*4], eax
mov eax, reloc.OLEAUT32.dll_SafeArrayDestroy
mov word [rsp + 0x28], ax
movsx rax, word [rsp + 0x28]
lea rcx, [0x18009aa10]
cmp dword [rcx + rax*4], 1
jne 0x18002ba6a
movsx rax, word [rsp + 0x28]
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x28]
lea rdx, [0x18009aa10]
mov dword [rdx + rcx*4], eax
cmp qword [rsp + 0x1a0], 0
je 0x18002ba8e
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x1a0]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x18002ba95
xor al, al
jmp 0x18002c0b4
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x1b0]
test eax, eax
je 0x18002beba
mov edx, 1
lea rcx, [rsp + 0x140]
call fcn.1800368b0
mov r8, 0xffffffffffffffff
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x140]
call fcn.18001ec10
nop
mov edx, 1
lea rcx, [rsp + 0x158]
call fcn.1800368b0
lea rcx, [rsp + 0x158]
call fcn.18001ec60
nop
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax]
xor eax, 0xfffff753
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x128]
mov qword [rsp + 0x98], rax
mov r8, 0xffffffffffffffff
lea rdx, [0x18009df20]
mov rcx, qword [rsp + 0x98]
call fcn.18001ec10
mov qword [rsp + 0xc0], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x140]
call fcn.1800268f0
mov qword [rsp + 0x38], rax
mov edx, 1
lea rcx, [rsp + 0x170]
call fcn.1800368b0
cmp qword [rsp + 0x38], 0
jle 0x18002bbf1
lea rcx, [rsp + 0x140]
call fcn.180030fd0
mov r8, qword [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0xf8]
call fcn.18001ec10
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x68], rax
jmp 0x18002bc30
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x110]
call fcn.18001eb20
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x170]
call fcn.18001eb20
nop
mov eax, dword [rsp + 0x20]
and eax, 2
test eax, eax
je 0x18002bc71
and dword [rsp + 0x20], 0xfffffffd
lea rcx, [rsp + 0x110]
call fcn.180013e90
nop
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x18002bc8e
and dword [rsp + 0x20], 0xfffffffe
lea rcx, [rsp + 0xf8]
call fcn.180013e90
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x158]
call fcn.180024780
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
cmp eax, 0x20452341
jne 0x18002bcd1
lea r8, [0x18009df30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rsp + 0xd0], rax
jmp 0x18002bcf9
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
lea rcx, [rsp + 0x158]
call fcn.18000be20
xor edx, edx
mov rcx, rax
call fcn.18002ca40
movzx eax, al
test eax, eax
jne 0x18002bd7d
lea rcx, [rsp + 0x158]
call fcn.18000be20
mov rdx, qword [rsp + 0x1a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18002bd7d
lea rcx, [rsp + 0x170]
call fcn.180013e90
jmp 0x18002be9a
lea rcx, [rsp + 0x140]
call fcn.180030fd0
mov rcx, qword [rsp + 0x38]
lea rax, [rax + rcx*2 + 2]
mov r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.18001ec10
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x140]
call fcn.18001f260
nop
lea rcx, [rsp + 0xe0]
call fcn.180013e90
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax]
xor eax, 0xfffff71d
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 1
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax]
xor eax, 0xfffff715
mov ecx, 4
imul rcx, rcx, 1
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
cmp qword [rsp + 0x38], 0
jle 0x18002be81
mov eax, 4
imul rax, rax, 3
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax]
add eax, 0xcf782d0
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
mov dx, 0x5c
lea rcx, [rsp + 0x158]
call fcn.1800281b0
nop
lea rcx, [rsp + 0x170]
call fcn.180013e90
cmp qword [rsp + 0x38], 0
jg 0x18002bb30
lea rcx, [rsp + 0x158]
call fcn.180013e90
nop
lea rcx, [rsp + 0x140]
call fcn.180013e90
jmp 0x18002bfb9
xor edx, edx
mov rcx, qword [rsp + 0x1a0]
call fcn.18002ca40
movzx eax, al
test eax, eax
jne 0x18002bf42
mov rdx, qword [rsp + 0x1a8]
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
cmp eax, 0x8f1eeb1
jne 0x18002bf18
lea r8, [0x18009df80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov qword [rsp + 0xd8], rax
jmp 0x18002bf40
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xb
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
jmp 0x18002bfb9
mov dword [rsp + 0x30], 1
lea rax, [0x18009d674]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18002bfb9
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x18002bfb9
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009aa10]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x30], 0
je 0x18002c030
lea rax, [0x18009d674]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
movsx eax, al
cmp eax, 0x61
jne 0x18002c029
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18002c029
mov eax, 4
imul rax, rax, 0xb
lea rcx, [0x18009aa10]
mov edx, dword [rcx + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x18009aa10]
mov dword [rdx + rcx], eax
mov al, 1
jmp 0x18002c0b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xb7
jne 0x18002c0b2
mov eax, 9
mov word [rsp + 0x24], ax
movsx rax, word [rsp + 0x24]
lea rcx, [0x18009aa10]
cmp dword [rcx + rax*4], 1
jne 0x18002c083
movsx rax, word [rsp + 0x24]
lea rcx, [0x18009aa10]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x24]
lea rdx, [0x18009aa10]
mov dword [rdx + rcx*4], eax
mov al, 1
jmp 0x18002c0b4
xor al, al
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.18005afa0
add rsp, 0x198
ret