Function at 0x10002012c
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 0x100020188
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100002e38]
mov edx, 0x519
jmp 0x100020251
lea rcx, [0x100036158]
call fcn.1000273ac
cmp eax, esi
mov ebx, eax
jge 0x1000201ab
lea r8, [0x100002e80]
mov edx, 0x51d
jmp 0x100020269
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
cmp dword [0x1000361b0], esi
je 0x1000201ee
lea r8, [0x10001e670]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xa0], rax
cmp rax, rsi
jne 0x1000202d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x523
jmp 0x10002024a
cmp dword [0x1000361ac], esi
je 0x100020221
lea r8, [0x10001e8f4]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xa0], rax
cmp rax, rsi
jne 0x1000202d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x528
jmp 0x10002024a
lea r8, [0x10001f0ec]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0xa0], rax
cmp rax, rsi
jne 0x1000202d8
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.1000267e8
jmp 0x10002032c
cmp eax, ebp
je 0x1000202bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100001818]
mov edx, 0x54e
jmp 0x100020251
mov rcx, qword [0x100036158]
lea r8, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
cmp eax, esi
jne 0x1000202bd
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 0x10002028e
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 0x100020276
mov rcx, qword [rsp + 0xa0]
cmp rcx, rsi
je 0x10002032c
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x90], esi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, esi
je 0x10002032c
mov ebx, dword [rsp + 0x90]
mov rcx, qword [0x100036158]
cmp rcx, rsi
je 0x100020366
call qword [sym.imp.USER32.dll_DestroyWindow]
cmp eax, esi
jne 0x10002035f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100001b20]
mov edx, 0x564
mov r9d, eax
mov rcx, r12
call fcn.1000267e8
mov qword [0x100036158], rsi
mov rcx, qword [rsp + 0xa0]
cmp rcx, rsi
je 0x100020381
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xa0], rsi
cmp rdi, rsi
je 0x1000203b0
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyAcceleratorTable]
cmp eax, esi
jne 0x1000203b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x100002eb0]
mov edx, 0x571
mov r9d, eax
mov rcx, r12
call fcn.1000267e8
mov eax, ebx
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret