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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov rax, qword [rsp + 0x110]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0x38]
call fcn.140141820
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 0x48]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x140165045
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1401657c3
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x70
mov rcx, qword [rsp + 0x110]
lea rax, [rcx + rax + 0x370]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x38], 0
je 0x1401650f7
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x38]
call fcn.1401417a0
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x18], 0
mov rcx, qword [rsp + 0x38]
call fcn.140141820
mov rcx, qword [rsp + 0xb0]
mov dword [rcx + 0x10], eax
mov dword [rsp + 0x20], 1
mov rax, qword [rsp + 0xb0]
mov r9d, dword [rax + 0xc]
mov rax, qword [rsp + 0xb0]
mov r8d, dword [rax + 8]
mov edx, 0x43
mov rcx, qword [rsp + 0x38]
call fcn.140140280
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x41]
cmp eax, 0xb8
je 0x140165387
mov dword [rsp + 0x78], 0
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 0x4b]
cmp eax, 2
jne 0x1401652c4
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 0x48]
dec eax
cmp dword [rsp + 0x40], eax
jne 0x1401652c4
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x38]
and eax, 0x200
test eax, eax
je 0x1401652c4
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x64]
shr eax, 7
and eax, 1
test eax, eax
je 0x1401652c4
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x1e]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
jle 0x1401652c4
movsxd rax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0xd8]
mov rcx, qword [rcx + 0x10]
movsx eax, word [rcx + rax*2]
cmp eax, 0x24
jl 0x1401652c4
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x38]
inc eax
mov dword [rsp + 0x84], eax
mov dword [rsp + 0x58], 0
jmp 0x1401651e8
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x58], eax
jge 0x140165225
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x84]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x58]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 8]
mov edx, 0x5e
mov rcx, qword [rsp + 0x38]
call fcn.140140280
nop
jmp 0x1401651de
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x38]
mov ecx, dword [rsp + 0x5c]
lea eax, [rcx + rax + 1]
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 0x38], eax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x41]
cmp eax, 0x25
jne 0x140165258
mov dword [rsp + 0x80], 0x14
jmp 0x140165263
mov dword [rsp + 0x80], 0x17
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xa4], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 8]
mov edx, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0x38]
call fcn.140140480
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x30]
mov r9d, dword [rax + 0x48]
mov r8d, 1
mov edx, 8
mov rcx, qword [rsp + 0x38]
call fcn.140140050
nop
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x18], 0
je 0x1401652e2
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x38]
call fcn.1401417a0
nop
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x42]
mov rcx, qword [rsp + 0x30]
movzx ecx, byte [rcx + 0x41]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x44]
mov edx, ecx
mov rcx, qword [rsp + 0x38]
call fcn.140140280
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x43]
movzx edx, ax
mov rcx, qword [rsp + 0x38]
call fcn.140140b50
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x24], 0
je 0x14016536f
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x28]
mov rcx, qword [rsp + 0x38]
call fcn.1401417a0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x48]
dec eax
mov r9d, eax
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x24]
mov edx, 0x3c
mov rcx, qword [rsp + 0x38]
call fcn.140140050
nop
cmp dword [rsp + 0x78], 0
je 0x140165385
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call fcn.140140ba0
nop
jmp 0x1401653a5
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x18], 0
je 0x1401653a5
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x38]
call fcn.1401417a0
nop
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x38]
and eax, 0x800
test eax, eax
je 0x140165586
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x50], 0
jle 0x140165586
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
call fcn.1401417a0
nop
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
dec eax
cdqe
imul rax, rax, 0x14
mov rcx, qword [rsp + 0x30]
add rax, qword [rcx + 0x58]
mov qword [rsp + 0x50], rax
jmp 0x14016541c
mov eax, dword [rsp + 0x70]
dec eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x50]
sub rax, 0x14
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x70], 0
jle 0x140165586
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.140140ba0
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10]
cmp eax, 0xb8
je 0x14016556a
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xc], 0
je 0x140165543
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x38]
and eax, 0x400
test eax, eax
jne 0x14016548f
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x38]
and eax, 0x40000
test eax, eax
je 0x14016548f
mov dword [rsp + 0x88], 1
jmp 0x14016549a
mov dword [rsp + 0x88], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x1401654e2
mov rcx, qword [rsp + 0x38]
call fcn.140141820
mov ecx, dword [rsp + 0x8c]
lea eax, [rax + rcx + 2]
mov r9d, eax
mov rax, qword [rsp + 0x50]
mov r8d, dword [rax]
mov edx, 0x18
mov rcx, qword [rsp + 0x38]
call fcn.140140050
nop
cmp dword [rsp + 0x8c], 0
je 0x140165543
mov rcx, qword [rsp + 0x38]
call fcn.140141820
add eax, 2
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xc]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 8]
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 8]
mov edx, 0x19
mov rcx, qword [rsp + 0x38]
call fcn.140140480
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
inc eax
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.140140ba0
nop
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov r9d, dword [rcx + 4]
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rcx]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.140140050
nop
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
dec eax
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.140140ba0
nop
jmp 0x140165404
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
call fcn.1401417a0
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x38], 0
je 0x1401655cc
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x38]
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, dword [rax + 8]
mov edx, 0x43
mov rcx, qword [rsp + 0x38]
call fcn.140140280
nop
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x14], 0
je 0x140165613
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x14]
mov rcx, qword [rsp + 0x38]
call fcn.1401400a0
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x14]
mov rcx, qword [rsp + 0x38]
call fcn.140140ba0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
sub eax, 2
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.140140ba0
nop
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x30], 0
je 0x140165644
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x2c]
shr eax, 1
mov rcx, qword [rsp + 0x30]
mov r9d, dword [rcx + 0x30]
mov r8d, eax
mov edx, 0x3c
mov rcx, qword [rsp + 0x38]
call fcn.140140050
nop
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x1401657be
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax]
mov edx, 0x31
mov rcx, qword [rsp + 0x38]
call fcn.140140010
mov dword [rsp + 0xac], eax
mov eax, dword [rsp + 0x74]
and eax, 0x40
test eax, eax
jne 0x1401656a0
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 4]
mov edx, 0x88
mov rcx, qword [rsp + 0x38]
call fcn.140140010
nop
mov eax, dword [rsp + 0x74]
and eax, 0x200
test eax, eax
jne 0x1401656ce
mov eax, dword [rsp + 0x74]
and eax, 0x2000
test eax, eax
je 0x140165767
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x50], 0
je 0x140165767
mov eax, dword [rsp + 0x74]
and eax, 0x2000
test eax, eax
je 0x14016574e
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0xd0]
call fcn.14017d330
mov dword [rsp + 0xa8], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb8]
mov r9d, dword [rax + 0x58]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 8]
mov edx, 0x65
mov rcx, qword [rsp + 0x38]
call fcn.140140280
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x68]
call fcn.140140f00
nop
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 8]
mov edx, 0x88
mov rcx, qword [rsp + 0x38]
call fcn.140140010
nop
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x41]
cmp eax, 0x43
jne 0x140165799
mov rax, qword [rsp + 0x30]
mov r9d, dword [rax + 0x1c]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0x44]
mov edx, 9
mov rcx, qword [rsp + 0x38]
call fcn.140140050
nop
jmp 0x1401657ac
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x38]
call fcn.1401400a0
nop
mov edx, dword [rsp + 0xac]
mov rcx, qword [rsp + 0x38]
call fcn.140140ba0
nop
jmp 0x14016503b
mov rax, qword [rsp + 0x110]
cmp qword [rax + 0x68], 0
je 0x1401657e0
mov rcx, qword [rsp + 0x110]
call fcn.1401f8cf0
nop
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x110]
add rax, 0x370
mov qword [rsp + 0x30], rax
jmp 0x140165815
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x30]
add rax, 0x70
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 0x48]
cmp dword [rsp + 0x40], eax
jge 0x140165b29
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x40]
imul rax, rax, 0x68
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x38], 0
je 0x1401658a3
mov r8, qword [rsp + 0x30]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x110]
call fcn.1401ef7d0
nop
jmp 0x1401657fd
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x40]
shr eax, 5
and eax, 1
test eax, eax
je 0x1401658ed
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0xc0]
mov r9d, dword [rax + 0x38]
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 4]
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x20]
mov rcx, qword [rsp + 0x68]
call fcn.1401f6bc0
nop
jmp 0x1401657fd
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x38]
and eax, 0x240
test eax, eax
je 0x140165911
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x98], rax
jmp 0x140165933
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x38]
and eax, 0x2000
test eax, eax
je 0x140165933
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x140165b24
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x67]
test eax, eax
jne 0x140165b24
mov rax, qword [rsp + 0x110]
movzx eax, byte [rax + 0x4a]
test eax, eax
je 0x14016597e
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x18]
mov eax, dword [rax + 0x30]
and eax, 0x80
test eax, eax
je 0x14016598e
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x94], eax
jmp 0x1401659a0
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x58]
mov dword [rsp + 0x94], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
inc eax
mov dword [rsp + 0x90], eax
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x38]
call fcn.140141010
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x94]
sub ecx, eax
mov eax, ecx
cdqe
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 4]
cmp dword [rax + 4], ecx
je 0x140165a09
jmp 0x140165b03
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
cmp eax, 0x5e
jne 0x140165abd
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xc8]
mov eax, dword [rax + 0x30]
and eax, 0x80
test eax, eax
je 0x140165a6a
mov rcx, qword [rsp + 0xc8]
call fcn.140152be0
mov qword [rsp + 0xe8], rax
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx + 8]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x44], eax
jmp 0x140165a81
movzx edx, word [rsp + 0x44]
mov rcx, qword [rsp + 0xc8]
call fcn.140152d60
cwde
mov dword [rsp + 0x44], eax
movzx edx, word [rsp + 0x44]
mov rcx, qword [rsp + 0x98]
call fcn.140152c30
cwde
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140165abb
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 8]
mov dword [rax + 4], ecx
jmp 0x140165b03
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
cmp eax, 0x87
jne 0x140165ae6
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 8]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x48]
mov byte [rax], 0x8e
jmp 0x140165b03
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
cmp eax, 0x12
jne 0x140165b03
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 8]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x48]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xf0]
cmp qword [rsp + 0x48], rax
jb 0x1401659f2
jmp 0x1401657fd
mov rax, qword [rsp + 0x110]
mov edx, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
call fcn.1401417a0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0x40]
mov dword [rax + 0xc8], ecx
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xd0]
call fcn.1401f8c30
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x26]
sub eax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x68]
mov byte [rcx + 0x26], al
add rsp, 0x108
ret