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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov qword [rsp + 0x88], 0xfffffffffffffffe
cmp qword [rsp + 0x148], 0
je 0x1400039f9
cmp dword [rsp + 0x150], 0x10
jl 0x1400039f9
mov eax, dword [rsp + 0x150]
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
test eax, eax
jne 0x1400039f9
cmp qword [rsp + 0x158], 0
jne 0x140003a00
xor al, al
jmp 0x140003d63
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x140]
movzx eax, byte [rax]
test eax, eax
je 0x140003bbd
mov rax, qword [rsp + 0x140]
add rax, 0x2c8
mov r9d, 8
mov r8, qword [rsp + 0x148]
mov edx, 0x10
mov rcx, rax
call fcn.1401a3478
mov eax, dword [rsp + 0x24]
add eax, 8
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.1400048b0
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.14000346c
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x140]
add rax, 0x2c8
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.1400034bc
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
call fcn.140002f90
mov byte [rsp + 0x28], al
lea rcx, [rsp + 0xd0]
call fcn.140003660
nop
lea rcx, [rsp + 0xf0]
call fcn.140003660
nop
lea rcx, [rsp + 0xb0]
call fcn.140003698
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x140003b0a
xor al, al
jmp 0x140003d63
mov rax, qword [rsp + 0x148]
add rax, 8
mov rcx, qword [rsp + 0x140]
add rcx, 0x2c8
mov r9d, 8
mov r8, rax
mov edx, 0x10
call fcn.1401a3478
mov eax, dword [rsp + 0x24]
add eax, 8
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x140]
add rax, 0x2c8
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1400034bc
nop
lea rax, [rsp + 0x110]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
call fcn.140003400
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x140]
add rax, 0xa0
mov r8, qword [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x140]
call fcn.1400065dc
nop
lea rcx, [rsp + 0x90]
call fcn.140003660
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x150]
cmp dword [rsp + 0x24], eax
jge 0x140003d53
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x148]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x140]
add rcx, 0x2c8
mov r9d, 0x10
mov r8, rax
mov edx, 0x10
call fcn.1401a3478
mov eax, dword [rsp + 0x24]
add eax, 0x10
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x140]
add rax, 0x1d4
mov rcx, qword [rsp + 0x140]
add rcx, 0x2d8
mov rdx, qword [rsp + 0x140]
add rdx, 0x2c8
mov qword [rsp + 0x48], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x48]
mov rcx, rax
call fcn.140001520
mov dword [rsp + 0x3c], 0x10
mov eax, dword [rsp + 0x150]
cmp dword [rsp + 0x24], eax
jne 0x140003cff
mov eax, 1
imul rax, rax, 0xf
mov rcx, qword [rsp + 0x140]
movsx eax, byte [rcx + rax + 0x2d8]
mov dword [rsp + 0x34], eax
mov byte [rsp + 0x20], 1
mov dword [rsp + 0x30], 0x10
mov dword [rsp + 0x38], 0
jmp 0x140003cb1
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jge 0x140003ce9
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x140]
movsx eax, byte [rcx + rax + 0x2d8]
cmp eax, dword [rsp + 0x34]
je 0x140003ce7
mov byte [rsp + 0x20], 0
jmp 0x140003ce9
jmp 0x140003ca7
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140003cff
mov eax, 0x10
sub eax, dword [rsp + 0x34]
mov dword [rsp + 0x3c], eax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x140]
add rcx, 0x2d8
movsxd rdx, dword [rsp + 0x2c]
mov r8, qword [rsp + 0x158]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x50], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x50]
mov rcx, rax
call fcn.1401a2f10
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x140003bc5
mov rax, qword [rsp + 0x160]
mov ecx, dword [rsp + 0x2c]
mov dword [rax], ecx
mov al, 1
add rsp, 0x138
ret