Function at 0x140001340
Capabilities:
Check mutex on windows
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
mov rax, qword [0x140130098]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r8, qword [str.F2861F0F3254]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140001396
xor ecx, ecx
call fcn.1400ab028
lea rax, [0x1400c54f7]
cmp qword [str.0C2901C6F1], rax
je 0x1400013ce
mov r8, qword [str.0C2901C6F1]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400013ce
xor ecx, ecx
call fcn.1400ab028
mov ecx, 1
call fcn.140097ff0
call fcn.140096a50
mov ecx, 1
call fcn.140097ff0
mov ecx, 1
call fcn.140097ff0
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x20]
call fcn.14009c620
mov rcx, rax
call fcn.14009c190
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140130e88], rax
cmp qword [0x140130e88], 0
jne 0x14000143d
mov eax, 1
jmp 0x14000181d
mov ecx, 1
call fcn.140097ff0
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x21]
call fcn.14009c4d0
mov rcx, rax
call fcn.14009c170
mov rdx, rax
mov rcx, qword [0x140130e88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140130e98], rax
lea rax, [rsp + 0x22]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x22]
call fcn.14009c3a0
mov rcx, rax
call fcn.14009c0d0
mov rdx, rax
mov rcx, qword [0x140130e88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140130ea0], rax
lea rax, [rsp + 0x23]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x23]
call fcn.14009c560
mov rcx, rax
call fcn.14009c1b0
mov rdx, rax
mov rcx, qword [0x140130e88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140130ea8], rax
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x24]
call fcn.14009c6b0
mov rcx, rax
call fcn.14009c0d0
mov rdx, rax
mov rcx, qword [0x140130e88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140130eb0], rax
lea rax, [rsp + 0x25]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x25]
call fcn.14009c530
mov rcx, rax
call fcn.14009c1b0
mov rdx, rax
mov rcx, qword [0x140130e88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140130eb8], rax
lea rax, [rsp + 0x26]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x26]
call fcn.14009c500
mov rcx, rax
call fcn.14009c1b0
mov rdx, rax
mov rcx, qword [0x140130e88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140130ec0], rax
cmp qword [0x140130e98], 0
je 0x14000160c
cmp qword [0x140130ea0], 0
je 0x14000160c
cmp qword [0x140130ea8], 0
je 0x14000160c
cmp qword [0x140130eb0], 0
je 0x14000160c
cmp qword [0x140130eb8], 0
je 0x14000160c
cmp qword [0x140130ec0], 0
jne 0x140001616
mov eax, 1
jmp 0x14000181d
mov ecx, 1
call fcn.140097ff0
mov ecx, 0x65
call fcn.140097e20
cmp qword [0x140130ee8], 0
jne 0x14000163e
mov eax, 1
jmp 0x14000181d
mov eax, dword [0x140130ef0]
mov dword [rsp + 0x34], eax
mov ecx, 1
call fcn.140097ff0
xor edx, edx
mov eax, dword [rsp + 0x34]
mov ecx, 8
div ecx
mov dword [rsp + 0x2c], eax
xor edx, edx
mov eax, dword [rsp + 0x34]
mov ecx, 8
div ecx
mov eax, edx
test eax, eax
je 0x140001680
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x3c], 0
mov ecx, 1
call fcn.140097ff0
lea rcx, [rsp + 0x50]
call fcn.14009af20
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
jmp 0x1400016b8
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x30], eax
jge 0x140001776
mov eax, dword [rsp + 0x3c]
mov rcx, qword [0x140130ee8]
add rcx, rax
mov rax, rcx
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.1400a5800
lea r8, section..data
lea rdx, [rsp + 0xe8]
mov ecx, 0x20
call fcn.140097ec0
mov dword [rsp + 0x28], 0
jmp 0x14000171a
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 8
jge 0x140001751
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jae 0x140001745
movsxd rax, dword [rsp + 0x28]
lea rax, [rsp + rax + 0xe8]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400a1bf0
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
jmp 0x140001710
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0xe8]
call fcn.1400a5c10
mov eax, dword [rsp + 0x3c]
add eax, 8
mov dword [rsp + 0x3c], eax
jmp 0x1400016ae
mov ecx, 1
call fcn.140097ff0
lea rcx, [rsp + 0x50]
call fcn.1400a0020
mov qword [0x140130ed8], rax
lea rcx, [rsp + 0x50]
call fcn.1400a20d0
mov qword [0x140130ee0], rax
mov ecx, 1
call fcn.140097ff0
mov rdx, qword [0x140130ee0]
mov rcx, qword [0x140130ed8]
call fcn.1400977f0
mov rdx, qword [0x140130ee0]
mov rcx, qword [0x140130ed8]
call fcn.1400a2fa0
mov rcx, qword [0x140130e88]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x140130e90], eax
mov rcx, qword [0x140130ec8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x44], eax
mov rcx, qword [0x140130ed0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
call fcn.14009bab0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400a4b80
add rsp, 0x100
pop rdi
ret