Function at 0x100003594
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x150
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [0x100010ee0], rcx
mov rsi, rdx
lea rcx, [0x1000105c0]
xor edx, edx
mov r8d, 0x910
xor edi, edi
call sub.msvcrt.dll_memset
lea rcx, [0x100011400]
xor edx, edx
mov r8d, 0x32c
call sub.msvcrt.dll_memset
lea rcx, [0x1000104a0]
xor edx, edx
mov r8d, 0x104
call sub.msvcrt.dll_memset
lea r12d, [rdi + 1]
lea r8d, [rdi + 0x7f]
lea rdx, [0x1000105d8]
lea rcx, [0x10000175c]
mov dword [0x100010878], r12d
call fcn.100005680
test eax, eax
je 0x10000385c
cmp eax, 0x80
ja 0x10000385c
xor r9d, r9d
mov r8d, r12d
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, rax
mov qword [0x100010450], rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea r8d, [rdi + 4]
lea rdx, [0x100010ec4]
lea rcx, [0x100001768]
call fcn.100005680
test eax, eax
jne 0x10000369f
and dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 0x4b1
mov dword [rsp + 0x20], InitCommonControls
call fcn.100005420
mov dword [0x100010488], 0x80070714
jmp 0x10000387a
mov eax, dword [0x100010ec4]
test al, 0x40
jne 0x1000036b1
test al, al
jns 0x100003769
lea rdx, [rsp + 0x30]
lea rcx, [0x100001778]
mov r8d, 0x104
call fcn.100005680
xor ecx, ecx
test eax, eax
jne 0x1000036da
and dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
jmp 0x10000367e
lea r8, [rsp + 0x30]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x100010458], rax
test rax, rax
je 0x100003769
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100003769
xor r9d, r9d
xor ecx, ecx
test byte [0x100010ec4], 0x80
lea r8, [0x1000105d8]
je 0x10000372e
and dword [rsp + 0x28], edi
mov edx, 0x54b
mov dword [rsp + 0x20], InitCommonControls
call fcn.100005420
jmp 0x10000374d
mov edx, 0x524
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x20
call fcn.100005420
cmp eax, 6
je 0x100003769
mov rcx, qword [0x100010458]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100010488], 0x800700b7
jmp 0x10000387a
and dword [0x10001048c], edi
mov rcx, rsi
call fcn.1000072e8
test eax, eax
jne 0x100003785
mov edx, 0x520
jmp 0x100003861
cmp byte [0x10001141a], dil
je 0x10000379f
lea rcx, [0x10001141a]
call fcn.100002918
jmp 0x10000387a
lea rdx, [0x100001788]
mov r8d, 0xa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x1000037c9
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
cmp dword [0x10000f46c], 0
je 0x1000037d8
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100011404], 0
je 0x1000037e9
mov eax, r12d
jmp 0x10000387c
mov rcx, rdi
call fcn.1000043b8
test eax, eax
je 0x10000387a
movzx eax, word [0x100010490]
cmp ax, r12w
je 0x100003812
cmp ax, 2
je 0x100003812
cmp ax, 3
jne 0x1000037e1
test dword [0x100010ec4], 0x100
je 0x1000037e1
test byte [0x100011418], r12b
jne 0x1000037e1
call fcn.100001c80
test eax, eax
jne 0x1000037e1
lea r8, [0x100001e54]
mov r9d, 0x547
xor edx, edx
mov ecx, 0x7d6
mov qword [rsp + 0x20], 0x83e
call fcn.100007c80
cmp rax, 0x83d
jne 0x10000387a
jmp 0x1000037e1
mov edx, 0x4b1
and dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], InitCommonControls
call fcn.100005420
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.10000c380
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop r12
pop rdi
pop rsi
ret