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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x70], 0
je 0x1401461d3
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x70]
cmp dword [rcx + rax], 0
jg 0x1401461da
xor eax, eax
jmp 0x1401464af
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
movsxd rax, dword [rcx + rax]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x2c], eax
movsx eax, byte [rsp + 0x78]
test eax, eax
jne 0x140146274
cmp dword [rsp + 0x88], 1
jle 0x140146240
xor eax, eax
jmp 0x1401464af
cmp dword [rsp + 0x88], 1
jne 0x140146257
mov dword [rsp + 0x98], 0
jmp 0x14014626c
cmp dword [rsp + 0x98], 1
jle 0x14014626c
mov dword [rsp + 0x98], 1
mov byte [rsp + 0xb0], 1
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
add rax, 4
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x20]
shr eax, 0x18
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x20]
and eax, 0xffffff
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14014633c
mov eax, dword [rsp + 0x20]
and eax, 0x800000
test eax, eax
jne 0x1401462d3
xor eax, eax
cmp eax, 1
je 0x14014633c
movsx eax, byte [rsp + 0x78]
test eax, eax
jl 0x140146324
movsx eax, byte [rsp + 0x78]
test eax, eax
jne 0x1401462ef
mov dword [rsp + 0x4c], 1
jmp 0x1401462f7
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
cmp eax, 1
jne 0x140146312
mov dword [rsp + 0x40], 1
jmp 0x14014631a
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x4c], eax
jne 0x14014633c
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x2c], eax
jge 0x14014636a
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x24], al
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
jmp 0x1401463cd
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x28], eax
jge 0x140146398
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x24], al
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x1401463cd
movsx eax, byte [rsp + 0xb0]
test eax, eax
jne 0x1401463bb
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x1f
jle 0x1401463c2
jmp 0x14014648e
mov eax, dword [rsp + 0x34]
neg eax
jmp 0x1401464af
movzx r8d, byte [rsp + 0x24]
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x50]
call fcn.140145990
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1401463f6
jmp 0x14014648e
cmp dword [rsp + 0x20], 0x1f0000
jae 0x14014640a
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x48], eax
jmp 0x140146489
mov eax, dword [rsp + 0x20]
and eax, 0x800000
test eax, eax
jne 0x14014641e
xor eax, eax
cmp eax, 1
je 0x140146487
movsx eax, byte [rsp + 0x78]
test eax, eax
jl 0x14014646f
movsx eax, byte [rsp + 0x78]
test eax, eax
jne 0x14014643a
mov dword [rsp + 0x44], 1
jmp 0x140146442
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
cmp eax, 1
jne 0x14014645d
mov dword [rsp + 0x3c], 1
jmp 0x140146465
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x44], eax
jne 0x140146487
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x14014648e
jmp 0x140146274
cmp dword [rsp + 0x30], 0
jne 0x140146499
xor eax, eax
jmp 0x1401464af
mov eax, dword [rsp + 0x38]
btr eax, 0x17
mov rcx, qword [rsp + 0xa0]
mov dword [rcx], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x68
ret