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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
movaps xmmword [rsp + 0x140], xmm6
mov eax, dword [rsp + 0x1c0]
mov qword [rsp + 0x1a8], rdx
mov rdx, qword [rcx]
test ax, ax
mov ebx, r9d
mov qword [rsp + 0x1a0], rcx
mov qword [rsp + 0x1b0], r8
mov word [rsp + 0x7e], r9w
mov rdx, qword [rdx]
je 0x140382f48
test byte [rdx + 0x60], 0x40
jne 0x1403833fa
mov rdi, qword [rsp + 0x1a8]
mov esi, dword [rdi]
cmp si, 0x3f
ja 0x1403833fa
mov ecx, esi
mov edx, 1
movzx r10d, si
shl rdx, cl
mov ecx, ebx
and cx, 0x803
cmp cx, 1
sbb r11d, r11d
add r11d, 0x183
cmp cx, 1
sbb edi, edi
add di, 0x183
sub rdx, 1
mov word [rsp + 0x90], di
mov r15, rdx
je 0x1403839ca
xor r13d, r13d
mov qword [rsp + 0x98], r15
xor r9d, r9d
xor ebp, ebp
lea rdi, [0x14024a260]
mov r15d, r10d
mov qword [rsp + 0xa8], 0
mov r10, r13
movq xmm6, rdi
movzx edi, ax
movzx eax, ax
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xb0], edi
lea rdx, [0x140327a20]
mov edi, ebx
and di, 0x800
movq xmm1, rdx
mov qword [rsp + 0xa0], rax
mov word [rsp + 0xb4], di
mov edi, ebx
punpcklqdq xmm6, xmm1
and di, 0x80
mov dword [rsp + 0xc0], esi
mov word [rsp + 0x94], di
mov edi, ebx
and edi, 0x40
mov dword [rsp + 0xc8], r11d
mov word [rsp + 0x96], di
lea rdi, [0x14047c700]
mov dword [rsp + 0xcc], ebx
jmp 0x14038306e
mov rax, qword [rsp + 0x98]
cmp r10, rax
jae 0x140383c51
cmp qword [rsp + 0xa0], r9
lea rax, [r9 + 1]
je 0x140383c5e
mov r9, rax
test r9, r9
mov eax, r9d
je 0x140383082
mov rbx, qword [rbp + 8]
or qword [rsp + 0xa8], rbx
cmp dword [rsp + 0xb0], eax
jle 0x14038398f
mov rax, qword [rsp + 0x1b0]
cmp word [rsp + 0xb4], 0
mov rax, qword [rax + 0x18]
mov rbp, qword [rax + r9*8]
jne 0x140383048
mov eax, dword [rbp + 0x38]
test ah, 4
jne 0x1403839a3
cmp word [rsp + 0x94], 0
je 0x1403830c9
xor r13d, r13d
mov word [rbp + 0x1e], r13w
movzx edx, byte [rbp + 0x10]
mov rsi, qword [rsp + 0x1a0]
imul rdx, rdx, 0x68
add rdx, qword [rsi + 8]
test r15d, r15d
mov esi, dword [rdx + 0x4c]
mov dword [rsp + 0x30], esi
je 0x14038347e
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x28], rbp
xor r13d, r13d
mov qword [rsp + 0x38], r9
lea rbx, [rax + 8]
mov rbp, rbx
mov qword [rsp + 0x40], rbx
mov rbx, r10
jmp 0x140383129
add r13d, 1
add rbp, 0x20
cmp r15d, r13d
je 0x1403832bc
mov rsi, rbx
mov ecx, r13d
shr rsi, cl
and esi, 1
jne 0x140383118
mov rdx, qword [rbp]
test rdx, rdx
je 0x140383118
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x14038316c
test eax, 0x80000
je 0x140383420
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140383118
mov eax, dword [rdx + 4]
test eax, 0x82000
jne 0x14038314a
movzx eax, byte [rdx]
add eax, 0x59
test al, 0xfd
jne 0x140383118
mov eax, dword [rsp + 0x30]
cmp dword [rdx + 0x2c], eax
jne 0x140383118
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x58], rdx
mov r12d, 0x101
not rax
mov qword [rsp + 0x48], rax
movzx eax, word [rdx + 0x30]
mov rdx, qword [rsp + 0x1a0]
mov byte [rsp + 0xf8], 0
mov dword [rsp + 0xf0], 0
mov word [rsp + 0xf9], r12w
add rdx, 0x70
cmp ax, 0xfffe
movq xmm0, rdx
mov edx, dword [rsp + 0xc8]
punpcklqdq xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
pxor xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
mov dword [rsp + 0xf4], edx
mov edx, dword [rsp + 0x30]
mov dword [rsp + 0xfc], edx
je 0x140383118
lea r12, [rsp + 0xd0]
mov word [rsp + 0x128], ax
mov rcx, r12
call fcn.140384d30
test rax, rax
je 0x140383118
mov rdx, qword [rsp + 0x58]
mov dword [rsp + 0x50], r13d
xor r14d, r14d
mov r13, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdx
nop
mov rdx, qword [rax + 0x28]
test r13, rdx
jne 0x14038325f
test rdx, rdx
jne 0x140383258
test byte [rax + 0x14], 0x82
jne 0x140383a64
test r14, r14
cmove r14, rax
mov rcx, r12
call fcn.140384d30
test rax, rax
jne 0x140383240
test r14, r14
mov r13d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
je 0x140383118
movzx eax, word [r14 + 0x14]
cmp ax, 1
je 0x140383a80
test al, 0x82
je 0x14038329d
cmp word [rdx + 0x30], 0
jns 0x140383ad1
mov ecx, r13d
mov eax, 1
add r13d, 1
shl rax, cl
add rbp, 0x20
or rbx, rax
cmp r15d, r13d
jne 0x140383129
mov rbp, qword [rsp + 0x28]
mov r10, rbx
mov r9, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov eax, dword [rbp + 0x38]
test ah, 0x10
je 0x140383487
mov rsi, qword [rbp + 8]
or qword [rsp + 0xb8], rsi
mov rax, qword [rsp + 0xb8]
mov rsi, rbx
xor ebx, ebx
mov qword [rsp + 0x38], rbp
mov r13, qword [rsp + 0x1a0]
mov rbp, rsi
mov r12d, 1
mov rsi, r10
movabs r14, 0x20000000ff
mov qword [rsp + 0x40], r9
not rax
mov qword [rsp + 0x30], rax
jmp 0x140383376
mov rax, qword [rdx]
and rax, r14
cmp rax, 0xa7
je 0x140383a17
test dword [rdx + 4], 0x810000
jne 0x140383432
lea rcx, [r13 + 0x258]
mov qword [rsp + 0x28], rdx
call fcn.14034b870
mov rdx, qword [rsp + 0x28]
test rax, rax
je 0x140383432
test qword [rsp + 0x30], rax
je 0x140383385
add ebx, 1
add rbp, 0x20
cmp r15d, ebx
je 0x14038339c
bt rsi, rbx
jb 0x14038336a
mov rdx, qword [rbp]
test rdx, rdx
jne 0x140383325
mov rax, r12
mov ecx, ebx
shl rax, cl
or rsi, rax
add ebx, 1
add rbp, 0x20
cmp r15d, ebx
jne 0x140383376
mov rbp, qword [rsp + 0x38]
mov r10, rsi
mov r9, qword [rsp + 0x40]
jmp 0x140383048
mov rbp, r15
mov r15d, r9d
mov r9, qword [rsp + 0x88]
mov r10, r14
mov ebx, eax
or byte [rsp + 0x48], bl
cmp byte [rsp + 0x48], 0
jne 0x1403836e5
mov r13, r10
mov r10d, r15d
mov r15, qword [rsp + 0x98]
mov esi, dword [rsp + 0xc0]
cmp r13, r15
je 0x1403839ca
lea ecx, [r10 - 1]
test ecx, ecx
jg 0x140383b88
xor eax, eax
movaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x140383140
jmp 0x140383118
mov eax, 1
movups xmmword [rsp + 0xd8], xmm6
lea rcx, [rsp + 0xd0]
mov word [rsp + 0xf4], ax
mov dword [rsp + 0xf8], 0
call fcn.14037ba20
cmp word [rsp + 0xf4], 0
je 0x14038336a
mov rax, r12
mov ecx, ebx
shl rax, cl
or rsi, rax
jmp 0x140383390
test ah, 0x10
jne 0x140383be2
test ah, 1
jne 0x1403839fb
mov r14, qword [rbp + 0x20]
test r14, r14
je 0x1403833fa
test byte [r14 + 0x64], 4
jne 0x1403833fa
movzx ebx, byte [r14 + 0x62]
movzx esi, word [r14 + 0x60]
movzx r13d, word [r14 + 0x5e]
test bl, bl
mov byte [rsp + 0x48], bl
mov word [rsp + 0x6e], si
je 0x140383ac0
shr eax, 0xf
xor eax, 1
and eax, 1
test si, si
mov byte [rsp + 0x48], al
je 0x1403833c5
mov rax, qword [rsp + 0x1a8]
xor ebx, ebx
mov r11, r14
xor r8d, r8d
mov dword [rsp + 0xc4], r9d
mov r14, r10
mov qword [rsp + 0x88], r9
mov r9d, r15d
mov r15, rbp
mov byte [rsp + 0xb7], 0
add rax, 8
mov byte [rsp + 0xb6], 0
mov qword [rsp + 0x70], rax
mov eax, ebx
mov word [rsp + 0x92], r13w
jmp 0x14038357d
movzx r10d, word [r15 + 0x3e]
cmp r10d, r8d
jg 0x14038358a
mov rbx, qword [r15 + 0x48]
mov rsi, qword [rbx + r8*8]
movzx r10d, word [rsi + 0x14]
test word [rsp + 0x90], r10w
je 0x1403838f3
movzx esi, byte [rsp + 0x48]
xor edx, edx
test r10w, 0x180
cmovne esi, edx
mov byte [rsp + 0x48], sil
movzx edx, word [rsp + 0x6e]
add r8, 1
cmp edx, r8d
jle 0x1403833ae
movzx ecx, word [r15 + 0x18]
mov edx, r8d
cmp ecx, r8d
jg 0x140383530
test r9d, r9d
setg r13b
test r11, r11
je 0x140383942
mov rbx, qword [r11 + 0x38]
mov dword [rsp + 0x28], 0xffffffff
mov r10, qword [r11 + 8]
mov rsi, qword [r11 + 0x18]
movzx ebx, byte [rbx + r8]
movsx r10, word [r10 + r8*2]
and ebx, 1
cmp r10w, word [rsi + 0x34]
je 0x1403835f8
cmp byte [rsp + 0x48], 0
movsx ebp, r10w
mov dword [rsp + 0x28], ebp
je 0x1403835f8
test ebp, ebp
js 0x1403839d8
cmp ecx, edx
jg 0x1403835f8
lea rcx, [r10 + r10*2]
mov r10, qword [rsi + 8]
lea rcx, [r10 + rcx*8]
test byte [rcx + 8], 0xf
setne byte [rsp + 0x48]
nop word [rax + rax]
test r13b, r13b
mov dword [rsp + 0x40], r8d
je 0x14038395a
movzx r10d, word [rsp + 0x7e]
mov qword [rsp + 0x60], r15
xor esi, esi
mov r15, r14
mov r12, qword [rsp + 0x70]
mov byte [rsp + 0x6d], al
mov r14d, r9d
mov qword [rsp + 0x38], r11
mov byte [rsp + 0x7d], bl
and r10w, 0xc0
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x78], edx
jmp 0x140383651
add esi, 1
add r12, 0x20
cmp r14d, esi
jle 0x1403836a8
test bpl, bpl
je 0x1403836a8
mov rbx, r15
mov ecx, esi
mov ebp, r13d
shr rbx, cl
and ebx, 1
jne 0x140383640
mov rdx, qword [r12]
test rdx, rdx
mov rcx, rdx
je 0x140383640
nop dword [rax]
mov eax, dword [rcx + 4]
test eax, 0x82000
je 0x14038372b
test eax, 0x80000
je 0x140383710
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140383670
add esi, 1
add r12, 0x20
mov ebp, r13d
cmp r14d, esi
jg 0x14038364c
nop dword [rax]
movzx ebx, byte [rsp + 0x6d]
mov r10, r15
mov r15d, r14d
mov rbp, qword [rsp + 0x60]
movzx r13d, word [rsp + 0x92]
mov r9, qword [rsp + 0x88]
mov esi, dword [rsp + 0x40]
test esi, esi
je 0x1403836dd
movzx eax, r13w
cmp eax, esi
jle 0x1403833c1
test bl, bl
je 0x1403833d0
mov rsi, qword [rbp + 8]
or qword [rsp + 0xb8], rsi
test r15d, r15d
je 0x140383048
mov rax, qword [rsp + 0x1a8]
lea rbx, [rax + 8]
jmp 0x1403832e6
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140383696
mov eax, dword [rcx + 4]
test eax, 0x82000
jne 0x14038367e
test r10w, r10w
setne bpl
cmp dword [rsp + 0x28], 0xffffffff
jl 0x1403838b8
movzx eax, byte [rcx]
add eax, 0x59
test al, 0xfd
jne 0x140383640
mov eax, dword [rsp + 0x30]
cmp dword [rcx + 0x2c], eax
jne 0x140383640
movsx eax, word [rcx + 0x30]
mov ecx, dword [rsp + 0x28]
cmp eax, ecx
jne 0x140383640
cmp dword [rsp + 0x28], 0xffffffff
je 0x1403837da
mov rax, qword [rsp + 0x1a0]
mov dword [rsp + 0x58], r10d
mov rax, qword [rax]
mov rcx, rax
mov qword [rsp + 0x80], rax
call fcn.1402ed910
mov r10d, dword [rsp + 0x58]
test rax, rax
je 0x14038397b
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rdx + 0x40]
mov r8, qword [rdx + rcx*8]
mov rcx, qword [rax]
jmp 0x1403837c9
movzx edx, byte [rdi + rdx]
cmp byte [rdi + rax], dl
jne 0x140383640
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x1403837b8
test eax, eax
jne 0x1403837c5
cmp word [rsp + 0x94], 0
mov r9d, r14d
mov r14, r15
movzx eax, byte [rsp + 0x6d]
mov r15, qword [rsp + 0x60]
mov r11, qword [rsp + 0x38]
movzx ebx, byte [rsp + 0x7d]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x78]
je 0x140383811
lea ecx, [r8 + 1]
mov word [r15 + 0x1e], cx
movsxd rcx, esi
mov r10, qword [rsp + 0x1a8]
shl rcx, 5
cmp word [rsp + 0x96], 0
movzx r10d, byte [r10 + rcx + 0x18]
jne 0x140383878
mov ecx, r10d
and ecx, 1
cmp byte [rsp + 0xb6], 0
jne 0x1403839e7
mov ebp, ebx
mov byte [rsp + 0xb6], 1
xor ebp, ecx
cmp bl, cl
mov byte [rsp + 0xb7], bpl
je 0x140383878
movzx ecx, byte [rsp + 0xc4]
mov ebx, 1
shl rbx, cl
mov rcx, qword [rsp + 0x1d0]
or qword [rcx], rbx
and r10d, 2
je 0x140383893
movzx ecx, word [r15 + 0x18]
cmp ecx, edx
jne 0x14038395a
or dword [r15 + 0x38], 0x80000
cmp dword [rsp + 0x28], 0xffffffff
mov edx, 1
mov ecx, esi
cmove eax, edx
mov edx, 1
shl rdx, cl
or r14, rdx
jmp 0x14038356b
mov rdx, qword [rsp + 0x38]
mov dword [rsp + 0x58], r10d
movsxd rax, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
shl rax, 5
add rax, qword [rdx + 0x50]
mov rdx, qword [rax + 8]
call fcn.1402edfd0
mov r10d, dword [rsp + 0x58]
test eax, eax
jne 0x140383640
mov rdx, qword [r12]
jmp 0x140383770
test r9d, r9d
setg r13b
and r10d, 1
je 0x140383591
lea r10d, [r8 + 1]
mov rbp, qword [rsi]
cmp ecx, r10d
jle 0x140383591
lea r10, [r8 + 1]
jmp 0x14038392d
add r10, 1
cmp ecx, r10d
jle 0x140383591
mov rsi, qword [rbx + r10*8]
cmp qword [rsi], rbp
jne 0x140383920
xor r13d, r13d
test r11, r11
jne 0x14038359a
xor ebx, ebx
test r13b, r13b
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], 0xffffffff
jne 0x140383606
mov rbp, r15
mov r10, r14
mov r15d, r9d
mov r9, qword [rsp + 0x88]
movzx r13d, word [rsp + 0x92]
mov ebx, eax
jmp 0x1403836c9
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
jmp 0x14038379e
mov rbp, qword [rsp + 0x1c8]
mov eax, dword [rbp + 0x38]
test ah, 4
je 0x1403830b6
cmp byte [rbp + 0x20], 0
mov esi, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xcc]
je 0x140383c5e
and bx, 0x280
add bx, 0xff80
je 0x140383c5e
mov eax, esi
jmp 0x1403833fc
cmp dword [rsp + 0x28], 0xfffffffe
setne byte [rsp + 0x48]
jmp 0x1403835f8
xor bl, byte [rsp + 0xb7]
cmp bl, cl
jne 0x14038395a
jmp 0x140383878
mov r11d, 1
xor r14d, r14d
xor r13d, r13d
mov byte [rsp + 0x48], 1
mov word [rsp + 0x6e], r11w
jmp 0x1403834de
mov eax, dword [rdx + 0x2c]
cmp eax, dword [r13 + 0x260]
je 0x140383bd8
mov r9d, dword [r13 + 0x25c]
mov ecx, 1
cmp r9d, 1
jg 0x140383a4d
jmp 0x140383432
add rcx, 1
cmp rcx, r9
je 0x140383432
cmp eax, dword [r13 + rcx*4 + 0x260]
jne 0x140383a40
mov eax, 1
shl rax, cl
jmp 0x140383363
mov r14, rax
mov r13d, dword [rsp + 0x50]
movzx eax, word [r14 + 0x14]
mov rdx, qword [rsp + 0x48]
cmp ax, 1
jne 0x14038328e
mov rax, qword [rsp + 0x28]
movzx ecx, word [rax + 0x3c]
test ecx, ecx
je 0x140383118
mov rdx, qword [rax + 0x48]
xor eax, eax
jmp 0x140383aa8
add eax, 1
add rdx, 8
cmp ecx, eax
je 0x140383118
cmp qword [rdx], r14
jne 0x140383a99
cmp ecx, eax
jg 0x14038329d
jmp 0x140383118
cmp word [rsp + 0x6e], 0
jne 0x1403834de
jmp 0x1403833d0
mov rax, qword [rsp + 0x1a0]
mov rdx, qword [rbp]
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
call fcn.1402ed910
mov rcx, qword [rsp + 0x48]
test rax, rax
mov r12, rax
je 0x140383bf3
mov rax, qword [r14]
test byte [rax + 5], 4
mov r14, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
je 0x140383b94
test byte [r14 + 5], 2
jne 0x140383bc2
test r9, r9
je 0x140383b2b
test byte [r9 + 5], 2
jne 0x140383c44
mov rdx, r14
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], rcx
call fcn.1402ed910
mov rcx, qword [rsp + 0x48]
test rax, rax
mov r9, qword [rsp + 0x50]
je 0x140383c44
mov r9, qword [rax]
lea rcx, [0x14047c700]
mov r12, qword [r12]
jmp 0x140383b71
movzx edx, byte [rcx + rdx]
cmp byte [rcx + rax], dl
jne 0x140383118
add rsi, 1
movzx eax, byte [r12 + rsi]
movzx edx, byte [r9 + rsi]
cmp eax, edx
jne 0x140383b60
test eax, eax
jne 0x140383b6d
jmp 0x14038329d
cmp ecx, 0x3f
jle 0x140383bff
mov eax, ecx
jmp 0x1403833fc
test byte [r9 + 5], 2
jne 0x140383c44
test r14, r14
je 0x140383bab
test byte [r14 + 5], 2
jne 0x140383bc2
mov rdx, r9
mov qword [rsp + 0x48], rcx
call fcn.1402ed910
mov rcx, qword [rsp + 0x48]
test rax, rax
jne 0x140383b50
mov rdx, r14
call fcn.1402ed910
test rax, rax
je 0x140383118
jmp 0x140383b50
mov eax, 1
jmp 0x140383363
mov rsi, qword [rbp + 8]
or qword [rsp + 0xb8], rsi
jmp 0x140383048
mov rax, qword [rcx]
mov r12, qword [rax + 0x10]
jmp 0x140383afb
mov eax, 1
mov rdx, r13
shl rax, cl
not rdx
sub rax, 1
test rdx, rax
je 0x140383b8d
mov edx, 1
sub ecx, 1
je 0x1403833fa
mov rax, rdx
mov r8, r13
shl rax, cl
not r8
sub rax, 1
test r8, rax
jne 0x140383c1f
mov eax, ecx
jmp 0x1403833fc
mov rdx, r9
call fcn.1402ed910
jmp 0x140383bca
mov esi, dword [rsp + 0xc0]
je 0x1403839ca
mov eax, 0xffffffff
jmp 0x1403833fc