Function at 0x140008a00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, rsp
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
cmp qword [rsp + 0x70], 0
jne 0x140008a50
mov r8d, 0x64d
lea rdx, [0x140061a50]
lea rcx, [0x14005d508]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
cmp qword [rsp + 0x78], 0
jne 0x140008a73
mov r8d, 0x64e
lea rdx, [0x140061ad0]
lea rcx, [0x14005d438]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
cmp qword [rsp + 0x80], 0
jne 0x140008a99
mov r8d, 0x64f
lea rdx, [0x140061b50]
lea rcx, [0x14005d5a8]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
cmp qword [rsp + 0x88], 0
jne 0x140008abf
mov r8d, 0x650
lea rdx, [0x140061bd0]
lea rcx, [0x14005d518]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
mov rax, qword [rsp + 0x80]
mov dword [rax + 4], 1
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 9]
and al, 7
movzx eax, al
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 6
ja case.default.0x140008b04
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x8d6c]
add rax, rcx
jmp rax
mov eax, 0x1ff
mov rcx, qword [rsp + 0x88]
movzx ecx, word [rcx + 0xa]
and cx, ax
movzx eax, cx
movzx eax, ax
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
jmp 0x140008d63
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xa]
and al, 0x3f
mov rcx, qword [rsp + 0x70]
movzx ecx, byte [rcx + 0x24]
lea rdx, [0x1400140d8]
mov qword [rsp + 0x28], rdx
movzx edx, al
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + rcx*4]
call fcn.140011330
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
jmp 0x140008d63
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax + 0x17]
cmp eax, 0x10
jne 0x140008b8b
mov dword [rsp + 0x30], 2
jmp 0x140008bb3
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax + 0x17]
cmp eax, 0x20
jne 0x140008ba3
mov dword [rsp + 0x34], 3
jmp 0x140008bab
mov dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xa]
and al, 0x3f
movzx edx, al
mov ecx, dword [rsp + 0x30]
call fcn.140011330
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
jmp 0x140008d63
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
cmp dword [rax + 4], 0
jne 0x140008bf5
mov dword [rsp + 0x38], 2
jmp 0x140008c1d
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
cmp dword [rax + 4], 1
jne 0x140008c0d
mov dword [rsp + 0x3c], 3
jmp 0x140008c15
mov dword [rsp + 0x3c], 4
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x88]
movzx eax, byte [rax + 0xa]
and al, 0x3f
movzx edx, al
mov ecx, dword [rsp + 0x38]
call fcn.140011330
mov rcx, qword [rsp + 0x80]
mov dword [rcx + 0x20], eax
jmp 0x140008d63
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax + 0x17]
cmp eax, 0x10
jne 0x140008c5f
mov dword [rsp + 0x40], 0xbb
jmp 0x140008c87
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax + 0x17]
cmp eax, 0x20
jne 0x140008c77
mov dword [rsp + 0x44], 0xbc
jmp 0x140008c7f
mov dword [rsp + 0x44], 0xbd
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x20], ecx
jmp 0x140008d63
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
cmp dword [rax + 4], 0
jne 0x140008cb3
mov dword [rsp + 0x48], 0xbc
jmp 0x140008cdb
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
cmp dword [rax + 4], 1
jne 0x140008ccb
mov dword [rsp + 0x4c], 0xbc
jmp 0x140008cd3
mov dword [rsp + 0x4c], 0xbd
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x20], ecx
jmp 0x140008d63
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
cmp dword [rax + 4], 0
jne 0x140008d04
mov dword [rsp + 0x50], 0xb8
jmp 0x140008d2c
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
cmp dword [rax + 4], 1
jne 0x140008d1c
mov dword [rsp + 0x54], 0xb9
jmp 0x140008d24
mov dword [rsp + 0x54], 0xba
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x20], ecx
jmp 0x140008d63
xor eax, eax
test eax, eax
jne 0x140008d5e
mov r8d, 0x684
lea rdx, [0x140061c50]
lea rcx, [0x14005d5b8]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__wassert
xor eax, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
add rsp, 0x60
pop rdi
ret