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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov rax, qword [0x1400e1020]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0
mov eax, 0x10
imul rax, rax, 0
lea rax, [rsp + rax + 0xb0]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x2c], 0
cmp qword [rsp + 0x1b0], 0
je 0x140064903
mov rax, qword [rsp + 0x1b0]
cmp dword [rax], 0xbab1e
je 0x14006490d
mov eax, 1
jmp 0x140065050
mov rax, qword [rsp + 0x1b0]
movzx eax, byte [rax + 0x18a]
test eax, eax
je 0x14006492a
mov eax, 8
jmp 0x140065050
cmp dword [rsp + 0x1c8], 0
jge 0x14006493e
mov eax, 0xa
jmp 0x140065050
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140064a38
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call fcn.140065070
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x24], 0
jmp 0x140064985
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 5
jae 0x140064a25
mov qword [rsp + 0x70], 0xffffffffffffffff
mov eax, dword [rsp + 0x24]
mov ecx, 1
mov dword [rsp + 0x60], ecx
movzx ecx, al
mov eax, dword [rsp + 0x60]
shl eax, cl
mov ecx, dword [rsp + 0x3c]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x1400649d6
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
mov rax, qword [rsp + rax*8 + 0x88]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x24]
add eax, 0x10
mov ecx, 1
mov dword [rsp + 0x64], ecx
movzx ecx, al
mov eax, dword [rsp + 0x64]
shl eax, cl
mov ecx, dword [rsp + 0x3c]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140064a16
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
mov rax, qword [rsp + rax*8 + 0x88]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x140064a20
jmp 0x140064a25
jmp 0x14006497b
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
jmp 0x14006494f
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x1b0]
call fcn.140061e80
cmp dword [rsp + 0x50], 0
jl 0x140064a69
mov eax, dword [rsp + 0x1c8]
cmp dword [rsp + 0x50], eax
jge 0x140064a69
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x1c8], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x1c0]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
movzx eax, byte [rsp + 0x1e0]
test eax, eax
je 0x140064ab6
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x1b0]
cmp qword [rcx + rax + 0x178], 0xffffffffffffffff
je 0x140064ab6
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xa
jbe 0x140064aea
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rcx, rax
call qword [fcn.140011590]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140064ae5
mov eax, 3
jmp 0x140065050
mov byte [rsp + 0x2c], 1
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x58], 0
je 0x140064c5f
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140064c5f
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call fcn.140065070
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x24], 0
jmp 0x140064b44
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 5
jae 0x140064c4c
mov qword [rsp + 0x78], 0xffffffffffffffff
mov eax, dword [rsp + 0x24]
mov ecx, 1
mov dword [rsp + 0x68], ecx
movzx ecx, al
mov eax, dword [rsp + 0x68]
shl eax, cl
mov ecx, dword [rsp + 0x3c]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140064bc9
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + rax*8 + 0x88]
mov qword [rdx + rcx], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov ecx, 0x300
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
mov rax, qword [rsp + rax*8 + 0x88]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x24]
add eax, 0x10
mov ecx, 1
mov dword [rsp + 0x6c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x6c]
shl eax, cl
mov ecx, dword [rsp + 0x3c]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140064c3d
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + rax*8 + 0x88]
mov qword [rdx + rcx], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov ecx, 0x10
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
mov rax, qword [rsp + rax*8 + 0x88]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x140064c47
jmp 0x140064c4c
jmp 0x140064b3a
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
jmp 0x140064b0e
mov dword [rsp + 0x24], 0
jmp 0x140064c73
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x1c0]
cmp dword [rsp + 0x24], eax
jae 0x140064d98
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x1b8]
mov rax, qword [r8 + rax]
mov qword [rdx + rcx], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
xor ecx, ecx
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x1b8]
movsx eax, word [rcx + rax + 8]
and eax, 1
test eax, eax
je 0x140064d02
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x30]
movsx eax, word [rcx + rax + 8]
or eax, 0x300
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x30]
mov word [rdx + rcx + 8], ax
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x1b8]
movsx eax, word [rcx + rax + 8]
and eax, 2
test eax, eax
je 0x140064d46
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x30]
movsx eax, word [rcx + rax + 8]
bts eax, 0xa
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x30]
mov word [rdx + rcx + 8], ax
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x1b8]
movsx eax, word [rcx + rax + 8]
and eax, 4
test eax, eax
je 0x140064d89
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x30]
movsx eax, word [rcx + rax + 8]
or eax, 0x10
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x30]
mov word [rdx + rcx + 8], ax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140064c69
movzx eax, byte [rsp + 0x1e0]
test eax, eax
je 0x140064e0b
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x1b0]
cmp qword [rcx + rax + 0x178], 0xffffffffffffffff
je 0x140064e0b
mov eax, 8
imul rax, rax, 0
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x10
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x1b0]
mov rax, qword [r8 + rax + 0x178]
mov qword [rdx + rcx], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x10
mov ecx, 0x300
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax + 8], cx
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140064fae
movsxd rax, dword [rsp + 0x1c8]
mov r8, rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.140090360
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jle 0x140064fae
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x24], 0
jmp 0x140064e5a
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x1c0]
cmp dword [rsp + 0x24], eax
jae 0x140064efd
xor eax, eax
mov word [rsp + 0x28], ax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x30]
movsx eax, word [rcx + rax + 0xa]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
and eax, 0x300
test eax, eax
je 0x140064eac
movzx eax, word [rsp + 0x28]
or eax, 1
mov word [rsp + 0x28], ax
mov eax, dword [rsp + 0x54]
and eax, 0x10
test eax, eax
je 0x140064ec4
movzx eax, word [rsp + 0x28]
or eax, 4
mov word [rsp + 0x28], ax
mov eax, dword [rsp + 0x54]
and eax, 0x400
test eax, eax
je 0x140064ede
movzx eax, word [rsp + 0x28]
or eax, 2
mov word [rsp + 0x28], ax
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x1b8]
movzx edx, word [rsp + 0x28]
mov word [rcx + rax + 0xa], dx
jmp 0x140064e50
movzx eax, byte [rsp + 0x1e0]
test eax, eax
je 0x140064fae
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x1b0]
cmp qword [rcx + rax + 0x178], 0xffffffffffffffff
je 0x140064fae
mov eax, dword [rsp + 0x1c0]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x30]
movsx eax, word [rcx + rax + 0xa]
and eax, 0x300
test eax, eax
je 0x140064fae
xor eax, eax
cmp eax, 1
je 0x140064fa4
mov eax, 8
imul rax, rax, 0
xor r9d, r9d
mov r8d, 0x40
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x1b0]
mov rcx, qword [rcx + rax + 0x178]
call fcn.1400660d0
cdqe
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jg 0x140064fa2
jmp 0x140064fa4
jmp 0x140064f55
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
movzx eax, byte [rsp + 0x2c]
test eax, eax
je 0x140064fc2
mov rcx, qword [rsp + 0x30]
call qword [fcn.1400112bc]
cmp qword [rsp + 0x1d0], 0
je 0x140064fdb
mov rax, qword [rsp + 0x1d0]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
movzx eax, byte [rsp + 0x1d8]
test eax, eax
je 0x140064fee
cmp dword [rsp + 0x20], 0
je 0x140064ff0
jmp 0x14006504e
mov dword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x1b0]
call fcn.140061e20
test eax, eax
jne 0x14006504e
cmp dword [rsp + 0x38], 0
je 0x14006504e
mov eax, dword [rsp + 0x1c8]
cmp dword [rsp + 0x38], eax
jle 0x14006502f
mov eax, dword [rsp + 0x1c8]
mov dword [rsp + 0x38], eax
jmp 0x140065041
cmp dword [rsp + 0x38], 0
jge 0x140065041
mov eax, dword [rsp + 0x1c8]
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, rax
call fcn.1400902e0
xor eax, eax
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400068f0
add rsp, 0x1a8
ret