Function at 0x1402a89b0
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
push rdi
sub rsp, 0x140
mov rdi, rsp
mov ecx, 0x50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x150]
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x150]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 0
movzx eax, word [rsp + 0x170]
test eax, eax
je 0x1402a8a35
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 0x5c]
and eax, 0x40
test eax, eax
je 0x1402a8a35
xor al, al
jmp 0x1402a953d
mov rax, qword [rsp + 0x158]
movzx eax, word [rax]
mov word [rsp + 0x44], ax
movzx eax, word [rsp + 0x44]
cmp eax, 0x3f
jle 0x1402a8a56
xor al, al
jmp 0x1402a953d
mov byte [rsp + 0x33], 1
movzx eax, word [rsp + 0x44]
mov ecx, 1
mov qword [rsp + 0xe0], rcx
movzx ecx, al
mov rax, qword [rsp + 0xe0]
shl rax, cl
dec rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov eax, 0x182
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x168]
and eax, 0x800
test eax, eax
je 0x1402a8ac6
movzx eax, word [rsp + 0x38]
or eax, 1
mov word [rsp + 0x38], ax
mov dword [rsp + 0x48], 0
jmp 0x1402a8ada
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
movzx eax, byte [rsp + 0x33]
test eax, eax
je 0x1402a94a1
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x90], rax
jae 0x1402a94a1
movzx eax, word [rsp + 0x170]
cmp dword [rsp + 0x48], eax
jg 0x1402a94a1
cmp dword [rsp + 0x48], 0
jle 0x1402a8b35
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xa8]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
movzx eax, word [rsp + 0x170]
cmp dword [rsp + 0x48], eax
jge 0x1402a8b78
lfence
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x160]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x60], rax
movzx eax, word [rsp + 0x168]
and eax, 0x800
test eax, eax
je 0x1402a8b76
jmp 0x1402a8ad0
jmp 0x1402a8b85
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
and eax, 0x400
test eax, eax
je 0x1402a8bba
mov rax, qword [rsp + 0x60]
movsx eax, byte [rax + 0x1d]
test eax, eax
je 0x1402a8bb3
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x90], rax
jmp 0x1402a94a1
xor eax, eax
mov rcx, qword [rsp + 0x60]
mov word [rcx + 0x1e], ax
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x60]
movzx ecx, byte [rcx + 0x10]
imul rcx, rcx, 0x78
mov eax, dword [rax + rcx + 0x50]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x4c], 0
jmp 0x1402a8bfa
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
movzx eax, word [rsp + 0x44]
cmp dword [rsp + 0x4c], eax
jge 0x1402a8dd1
mov eax, dword [rsp + 0x4c]
mov ecx, 1
mov qword [rsp + 0xe8], rcx
movzx ecx, al
mov rax, qword [rsp + 0xe8]
shl rax, cl
and rax, qword [rsp + 0x90]
test rax, rax
je 0x1402a8c37
jmp 0x1402a8bf0
movsxd rax, dword [rsp + 0x4c]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x158]
mov rcx, qword [rcx + rax + 8]
call fcn.140252e20
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax]
cmp eax, 0x92
je 0x1402a8c68
jmp 0x1402a8bf0
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x54]
cmp dword [rax + 0x2c], ecx
je 0x1402a8c7b
jmp 0x1402a8bf0
movzx eax, word [rsp + 0x38]
mov rcx, qword [rsp + 0xa8]
not rcx
mov rdx, qword [rsp + 0x70]
movsx edx, word [rdx + 0x30]
mov r8, qword [rsp + 0x150]
add r8, 0x68
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
mov r9, rcx
mov r8d, edx
mov edx, dword [rsp + 0x54]
mov rax, qword [rsp + 0xf0]
mov rcx, rax
call fcn.140295360
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1402a8ce1
jmp 0x1402a8bf0
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x14]
cmp eax, 1
jne 0x1402a8d41
mov dword [rsp + 0x50], 0
jmp 0x1402a8d03
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x2c]
cmp dword [rsp + 0x50], eax
jge 0x1402a8d2d
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rcx + rax*8]
cmp qword [rsp + 0x68], rax
je 0x1402a8d2d
jmp 0x1402a8cf9
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x2c]
cmp dword [rsp + 0x50], eax
jl 0x1402a8d41
jmp 0x1402a8bf0
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x14]
and eax, 0x82
test eax, eax
je 0x1402a8d97
mov rax, qword [rsp + 0x70]
movsx eax, word [rax + 0x30]
test eax, eax
jl 0x1402a8d97
movsxd rax, dword [rsp + 0x4c]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x68]
mov r8, qword [rcx]
mov rcx, qword [rsp + 0x158]
mov rdx, qword [rcx + rax + 8]
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax]
call fcn.140250640
test eax, eax
jne 0x1402a8d97
jmp 0x1402a8bf0
mov eax, dword [rsp + 0x4c]
mov ecx, 1
mov qword [rsp + 0xf8], rcx
movzx ecx, al
mov rax, qword [rsp + 0xf8]
shl rax, cl
mov rcx, qword [rsp + 0x90]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
jmp 0x1402a8bf0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
and eax, 0x1000
test eax, eax
jne 0x1402a9362
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
and eax, 0x100
test eax, eax
je 0x1402a8e19
mov qword [rsp + 0x80], 0
xor eax, eax
mov word [rsp + 0x3c], ax
mov eax, 1
mov word [rsp + 0x40], ax
jmp 0x1402a8ea9
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1402a8e4a
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x64]
shr eax, 2
and eax, 1
test eax, eax
je 0x1402a8e53
xor al, al
jmp 0x1402a953d
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x5e]
mov word [rsp + 0x3c], ax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 0x60]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + 0x62]
test eax, eax
je 0x1402a8e92
mov dword [rsp + 0x100], 1
jmp 0x1402a8e9d
mov dword [rsp + 0x100], 0
movzx eax, byte [rsp + 0x100]
mov byte [rsp + 0x33], al
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x31], al
mov byte [rsp + 0x34], 0
mov dword [rsp + 0x50], 0
jmp 0x1402a8ed0
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
movzx eax, word [rsp + 0x40]
cmp dword [rsp + 0x50], eax
jge 0x1402a9354
mov byte [rsp + 0xb0], 1
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x18]
cmp dword [rsp + 0x50], eax
jge 0x1402a8fdd
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x2e]
cmp dword [rsp + 0x50], eax
jl 0x1402a8fdd
lfence
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax + 0x14]
mov word [rsp + 0xb4], ax
movzx eax, word [rsp + 0xb4]
movzx ecx, word [rsp + 0x38]
and eax, ecx
test eax, eax
je 0x1402a8f5e
movzx eax, word [rsp + 0xb4]
and eax, 0x100
test eax, eax
je 0x1402a8f57
mov byte [rsp + 0x33], 0
jmp 0x1402a8ec6
movzx eax, word [rsp + 0xb4]
and eax, 1
test eax, eax
je 0x1402a8fdd
lfence
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x4c], eax
jmp 0x1402a8fa3
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x18]
cmp dword [rsp + 0x4c], eax
jge 0x1402a8fdd
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rsp + 0xb8]
cmp qword [rax], rcx
jne 0x1402a8fdb
mov byte [rsp + 0xb0], 0
jmp 0x1402a8fdd
jmp 0x1402a8f99
cmp qword [rsp + 0x80], 0
je 0x1402a903a
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x38]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x32], al
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
movsx eax, word [rax + 0x44]
cmp dword [rsp + 0x58], eax
jne 0x1402a9038
mov dword [rsp + 0x58], 0xffffffff
jmp 0x1402a9047
mov dword [rsp + 0x58], 0xffffffff
mov byte [rsp + 0x32], 0
movzx eax, byte [rsp + 0x33]
test eax, eax
je 0x1402a908d
cmp dword [rsp + 0x58], 0
jl 0x1402a908d
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x18]
cmp dword [rsp + 0x50], eax
jl 0x1402a908d
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x18]
movsxd rcx, dword [rsp + 0x58]
imul rcx, rcx, 0x20
mov rax, qword [rax + 8]
movzx eax, byte [rax + rcx + 0x18]
test eax, eax
jne 0x1402a908d
mov byte [rsp + 0x33], 0
mov byte [rsp + 0x35], 0
mov dword [rsp + 0x4c], 0
jmp 0x1402a90a6
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
movzx eax, byte [rsp + 0xb0]
test eax, eax
je 0x1402a922a
movzx eax, word [rsp + 0x44]
cmp dword [rsp + 0x4c], eax
jge 0x1402a922a
mov eax, dword [rsp + 0x4c]
mov ecx, 1
mov qword [rsp + 0x108], rcx
movzx ecx, al
mov rax, qword [rsp + 0x108]
shl rax, cl
and rax, qword [rsp + 0x90]
test rax, rax
je 0x1402a90f3
jmp 0x1402a909c
movsxd rax, dword [rsp + 0x4c]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x158]
mov rcx, qword [rcx + rax + 8]
call fcn.140252e20
mov qword [rsp + 0x70], rax
movzx eax, word [rsp + 0x168]
and eax, 0xc0
test eax, eax
jne 0x1402a912c
mov byte [rsp + 0xb0], 0
cmp dword [rsp + 0x58], 0xffffffff
jl 0x1402a9170
mov rax, qword [rsp + 0x70]
movzx eax, byte [rax]
cmp eax, 0x92
je 0x1402a9147
jmp 0x1402a909c
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x54]
cmp dword [rax + 0x2c], ecx
je 0x1402a915a
jmp 0x1402a909c
mov rax, qword [rsp + 0x70]
movsx eax, word [rax + 0x30]
cmp eax, dword [rsp + 0x58]
je 0x1402a916e
jmp 0x1402a909c
jmp 0x1402a91b2
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x50]
movsxd rcx, dword [rsp + 0x50]
imul rcx, rcx, 0x28
mov rax, qword [rax + rcx + 8]
mov qword [rsp + 0xc0], rax
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x70]
call fcn.140250a70
test eax, eax
je 0x1402a91b2
jmp 0x1402a909c
cmp dword [rsp + 0x58], 0xffffffff
je 0x1402a920f
movsxd rax, dword [rsp + 0x4c]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x158]
mov rdx, qword [rcx + rax + 8]
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax]
call fcn.140252bd0
mov qword [rsp + 0x78], rax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x40]
mov rdx, qword [rcx + rax*8]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call fcn.140273540
test eax, eax
je 0x1402a920f
jmp 0x1402a909c
mov eax, dword [rsp + 0x50]
inc eax
mov rcx, qword [rsp + 0x60]
mov word [rcx + 0x1e], ax
mov byte [rsp + 0x35], 1
jmp 0x1402a922a
movzx eax, byte [rsp + 0x35]
test eax, eax
je 0x1402a92ea
movzx eax, word [rsp + 0x168]
and eax, 0x40
test eax, eax
jne 0x1402a92ea
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1402a9280
movzx eax, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x32]
xor eax, ecx
movsxd rcx, dword [rsp + 0x4c]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x158]
movzx ecx, byte [rdx + rcx + 0x20]
cmp eax, ecx
je 0x1402a927e
mov byte [rsp + 0x35], 0
jmp 0x1402a92ea
movzx eax, byte [rsp + 0x32]
movsxd rcx, dword [rsp + 0x4c]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x158]
movzx ecx, byte [rdx + rcx + 0x20]
xor eax, ecx
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x1402a92e5
mov eax, dword [rsp + 0x48]
mov ecx, 1
mov qword [rsp + 0x110], rcx
movzx ecx, al
mov rax, qword [rsp + 0x110]
shl rax, cl
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rcx]
or rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x180]
mov qword [rcx], rax
mov byte [rsp + 0x30], 1
movzx eax, byte [rsp + 0x35]
test eax, eax
je 0x1402a9336
cmp dword [rsp + 0x58], 0xffffffff
jne 0x1402a92ff
mov byte [rsp + 0x34], 1
mov eax, dword [rsp + 0x4c]
mov ecx, 1
mov qword [rsp + 0x118], rcx
movzx ecx, al
mov rax, qword [rsp + 0x118]
shl rax, cl
mov rcx, qword [rsp + 0x90]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
jmp 0x1402a934f
cmp dword [rsp + 0x50], 0
je 0x1402a9348
movzx eax, word [rsp + 0x3c]
cmp dword [rsp + 0x50], eax
jge 0x1402a934d
mov byte [rsp + 0x33], 0
jmp 0x1402a9354
jmp 0x1402a8ec6
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x1402a9362
mov byte [rsp + 0x33], 1
movzx eax, byte [rsp + 0x33]
test eax, eax
je 0x1402a949c
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xa0]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x4c], 0
jmp 0x1402a93a2
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
movzx eax, word [rsp + 0x44]
cmp dword [rsp + 0x4c], eax
jge 0x1402a949c
mov eax, dword [rsp + 0x4c]
mov ecx, 1
mov qword [rsp + 0x120], rcx
movzx ecx, al
mov rax, qword [rsp + 0x120]
shl rax, cl
and rax, qword [rsp + 0x90]
test rax, rax
je 0x1402a93df
jmp 0x1402a9398
movsxd rax, dword [rsp + 0x4c]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x158]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x150]
add rax, 0x290
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call fcn.1402951e0
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
jne 0x1402a9444
mov rcx, qword [rsp + 0xc8]
call fcn.140251f70
test eax, eax
jne 0x1402a9444
jmp 0x1402a9398
mov rax, qword [rsp + 0xa0]
not rax
mov rcx, qword [rsp + 0xd0]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x1402a9497
mov eax, dword [rsp + 0x4c]
mov ecx, 1
mov qword [rsp + 0x128], rcx
movzx ecx, al
mov rax, qword [rsp + 0x128]
shl rax, cl
mov rcx, qword [rsp + 0x90]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
jmp 0x1402a9398
jmp 0x1402a8ad0
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x90], rax
jne 0x1402a94bd
movzx eax, byte [rsp + 0x44]
jmp 0x1402a953d
movzx eax, byte [rsp + 0x33]
test eax, eax
jne 0x1402a953b
movzx eax, word [rsp + 0x44]
dec eax
mov dword [rsp + 0x4c], eax
jmp 0x1402a94dd
mov eax, dword [rsp + 0x4c]
dec eax
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jle 0x1402a9537
mov eax, dword [rsp + 0x4c]
mov ecx, 1
mov qword [rsp + 0x130], rcx
movzx ecx, al
mov rax, qword [rsp + 0x130]
shl rax, cl
dec rax
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x90]
and rcx, rax
mov rax, rcx
cmp rax, qword [rsp + 0xd8]
jne 0x1402a9535
movzx eax, byte [rsp + 0x4c]
jmp 0x1402a953d
jmp 0x1402a94d3
xor al, al
jmp 0x1402a953d
mov al, 0xff
add rsp, 0x140
pop rdi
ret