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

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x78], 0
movzx eax, word [rsp + 0x190]
test eax, eax
je 0x140109a29
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x60]
and eax, 0x40
test eax, eax
je 0x140109a29
xor al, al
jmp 0x14010a65c
mov rax, qword [rsp + 0x178]
movzx eax, word [rax]
mov word [rsp + 0x44], ax
movzx eax, word [rsp + 0x44]
cmp eax, 0x3f
jle 0x140109a4a
xor al, al
jmp 0x14010a65c
mov byte [rsp + 0x30], 1
movzx eax, word [rsp + 0x44]
mov ecx, 1
mov qword [rsp + 0xe8], rcx
movzx ecx, al
mov rax, qword [rsp + 0xe8]
shl rax, cl
dec rax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x98], 0
mov eax, 0x182
mov word [rsp + 0x58], ax
movzx eax, word [rsp + 0x188]
and eax, 0x803
test eax, eax
je 0x140109aba
movzx eax, word [rsp + 0x58]
or eax, 1
mov word [rsp + 0x58], ax
mov dword [rsp + 0x60], 0
jmp 0x140109ace
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14010a59a
mov rax, qword [rsp + 0xa8]
cmp qword [rsp + 0x78], rax
jae 0x14010a59a
movzx eax, word [rsp + 0x190]
cmp dword [rsp + 0x60], eax
jg 0x14010a59a
cmp dword [rsp + 0x60], 0
jle 0x140109b26
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x98]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
movzx eax, word [rsp + 0x190]
cmp dword [rsp + 0x60], eax
jge 0x140109b66
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x48], rax
movzx eax, word [rsp + 0x188]
and eax, 0x800
test eax, eax
je 0x140109b64
jmp 0x140109ac4
jmp 0x140109b73
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x38]
and eax, 0x400
test eax, eax
je 0x140109bb9
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax + 0x20]
test eax, eax
je 0x140109bb2
movzx eax, word [rsp + 0x188]
and eax, 0x280
cmp eax, 0x80
je 0x140109bb2
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x78], rax
jmp 0x14010a59a
movzx eax, word [rsp + 0x188]
and eax, 0x80
test eax, eax
je 0x140109bd5
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x1e], ax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x48]
movzx ecx, byte [rcx + 0x10]
imul rcx, rcx, 0x68
mov eax, dword [rax + rcx + 0x4c]
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x34], 0
jmp 0x140109c0d
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movzx eax, word [rsp + 0x44]
cmp dword [rsp + 0x34], eax
jge 0x140109e65
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov qword [rsp + 0xf0], rcx
movzx ecx, al
mov rax, qword [rsp + 0xf0]
shl rax, cl
and rax, qword [rsp + 0x78]
test rax, rax
je 0x140109c47
jmp 0x140109c03
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x178]
mov rcx, qword [rcx + rax + 8]
call fcn.140081950
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140109c71
jmp 0x140109c03
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 0xa7
je 0x140109c94
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 0xa9
je 0x140109c94
jmp 0x140109c03
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x88]
cmp dword [rax + 0x2c], ecx
je 0x140109caa
jmp 0x140109c03
movzx eax, word [rsp + 0x58]
mov rcx, qword [rsp + 0x98]
not rcx
mov rdx, qword [rsp + 0x170]
add rdx, 0x70
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
mov r9, rcx
mov rax, qword [rsp + 0x68]
mov r8d, dword [rax + 0x30]
mov edx, dword [rsp + 0x88]
mov rax, qword [rsp + 0xf8]
mov rcx, rax
call fcn.1400f84b0
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x140109d16
jmp 0x140109c03
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
cmp eax, 1
jne 0x140109d7c
mov dword [rsp + 0x3c], 0
jmp 0x140109d3b
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x3c]
cmp dword [rsp + 0x3c], eax
jge 0x140109d68
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x48]
mov rax, qword [rcx + rax*8]
cmp qword [rsp + 0x90], rax
je 0x140109d68
jmp 0x140109d31
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x3c]
cmp dword [rsp + 0x3c], eax
jl 0x140109d7c
jmp 0x140109c03
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x14]
and eax, 0x82
test eax, eax
je 0x140109e31
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x30], 0
jl 0x140109e31
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x178]
mov rdx, qword [rcx + rax + 8]
mov rcx, qword [rsp + 0xb0]
call fcn.140081760
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0xb0]
call fcn.14008b480
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x140109e2c
mov rax, qword [rsp + 0xb8]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax]
call fcn.140051c30
test eax, eax
je 0x140109e31
jmp 0x140109c03
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov qword [rsp + 0x108], rcx
movzx ecx, al
mov rax, qword [rsp + 0x108]
shl rax, cl
mov rcx, qword [rsp + 0x78]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
jmp 0x140109c03
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x38]
and eax, 0x1000
test eax, eax
jne 0x14010a464
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x38]
and eax, 0x100
test eax, eax
je 0x140109eb0
mov qword [rsp + 0x70], 0
xor eax, eax
mov word [rsp + 0x84], ax
mov eax, 1
mov word [rsp + 0x80], ax
jmp 0x140109f45
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140109ed8
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x64]
shr eax, 2
and eax, 1
test eax, eax
je 0x140109ee1
xor al, al
jmp 0x14010a65c
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x5e]
mov word [rsp + 0x84], ax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x60]
mov word [rsp + 0x80], ax
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax + 0x62]
test eax, eax
je 0x140109f2e
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x38]
and eax, 0x8000
test eax, eax
jne 0x140109f2e
mov dword [rsp + 0x8c], 1
jmp 0x140109f39
mov dword [rsp + 0x8c], 0
movzx eax, byte [rsp + 0x8c]
mov byte [rsp + 0x30], al
mov byte [rsp + 0x43], 0
movzx eax, byte [rsp + 0x43]
mov byte [rsp + 0x42], al
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x3c], 0
jmp 0x140109f6c
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
movzx eax, word [rsp + 0x80]
cmp dword [rsp + 0x3c], eax
jge 0x14010a456
mov byte [rsp + 0x40], 1
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp dword [rsp + 0x3c], eax
jge 0x14010a064
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x3e]
cmp dword [rsp + 0x3c], eax
jl 0x14010a064
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x48]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax + 0x14]
mov word [rsp + 0x5c], ax
movzx eax, word [rsp + 0x5c]
movzx ecx, word [rsp + 0x58]
and eax, ecx
test eax, eax
je 0x140109fee
movzx eax, word [rsp + 0x5c]
and eax, 0x180
test eax, eax
je 0x140109fe7
mov byte [rsp + 0x30], 0
jmp 0x140109f62
movzx eax, word [rsp + 0x5c]
and eax, 1
test eax, eax
je 0x14010a064
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x48]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax]
mov qword [rsp + 0x110], rax
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x34], eax
jmp 0x14010a02d
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp dword [rsp + 0x34], eax
jge 0x14010a064
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x48]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x110]
cmp qword [rax], rcx
jne 0x14010a062
mov byte [rsp + 0x40], 0
jmp 0x14010a064
jmp 0x14010a023
cmp qword [rsp + 0x70], 0
je 0x14010a0b8
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x54], eax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x38]
movzx eax, byte [rcx + rax]
and eax, 1
mov byte [rsp + 0x41], al
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
movsx eax, word [rax + 0x34]
cmp dword [rsp + 0x54], eax
jne 0x14010a0b6
mov dword [rsp + 0x54], 0xffffffff
jmp 0x14010a0c5
mov dword [rsp + 0x54], 0xffffffff
mov byte [rsp + 0x41], 0
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14010a116
cmp dword [rsp + 0x54], 0
jl 0x14010a10a
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp dword [rsp + 0x3c], eax
jl 0x14010a10a
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
movsxd rcx, dword [rsp + 0x54]
imul rcx, rcx, 0x18
mov rax, qword [rax + 8]
mov eax, dword [rax + rcx + 8]
and eax, 0xf
test eax, eax
jne 0x14010a10a
mov byte [rsp + 0x30], 0
cmp dword [rsp + 0x54], 0xfffffffe
jne 0x14010a116
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
jmp 0x14010a12f
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x14010a2d9
movzx eax, word [rsp + 0x44]
cmp dword [rsp + 0x34], eax
jge 0x14010a2d9
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov qword [rsp + 0x118], rcx
movzx ecx, al
mov rax, qword [rsp + 0x118]
shl rax, cl
and rax, qword [rsp + 0x78]
test rax, rax
je 0x14010a176
jmp 0x14010a125
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x178]
mov rcx, qword [rcx + rax + 8]
call fcn.140081950
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14010a1a0
jmp 0x14010a125
movzx eax, word [rsp + 0x188]
and eax, 0xc0
test eax, eax
jne 0x14010a1b6
mov byte [rsp + 0x40], 0
cmp dword [rsp + 0x54], 0xffffffff
jl 0x14010a20b
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 0xa7
je 0x14010a1e0
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
cmp eax, 0xa9
je 0x14010a1e0
jmp 0x14010a125
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x88]
cmp dword [rax + 0x2c], ecx
je 0x14010a1f6
jmp 0x14010a125
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x54]
cmp dword [rax + 0x30], ecx
je 0x14010a209
jmp 0x14010a125
jmp 0x14010a24d
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x50]
movsxd rcx, dword [rsp + 0x3c]
imul rcx, rcx, 0x20
mov rax, qword [rax + rcx + 8]
mov qword [rsp + 0x120], rax
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x68]
call fcn.1400750a0
test eax, eax
je 0x14010a24d
jmp 0x14010a125
cmp dword [rsp + 0x54], 0xffffffff
je 0x14010a2ad
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x178]
mov rdx, qword [rcx + rax + 8]
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax]
call fcn.140081760
mov qword [rsp + 0x128], rax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x40]
mov rdx, qword [rcx + rax*8]
mov rax, qword [rsp + 0x128]
mov rcx, qword [rax]
call fcn.140051c30
test eax, eax
je 0x14010a2ad
jmp 0x14010a125
movzx eax, word [rsp + 0x188]
and eax, 0x80
test eax, eax
je 0x14010a2cd
mov eax, dword [rsp + 0x3c]
inc eax
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x1e], ax
mov byte [rsp + 0x38], 1
jmp 0x14010a2d9
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x14010a39f
movzx eax, word [rsp + 0x188]
and eax, 0x40
test eax, eax
jne 0x14010a39f
movzx eax, byte [rsp + 0x43]
test eax, eax
je 0x14010a332
movzx eax, byte [rsp + 0x42]
movzx ecx, byte [rsp + 0x41]
xor eax, ecx
movsxd rcx, dword [rsp + 0x34]
imul rcx, rcx, 0x20
mov rdx, qword [rsp + 0x178]
movzx ecx, byte [rdx + rcx + 0x18]
and ecx, 1
cmp eax, ecx
je 0x14010a330
mov byte [rsp + 0x38], 0
jmp 0x14010a39f
movzx eax, byte [rsp + 0x41]
movsxd rcx, dword [rsp + 0x34]
imul rcx, rcx, 0x20
mov rdx, qword [rsp + 0x178]
movzx ecx, byte [rdx + rcx + 0x18]
and ecx, 1
xor eax, ecx
mov byte [rsp + 0x42], al
movzx eax, byte [rsp + 0x42]
test eax, eax
je 0x14010a39a
mov eax, dword [rsp + 0x60]
mov ecx, 1
mov qword [rsp + 0x130], rcx
movzx ecx, al
mov rax, qword [rsp + 0x130]
shl rax, cl
mov rcx, qword [rsp + 0x1a0]
mov rcx, qword [rcx]
or rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x1a0]
mov qword [rcx], rax
mov byte [rsp + 0x43], 1
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x14010a3ef
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x178]
movzx eax, byte [rcx + rax + 0x18]
and eax, 2
test eax, eax
je 0x14010a3ef
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp dword [rsp + 0x3c], eax
jne 0x14010a3ea
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x38]
bts eax, 0x13
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x38], eax
jmp 0x14010a3ef
mov byte [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x14010a435
cmp dword [rsp + 0x54], 0xffffffff
jne 0x14010a404
mov byte [rsp + 0x50], 1
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov qword [rsp + 0x138], rcx
movzx ecx, al
mov rax, qword [rsp + 0x138]
shl rax, cl
mov rcx, qword [rsp + 0x78]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
jmp 0x14010a451
cmp dword [rsp + 0x3c], 0
je 0x14010a44a
movzx eax, word [rsp + 0x84]
cmp dword [rsp + 0x3c], eax
jge 0x14010a44f
mov byte [rsp + 0x30], 0
jmp 0x14010a456
jmp 0x140109f62
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x14010a464
mov byte [rsp + 0x30], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14010a595
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xa0]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x34], 0
jmp 0x14010a4a4
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movzx eax, word [rsp + 0x44]
cmp dword [rsp + 0x34], eax
jge 0x14010a595
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov qword [rsp + 0x140], rcx
movzx ecx, al
mov rax, qword [rsp + 0x140]
shl rax, cl
and rax, qword [rsp + 0x78]
test rax, rax
je 0x14010a4de
jmp 0x14010a49a
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x178]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x170]
add rax, 0x258
mov rdx, qword [rsp + 0xc0]
mov rcx, rax
call fcn.1400fcfa0
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x14010a543
mov rcx, qword [rsp + 0xc0]
call fcn.140076240
test eax, eax
jne 0x14010a543
jmp 0x14010a49a
mov rax, qword [rsp + 0xa0]
not rax
mov rcx, qword [rsp + 0xc8]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x14010a590
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov qword [rsp + 0x148], rcx
movzx ecx, al
mov rax, qword [rsp + 0x148]
shl rax, cl
mov rcx, qword [rsp + 0x78]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
jmp 0x14010a49a
jmp 0x140109ac4
mov rax, qword [rsp + 0xa8]
cmp qword [rsp + 0x78], rax
jne 0x14010a5b3
movzx eax, byte [rsp + 0x44]
jmp 0x14010a65c
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x14010a65a
movzx eax, word [rsp + 0x44]
dec eax
mov dword [rsp + 0x34], eax
jmp 0x14010a5d7
mov eax, dword [rsp + 0x34]
dec eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jle 0x14010a656
cmp dword [rsp + 0x34], 0x40
jge 0x14010a611
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov qword [rsp + 0x150], rcx
movzx ecx, al
mov rax, qword [rsp + 0x150]
shl rax, cl
dec rax
mov qword [rsp + 0xd0], rax
jmp 0x14010a61d
mov qword [rsp + 0xd0], 0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x78]
and rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0xd8]
jne 0x14010a651
movzx eax, byte [rsp + 0x34]
jmp 0x14010a65c
jmp 0x14010a5cd
xor al, al
jmp 0x14010a65c
mov al, 0xff
add rsp, 0x168
ret