Function at 0x10002015c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
xor esi, esi
lea rcx, [r11 + 0x10]
lea eax, [rsi + 0x1b]
lea ebp, [rsi + 1]
mov qword [r11 + 0x18], rsi
mov word [r11 + 0x12], ax
lea eax, [rsi + 2]
mov edx, ebp
mov word [r11 + 0x14], ax
mov byte [r11 + 0x10], bpl
call qword [sym.imp.USER32.dll_CreateAcceleratorTableW]
mov rdi, rax
lea r12, [0x100002e68]
cmp rax, rsi
jne 0x1000201b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100002e38]
mov edx, 0x519
jmp 0x100020281
lea rcx, [0x100036158]
call fcn.1000273dc
cmp eax, esi
mov ebx, eax
jge 0x1000201db
lea r8, [0x100002e80]
mov edx, 0x51d
jmp 0x100020299
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
cmp dword [0x1000361b0], esi
je 0x10002021e
lea r8, [0x10001e6a0]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xa0], rax
cmp rax, rsi
jne 0x100020308
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x523
jmp 0x10002027a
cmp dword [0x1000361ac], esi
je 0x100020251
lea r8, [0x10001e924]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xa0], rax
cmp rax, rsi
jne 0x100020308
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x528
jmp 0x10002027a
lea r8, [0x10001f11c]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xa0], rax
cmp rax, rsi
jne 0x100020308
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x52d
lea r8, [0x100001b80]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
mov eax, 0x80004005
cmp ebx, esi
cmovge ebx, eax
mov rcx, r12
call fcn.100026818
jmp 0x10002035c
cmp eax, ebp
je 0x1000202ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100001818]
mov edx, 0x54e
jmp 0x100020281
mov rcx, qword [0x100036158]
lea r8, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
cmp eax, esi
jne 0x1000202ed
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_PeekMessageW]
cmp eax, esi
jne 0x1000202be
lea rdx, [rsp + 0xa0]
or r9d, 0xffffffff
xor r8d, r8d
mov ecx, ebp
mov dword [rsp + 0x20], 0x4ff
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
jne 0x1000202a6
mov rcx, qword [rsp + 0xa0]
cmp rcx, rsi
je 0x10002035c
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x90], esi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, esi
je 0x10002035c
mov ebx, dword [rsp + 0x90]
mov rcx, qword [0x100036158]
cmp rcx, rsi
je 0x100020396
call qword [sym.imp.USER32.dll_DestroyWindow]
cmp eax, esi
jne 0x10002038f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100001b20]
mov edx, 0x564
mov r9d, eax
mov rcx, r12
call fcn.100026818
mov qword [0x100036158], rsi
mov rcx, qword [rsp + 0xa0]
cmp rcx, rsi
je 0x1000203b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xa0], rsi
cmp rdi, rsi
je 0x1000203e0
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyAcceleratorTable]
cmp eax, esi
jne 0x1000203e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100002eb0]
mov edx, 0x571
mov r9d, eax
mov rcx, r12
call fcn.100026818
mov eax, ebx
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret