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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
xor eax, eax
mov word [rsp + 0x20], ax
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
je 0x1401033f1
mov byte [rsp + 0x2c], 1
jmp 0x1401033f6
mov byte [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 0xf0]
mov byte [rax + 0x174], 0
mov rax, qword [rsp + 0xf0]
mov dword [rax + 0x170], 0
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x148], 0
je 0x1401034dd
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x168], 0
je 0x1401034dd
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov ecx, dword [rcx + 0x1c]
cmp dword [rax + 0x28], ecx
jg 0x1401034a5
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
movsxd rcx, dword [rcx + 0x28]
add rcx, qword [rax + 0x20]
mov rax, rcx
mov qword [rsp + 0xa8], rax
jmp 0x1401034d2
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
call qword [rax + 0x40]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x1401034e7
mov eax, 0xffffffff
jmp 0x140103ff2
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov ecx, dword [rcx + 0x1c]
cmp dword [rax + 0x28], ecx
jg 0x140103540
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
movsxd rcx, dword [rcx + 0x28]
add rcx, qword [rax + 0x20]
mov rax, rcx
mov qword [rsp + 0xb8], rax
jmp 0x14010356d
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
call qword [rax + 0x40]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
cmp dword [rax + 0x28], 0
jle 0x14010361e
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov ecx, dword [rcx + 0x28]
dec ecx
movsxd rcx, ecx
mov rax, qword [rax + 0x30]
movzx eax, word [rax + rcx*2]
cmp eax, 0xd800
jge 0x14010361e
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov eax, dword [rax + 0x28]
dec eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x28], ecx
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov rcx, qword [rcx + 0x30]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x5c], eax
jmp 0x140103636
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x148]
call fcn.140140360
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x48], 1
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 4]
imul eax, dword [rsp + 0x48]
mov eax, eax
mov rcx, qword [rsp + 0xf8]
lea rax, [rcx + rax + 0x10]
mov qword [rsp + 0x50], rax
mov eax, 3
mov word [rsp + 0x20], ax
mov dword [rsp + 0x34], 1
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 8]
and eax, 2
test eax, eax
je 0x1401036a0
mov eax, 2
mov word [rsp + 0x20], ax
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x28], 0xffffffff
jne 0x140103829
cmp dword [rsp + 0x34], 2
jne 0x140103817
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x44], eax
jge 0x1401036d5
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x3c], 0
jmp 0x140103812
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x24], eax
jne 0x140103812
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
sub rax, qword [rcx + 0x20]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jl 0x14010373a
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
movsxd rax, dword [rax + 0x1c]
cmp qword [rsp + 0x78], rax
jg 0x14010373a
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov ecx, dword [rsp + 0x78]
mov dword [rax + 0x28], ecx
jmp 0x140103756
movsxd rax, dword [rsp + 0x30]
mov rdx, rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x148]
call fcn.1401404c0
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
cmp dword [rax + 0x28], 0
jle 0x1401037f7
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov ecx, dword [rcx + 0x28]
dec ecx
movsxd rcx, ecx
mov rax, qword [rax + 0x30]
movzx eax, word [rax + rcx*2]
cmp eax, 0xd800
jge 0x1401037f7
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov eax, dword [rax + 0x28]
dec eax
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov ecx, dword [rsp + 0x74]
mov dword [rax + 0x28], ecx
movsxd rax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov rcx, qword [rcx + 0x30]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x90], eax
jmp 0x140103812
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x148]
call fcn.140140360
mov dword [rsp + 0x90], eax
jmp 0x140103d95
mov dword [rsp + 0x34], 2
mov eax, 1
mov word [rsp + 0x20], ax
cmp dword [rsp + 0x34], 1
jne 0x140103a30
cmp dword [rsp + 0x28], 0xffff
ja 0x1401038c2
cmp dword [rsp + 0x28], 0xd800
jl 0x140103860
cmp dword [rsp + 0x28], 0xdbff
jg 0x140103860
mov dword [rsp + 0x70], pe_nt_image_headers64
jmp 0x140103868
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x168]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x168]
mov edx, dword [rsp + 0x28]
sar edx, 5
mov r8d, dword [rsp + 0x70]
add r8d, edx
mov edx, r8d
movsxd rdx, edx
mov rcx, qword [rcx + 0x40]
movzx ecx, word [rcx + rdx*2]
mov edx, dword [rsp + 0x28]
and edx, 0x1f
lea ecx, [rdx + rcx*4]
movsxd rcx, ecx
mov rax, qword [rax + 0x40]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x20], ax
jmp 0x1401039f6
cmp dword [rsp + 0x28], 0x10ffff
ja 0x1401039de
mov eax, dword [rsp + 0x28]
sar eax, 0xa
add eax, 0xd7c0
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x168]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x168]
movzx edx, word [rsp + 0x40]
sar edx, 5
movsxd rdx, edx
mov rcx, qword [rcx + 0x40]
movzx ecx, word [rcx + rdx*2]
movzx edx, word [rsp + 0x40]
and edx, 0x1f
lea ecx, [rdx + rcx*4]
movsxd rcx, ecx
mov rax, qword [rax + 0x40]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x168]
mov qword [rsp + 0xd0], rcx
mov ecx, eax
mov rax, qword [rsp + 0xd0]
call qword [rax + 0x50]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jle 0x1401039c4
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x168]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x168]
mov edx, dword [rsp + 0x28]
and edx, 0x3ff
sar edx, 5
mov r8d, dword [rsp + 0x68]
add r8d, edx
mov edx, r8d
movsxd rdx, edx
mov rcx, qword [rcx + 0x40]
movzx ecx, word [rcx + rdx*2]
mov edx, dword [rsp + 0x28]
and edx, 0x3ff
and edx, 0x1f
lea ecx, [rdx + rcx*4]
movsxd rcx, ecx
mov rax, qword [rax + 0x40]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x20], ax
jmp 0x1401039dc
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x168]
movzx eax, word [rax + 0x60]
mov word [rsp + 0x20], ax
jmp 0x1401039f6
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x168]
movzx eax, word [rax + 0x60]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
and eax, 0x4000
test eax, eax
je 0x140103a30
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x178]
inc eax
mov rcx, qword [rsp + 0xf0]
mov dword [rcx + 0x178], eax
movzx eax, word [rsp + 0x20]
btr eax, 0xe
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 8]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 4]
imul eax, dword [rsp + 0x48]
mov eax, eax
mov rcx, qword [rsp + 0xf8]
lea rax, [rcx + rax + 0x10]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsx eax, word [rax]
cmp eax, 0xffffffff
jne 0x140103b09
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov ecx, dword [rcx + 0x1c]
cmp dword [rax + 0x28], ecx
jg 0x140103ad1
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
movsxd rcx, dword [rcx + 0x28]
add rcx, qword [rax + 0x20]
mov rax, rcx
mov qword [rsp + 0xc8], rax
jmp 0x140103afe
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
call qword [rax + 0x40]
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 2]
test eax, eax
je 0x140103c96
cmp dword [rsp + 0x3c], 0
je 0x140103be6
mov rax, qword [rsp + 0x50]
movsx eax, word [rax]
cmp eax, dword [rsp + 0x3c]
jne 0x140103be6
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x3c], 0
movsx eax, byte [rsp + 0x38]
test eax, eax
je 0x140103bdc
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
sub rax, qword [rcx + 0x20]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jl 0x140103bb7
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
movsxd rax, dword [rax + 0x1c]
cmp qword [rsp + 0x88], rax
jg 0x140103bb7
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov ecx, dword [rsp + 0x88]
mov dword [rax + 0x28], ecx
jmp 0x140103bd3
movsxd rax, dword [rsp + 0x24]
mov rdx, rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x148]
call fcn.1401404c0
mov eax, dword [rsp + 0x24]
jmp 0x140103ff2
jmp 0x140103caa
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov ecx, dword [rcx + 0x1c]
cmp dword [rax + 0x28], ecx
jg 0x140103c3f
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
movsxd rcx, dword [rcx + 0x28]
add rcx, qword [rax + 0x20]
mov rax, rcx
mov qword [rsp + 0xb0], rax
jmp 0x140103c6c
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
call qword [rax + 0x40]
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 2]
mov dword [rsp + 0x3c], eax
jmp 0x140103caa
mov rax, qword [rsp + 0x50]
movsx eax, word [rax]
test eax, eax
je 0x140103caa
mov dword [rsp + 0x3c], 0
cmp dword [rsp + 0x48], 0
jne 0x140103cb6
jmp 0x140103d95
cmp dword [rsp + 0x34], 1
jne 0x140103d81
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
cmp dword [rax + 0x28], 0
jle 0x140103d5f
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov ecx, dword [rcx + 0x28]
dec ecx
movsxd rcx, ecx
mov rax, qword [rax + 0x30]
movzx eax, word [rax + rcx*2]
cmp eax, 0xd800
jge 0x140103d5f
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov eax, dword [rax + 0x28]
dec eax
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0x28], ecx
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov rcx, qword [rcx + 0x30]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x64], eax
jmp 0x140103d77
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x148]
call fcn.140140360
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
jmp 0x140103d90
cmp dword [rsp + 0x34], 0
jne 0x140103d90
mov dword [rsp + 0x34], 1
jmp 0x1401036a0
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x24], eax
jne 0x140103f6f
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
sub rax, qword [rcx + 0x20]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jl 0x140103e06
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
movsxd rax, dword [rax + 0x1c]
cmp qword [rsp + 0x98], rax
jg 0x140103e06
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov ecx, dword [rsp + 0x98]
mov dword [rax + 0x28], ecx
jmp 0x140103e22
movsxd rax, dword [rsp + 0x30]
mov rdx, rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x148]
call fcn.1401404c0
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
cmp dword [rax + 0x28], 0
jle 0x140103ec3
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov ecx, dword [rcx + 0x28]
dec ecx
movsxd rcx, ecx
mov rax, qword [rax + 0x30]
movzx eax, word [rax + rcx*2]
cmp eax, 0xd800
jge 0x140103ec3
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov eax, dword [rax + 0x28]
dec eax
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov ecx, dword [rsp + 0x6c]
mov dword [rax + 0x28], ecx
movsxd rax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov rcx, qword [rcx + 0x30]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0xa4], eax
jmp 0x140103ede
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x148]
call fcn.140140360
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
mov ecx, dword [rcx + 0x1c]
cmp dword [rax + 0x28], ecx
jg 0x140103f37
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
movsxd rcx, dword [rcx + 0x28]
add rcx, qword [rax + 0x20]
mov rax, rcx
mov qword [rsp + 0xc0], rax
jmp 0x140103f64
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
call qword [rax + 0x40]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xf0]
mov rcx, qword [rcx + 0x148]
sub rax, qword [rcx + 0x20]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jl 0x140103fd2
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
movsxd rax, dword [rax + 0x1c]
cmp qword [rsp + 0x80], rax
jg 0x140103fd2
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x148]
mov ecx, dword [rsp + 0x80]
mov dword [rax + 0x28], ecx
jmp 0x140103fee
movsxd rax, dword [rsp + 0x24]
mov rdx, rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x148]
call fcn.1401404c0
mov eax, dword [rsp + 0x24]
add rsp, 0xe8
ret