Function at 0x14039c1d0
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, 0x98
mov rdi, qword [rsp + 0x118]
mov esi, dword [rsp + 0x110]
mov dword [rdx], 1
lea rax, [rsp + 0x60]
lea r13, [rsp + 0x6c]
mov rbx, rdx
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x64]
mov qword [rsp + 0xe0], rcx
mov rcx, rax
mov dword [rsp + 0xf0], r8d
lea r8, [rsp + 0x68]
mov dword [rsp + 0xf8], r9d
mov r9, r13
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x58], r8
call fcn.14039a800
mov eax, dword [rsp + 0x64]
mov r10d, dword [rsp + 0x6c]
mov dword [rsp + 0x44], 1
mov edx, eax
shr edx, 0x18
mov dword [rbx + 4], edx
and r10d, 0x10000000
je 0x14039c2c8
shr eax, 0x10
movzx eax, al
sub eax, 1
mov r10d, eax
je 0x14039c2c8
test eax, 0xffff0000
jne 0x14039ca20
mov ecx, 1
test al, 0xf0
jne 0x14039ca2b
test r10b, 0xc
je 0x14039c2ab
shr r10d, 2
add ecx, 2
and r10d, 2
je 0x14039c2b4
add ecx, 1
mov eax, 1
shl eax, cl
mov dword [rsp + 0x44], eax
lea r10d, [rax - 1]
and r10d, edx
shr edx, cl
mov eax, dword [rsp + 0x60]
mov dword [rbx + 8], edx
mov r11d, esi
and r11d, 0xfffffffd
mov edx, eax
mov ecx, eax
mov dword [rsp + 0x3c], r11d
shr edx, 8
shr ecx, 4
and edx, 0xf
and ecx, 0xf
cmp edx, 0xf
jne 0x14039c300
mov r8d, 0xb
bt r8, rsi
jb 0x14039c9f0
mov dword [rbx + 0x88], edx
test esi, esi
jne 0x14039c4c8
mov r8d, 0x8040
bt r8, rdx
jb 0x14039c4f0
and eax, 0xf
mov dword [rbx + 0x84], ecx
mov dword [rbx + 0x80], eax
mov qword [rsp + 0x20], rdi
lea r14, [rsp + 0x80]
lea rbp, [rsp + 0x88]
lea r12, [rsp + 0x8c]
mov r9, rbp
mov rcx, r14
mov dword [rsp + 0x40], r10d
lea r15, [rsp + 0x84]
mov r8, r12
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov rdx, r15
call fcn.14039a800
mov r8, qword [rsp + 0x84]
mov r10d, dword [rsp + 0x40]
cmp dword [rsp + 0x100], 0x80000003
mov qword [rbx + 0x40], r8
mov r8d, dword [rsp + 0x8c]
mov dword [rbx + 0x48], r8d
ja 0x14039c918
cmp dword [rsp + 0x3c], 1
je 0x14039c5a0
cmp dword [rsp + 0xf8], 3
ja 0x14039c550
mov r9d, dword [rsp + 0x3c]
test esi, esi
sete al
test r9d, r9d
je 0x14039c620
cmp dword [rsp + 0x100], 0x80000007
jbe 0x14039c3f9
mov rax, qword [rsp + 0x108]
test byte [rax + 0x12], 0x20
je 0x14039ca37
mov rax, qword [rsp + 0x108]
test byte [rax + 0x1a], 0x40
jne 0x14039cd70
cmp dword [rsp + 0xf8], 0xa
jbe 0x14039c42c
cmp esi, 2
ja 0x14039c42c
mov rax, qword [rsp + 0x108]
test byte [rax + 0x12], 0x20
jne 0x14039ceb0
mov dword [rbx + 0x34], 0
cmp dword [rsp + 0x3c], 1
mov qword [rbx + 0x38], 0
setne byte [rsp + 0x3c]
mov rax, qword [rsp + 0x108]
test byte [rax + 0x1a], 0x40
jne 0x14039cbe0
cmp dword [rsp + 0x100], 0x80000005
ja 0x14039cde0
cmp dword [rsp + 0xf8], 3
ja 0x14039c9e0
mov r12d, dword [rbx + 4]
nop word [rax + rax]
mov rax, qword [rsp + 0xe0]
mov edx, r12d
mov r13, qword [rax + 8]
mov rcx, r13
call fcn.140385150
test eax, eax
je 0x14039c9c8
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x10], 0
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp dword [rsp + 0x3c], 1
jne 0x14039c4d4
cmp edx, 0xf
je 0x14039c4f0
cmp esi, 2
jne 0x14039c31e
sub edx, 6
cmp edx, 1
ja 0x14039c31e
nop dword [rax]
mov edx, eax
and eax, 0xf
shr edx, 0xc
mov dword [rbx + 0x80], eax
and edx, 0xf0
add edx, ecx
mov dword [rbx + 0x84], edx
test esi, esi
jne 0x14039c32d
cmp dword [rbx + 0x88], 6
jne 0x14039c32d
cmp edx, 0x57
je 0x14039c532
cmp edx, 0x85
jne 0x14039c32d
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x20], 1
jmp 0x14039c32d
mov qword [rsp + 0x20], rdi
mov r8, qword [rsp + 0x58]
mov r9, r13
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x60], 4
mov dword [rsp + 0x68], 0
call fcn.14039a800
mov eax, dword [rsp + 0x60]
test al, 0x1f
je 0x14039c5a0
shr eax, 0x1a
lea ecx, [rax + 1]
mov eax, dword [rsp + 0x44]
cmp eax, ecx
jae 0x14039cefe
nop dword [rax + rax]
cmp dword [rsp + 0xf8], 0x19
jbe 0x14039c3c7
mov rax, qword [rsp + 0x108]
test byte [rax + 0x49], 0x80
je 0x14039c3c7
mov qword [rsp + 0x20], rdi
mov rdx, qword [rsp + 0x50]
mov r9, r13
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x60], 0x1a
mov dword [rsp + 0x68], 0
call fcn.14039a800
mov eax, dword [rsp + 0x60]
mov r9d, dword [rsp + 0x3c]
mov edx, eax
and eax, 0xffffff
shr edx, 0x18
test esi, esi
mov dword [rbx + 0x90], eax
mov dword [rbx + 0x8c], edx
sete al
test r9d, r9d
jne 0x14039c3da
nop dword [rax]
cmp dword [rsp + 0xf8], 0x1e
jbe 0x14039cbb0
test al, al
je 0x14039cbb0
mov r8, rdi
mov edx, 0x1f
lea r13, [rsp + 0x7c]
mov rcx, rbx
call fcn.14039a930
lea rbp, [rsp + 0x78]
lea r14, [rsp + 0x74]
mov dword [rbx + 0x34], 0
mov qword [rbx + 0x38], 0
lea r12, [rsp + 0x70]
xor r15d, r15d
mov dword [rsp + 0x110], esi
mov rsi, rbx
mov ebx, r15d
mov r15, qword [rsp + 0xe0]
jmp 0x14039c6a8
shr eax, 5
mov edx, dword [rsi + 0x34]
and eax, 7
cmp eax, 3
jne 0x14039c69f
mov r8d, dword [r15 + 0x20]
test r8d, r8d
jne 0x14039c6d2
add edx, 1
add ebx, 1
mov dword [rsi + 0x34], edx
mov qword [rsp + 0x20], rdi
mov r9, r13
mov r8, rbp
mov rdx, r14
mov rcx, r12
mov dword [rsp + 0x70], 4
mov dword [rsp + 0x78], ebx
call fcn.14039a800
mov eax, dword [rsp + 0x70]
test al, 0x1f
jne 0x14039c688
mov rbx, rsi
mov esi, dword [rsp + 0x110]
mov eax, dword [rbx + 0x34]
mov rcx, qword [rbx + 0x38]
lea rdx, [rax + rax*4]
shl rdx, 3
call fcn.14042d7a8
test rax, rax
je 0x14039cf80
mov edx, dword [rsp + 0x3c]
mov qword [rbx + 0x38], rax
xor r15d, r15d
mov qword [rsp + 0xe8], rbx
mov ebx, r15d
mov r15, qword [rsp + 0xe0]
lea rdx, [rdx + rdx*4]
mov dword [rsp + 0x110], esi
mov rsi, r13
mov r13, rbp
lea rax, [rax + rdx*8]
mov rbp, rdi
mov rdi, rax
jmp 0x14039c7e8
mov edx, r8d
mov ecx, dword [r15 + 0x20]
shr edx, 5
and edx, 7
test ecx, ecx
je 0x14039c75a
cmp edx, 3
je 0x14039c81b
cmp eax, 1
je 0x14039c76a
cmp eax, 2
sete al
movzx eax, al
add eax, eax
mov dword [rdi], eax
mov eax, r8d
shr eax, 0xe
mov dword [rdi + 4], edx
and eax, 0xfff
add eax, 1
mov dword [rdi + 8], eax
mov edx, dword [rsp + 0x74]
mov ecx, edx
mov eax, edx
shr edx, 0x16
shr ecx, 0xc
and eax, 0xfff
add edx, 1
and ecx, 0x3ff
add eax, 1
add ecx, 1
and r8d, 0x200
mov r8d, 0xffffffff
mov dword [rdi + 0x10], eax
cmove r8d, edx
mov dword [rdi + 0x14], ecx
imul eax, edx
add rdi, 0x28
add ebx, 1
mov dword [rdi - 0xc], r8d
mov r11d, dword [rsp + 0x78]
lea r8d, [r11 + 1]
imul eax, r8d
mov dword [rdi - 8], r8d
imul eax, ecx
mov dword [rdi - 4], eax
mov eax, dword [rsp + 0x7c]
and eax, 2
mov dword [rdi - 0x10], eax
mov qword [rsp + 0x20], rbp
mov r8, r13
mov r9, rsi
mov rdx, r14
mov rcx, r12
mov dword [rsp + 0x70], 4
mov dword [rsp + 0x78], ebx
call fcn.14039a800
mov r8d, dword [rsp + 0x70]
mov eax, r8d
and eax, 0x1f
jne 0x14039c740
mov rbx, qword [rsp + 0xe8]
mov esi, dword [rsp + 0x110]
mov edx, dword [rbx + 0x34]
mov r12d, dword [rbx + 4]
test edx, edx
je 0x14039c480
mov rax, qword [rbx + 0x38]
sub edx, 1
mov r11d, r12d
mov edi, 0xaaaaaaab
lea rdx, [rdx + rdx*4]
shr r11d, 3
mov ebp, 6
mov r10d, 1
lea r8, [rax + 4]
lea r9, [rax + rdx*8 + 0x2c]
jmp 0x14039c8d6
mov eax, r12d
sub ecx, 1
je 0x14039c8c5
mov eax, 1
test ecx, 0xffff0000
je 0x14039c88d
shr ecx, 0x10
mov eax, 0x11
test ch, 0xff
je 0x14039c898
shr ecx, 8
add eax, 8
test cl, 0xf0
je 0x14039c8a3
shr ecx, 4
add eax, 4
test cl, 0xc
je 0x14039c8ae
shr ecx, 2
add eax, 2
and ecx, 2
jne 0x14039cac8
mov ecx, eax
mov edx, r10d
shl edx, cl
mov eax, edx
neg eax
and eax, r12d
mov dword [r8 + 8], eax
add r8, 0x28
cmp r8, r9
je 0x14039c480
mov ecx, dword [r8 + 4]
mov eax, r12d
xor edx, edx
div ecx
mov dword [r8 + 8], eax
test esi, esi
je 0x14039c870
cmp esi, 1
je 0x14039ca90
cmp esi, 3
jne 0x14039c8c9
cmp dword [rbx + 0x88], 0x18
jne 0x14039c8c9
cmp dword [r8], 3
jne 0x14039c8c9
cmp ecx, 6
jne 0x14039c8c9
mov dword [r8 + 8], r11d
jmp 0x14039c8c9
mov qword [rsp + 0x20], rdi
mov r9, r12
mov r8, rbp
mov rdx, r15
mov qword [rsp + 0x80], 0
mov rcx, r14
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x80], 0x80000002
call fcn.14039a800
mov r9, r12
mov r8, rbp
mov rdx, r15
movdqu xmm0, xmmword [rsp + 0x80]
mov rcx, r14
mov dword [rsp + 0x80], 0x80000003
movups xmmword [rbx + 0x4d], xmm0
mov qword [rsp + 0x20], rdi
call fcn.14039a800
mov r9, r12
mov r8, rbp
mov rdx, r15
movdqu xmm1, xmmword [rsp + 0x80]
mov rcx, r14
mov dword [rsp + 0x80], 0x80000004
movups xmmword [rbx + 0x5d], xmm1
mov qword [rsp + 0x20], rdi
call fcn.14039a800
mov r10d, dword [rsp + 0x40]
movdqu xmm2, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x6d], xmm2
jmp 0x14039c3ae
mov edx, r12d
mov rcx, r13
call fcn.140384c30
jmp 0x14039c4ae
cmp byte [rsp + 0x3c], 0
je 0x14039c476
jmp 0x14039cf5f
mov edx, eax
shr edx, 0x14
movzx edx, dl
add edx, 0xf
mov dword [rbx + 0x88], edx
test esi, esi
je 0x14039c4f0
cmp dword [rsp + 0x3c], 1
je 0x14039c4f0
jmp 0x14039c31e
mov ecx, 0x19
mov r10d, 0xff
shr r10d, 4
add ecx, 4
jmp 0x14039c29e
mov qword [rsp + 0x20], rdi
lea r14, [rsp + 0x74]
lea r12, [rsp + 0x70]
mov rcx, r12
lea r9, [rsp + 0x7c]
lea r8, [rsp + 0x78]
mov rdx, r14
mov dword [rsp + 0x70], 0x80000008
call fcn.14039a800
mov eax, dword [rsp + 0x78]
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
je 0x14039cf14
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, dword [rbx + 4]
xor edx, edx
div ecx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], edx
jmp 0x14039c3f9
mov edx, dword [rbx + 0x88]
cmp edx, 0x16
jbe 0x14039cae0
cmp dword [r8], 3
jne 0x14039c8c9
lea edx, [rcx - 1]
test edx, ecx
je 0x14039c8c5
tzcnt ecx, ecx
mov eax, r12d
add ecx, 2
shr eax, cl
jmp 0x14039c8c5
lea ecx, [rax + 1]
mov eax, r10d
shl eax, cl
neg eax
and eax, r12d
jmp 0x14039c8c5
cmp edx, 0x10
jne 0x14039cb60
cmp dword [rbx + 0x84], 9
jne 0x14039c8c9
cmp dword [r8], 3
jne 0x14039c8c9
mov eax, dword [r8 + 0x18]
cmp eax, 0xffffffff
je 0x14039cb0d
test al, 1
jne 0x14039c8c9
cmp ecx, 7
jbe 0x14039c8c9
mov edx, ecx
shr edx, 1
cmp ecx, 0x10
mov ecx, edx
cmove ecx, ebp
shr dword [r8 + 0x20], 1
mov dword [r8 + 4], ecx
cmp eax, 0xffffffff
je 0x14039cb3c
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [r8 + 0x18], eax
mov eax, r12d
xor edx, edx
div dword [rsp + 0x44]
mov r13d, eax
mov eax, edx
xor edx, edx
div ecx
lea eax, [rax + r13*2]
mov dword [r8 + 8], eax
jmp 0x14039c8c9
cmp edx, 0x15
jne 0x14039c8c9
mov eax, dword [rbx + 0x84]
sub eax, 1
cmp eax, 1
ja 0x14039c8c9
cmp dword [r8], 3
jne 0x14039c8c9
cmp ecx, 6
jne 0x14039c8c9
mov eax, r12d
xor edx, edx
div dword [rsp + 0x44]
imul rdx, rdi
shr rdx, 0x22
lea eax, [rdx + rax*2]
jmp 0x14039c8c5
cmp dword [rsp + 0xf8], 0xa
ja 0x14039cf3e
mov dword [rbx + 0x34], 0
mov qword [rbx + 0x38], 0
mov byte [rsp + 0x3c], 1
jmp 0x14039c468
xor r15d, r15d
lea r13, [rsp + 0x7c]
lea rbp, [rsp + 0x78]
lea r14, [rsp + 0x74]
lea r12, [rsp + 0x70]
jmp 0x14039cc08
add dword [rbx + 0x34], 1
add r15d, 1
mov qword [rsp + 0x20], rdi
mov r9, r13
mov r8, rbp
mov rdx, r14
mov rcx, r12
mov dword [rsp + 0x70], 0x8000001d
mov dword [rsp + 0x78], r15d
call fcn.14039a800
mov r11d, dword [rsp + 0x70]
and r11d, 0x1f
jne 0x14039cc00
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x40], r11d
lea rcx, [rax + rax*4]
shl rcx, 3
call fcn.14042d758
mov qword [rbx + 0x38], rax
mov r15, rax
test rax, rax
je 0x14039cf8c
mov qword [rsp + 0xe8], rbx
mov ebx, dword [rsp + 0x40]
jmp 0x14039cd0e
cmp eax, 1
je 0x14039cc80
cmp eax, 2
sete al
movzx eax, al
add eax, eax
mov edx, dword [rsp + 0x74]
mov r10d, dword [rsp + 0x78]
mov dword [r15], eax
mov eax, r8d
shr eax, 5
and eax, 7
mov ecx, edx
mov dword [r15 + 4], eax
mov eax, r8d
shr ecx, 0xc
shr eax, 0xe
and ecx, 0x3ff
and eax, 0xfff
add ecx, 1
add eax, 1
mov dword [r15 + 0x14], ecx
mov dword [r15 + 8], eax
mov eax, edx
shr edx, 0x16
and eax, 0xfff
add edx, 1
add eax, 1
and r8d, 0x200
mov r8d, 0xffffffff
cmove r8d, edx
mov dword [r15 + 0x10], eax
imul eax, edx
add r15, 0x28
add ebx, 1
mov dword [r15 - 0xc], r8d
lea r8d, [r10 + 1]
imul eax, r8d
mov dword [r15 - 8], r8d
imul eax, ecx
mov dword [r15 - 4], eax
mov eax, dword [rsp + 0x7c]
and eax, 2
mov dword [r15 - 0x10], eax
mov qword [rsp + 0x20], rdi
mov r8, rbp
mov r9, r13
mov rdx, r14
mov rcx, r12
mov dword [rsp + 0x70], 0x8000001d
mov dword [rsp + 0x78], ebx
call fcn.14039a800
mov r8d, dword [rsp + 0x70]
mov eax, r8d
and eax, 0x1f
jne 0x14039cc70
mov rbx, qword [rsp + 0xe8]
cmp dword [rsp + 0xf8], 3
jbe 0x14039c82a
cmp byte [rsp + 0x3c], 0
je 0x14039c82a
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x3c], eax
jmp 0x14039c669
mov qword [rsp + 0x20], rdi
lea r14, [rsp + 0x74]
lea r12, [rsp + 0x70]
mov rdx, r14
lea r9, [rsp + 0x7c]
lea r8, [rsp + 0x78]
mov rcx, r12
mov dword [rsp + 0x70], 0x8000001e
call fcn.14039a800
mov eax, dword [rsp + 0x70]
mov edx, dword [rbx + 0x88]
mov dword [rbx + 4], eax
test byte [rsp + 0xf0], 2
je 0x14039cdc4
cmp edx, 0x16
je 0x14039cee8
movzx eax, byte [rsp + 0x78]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x74]
cmp edx, 0x16
jbe 0x14039cef3
and eax, 0xff
mov dword [rbx + 0xc], eax
jmp 0x14039c40b
mov qword [rsp + 0x20], rdi
lea r13, [rsp + 0x7c]
lea rbp, [rsp + 0x78]
lea r14, [rsp + 0x74]
lea r12, [rsp + 0x70]
mov r9, r13
mov r8, rbp
mov rdx, r14
mov rcx, r12
mov dword [rsp + 0x70], 0x80000005
call fcn.14039a800
mov eax, dword [rsp + 0x78]
mov r9d, 1
mov rcx, rbx
mov r8d, 1
mov edx, 1
mov dword [rsp + 0x20], eax
call fcn.14039a590
mov eax, dword [rsp + 0x7c]
mov r9d, 1
mov rcx, rbx
mov r8d, 2
mov edx, 1
mov dword [rsp + 0x20], eax
call fcn.14039a590
mov qword [rsp + 0x20], rdi
mov r9, r13
mov r8, rbp
mov rdx, r14
mov rcx, r12
mov dword [rsp + 0x70], 0x80000006
call fcn.14039a800
mov eax, dword [rsp + 0x78]
test ah, 0xf0
jne 0x14039cf1f
mov eax, dword [rsp + 0x7c]
test ah, 0xf0
je 0x14039cd49
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x44]
xor r8d, r8d
mov rcx, rbx
mov edx, 3
call fcn.14039a590
jmp 0x14039cd49
mov r8, rdi
mov edx, 0xb
mov rcx, rbx
call fcn.14039a930
mov eax, dword [rsp + 0x3c]
mov dword [rbx + 0x34], 0
mov qword [rbx + 0x38], 0
cmp eax, 1
setne byte [rsp + 0x3c]
test eax, eax
jne 0x14039c445
jmp 0x14039cf5f
mov dword [rbx + 0x10], 0
mov eax, dword [rsp + 0x74]
movzx eax, al
mov dword [rbx + 0x14], eax
jmp 0x14039c40b
xor edx, edx
div ecx
xor edx, edx
mov ecx, eax
mov eax, dword [rsp + 0x40]
div ecx
mov dword [rbx + 0xc], eax
jmp 0x14039c5a0
movzx eax, al
lea ecx, [rax + 1]
jmp 0x14039ca7e
mov dword [rsp + 0x20], eax
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
mov edx, 2
call fcn.14039a590
jmp 0x14039ce7f
mov rax, qword [rsp + 0x108]
test byte [rax + 0x12], 0x20
jne 0x14039ceb0
mov dword [rbx + 0x34], 0
mov qword [rbx + 0x38], 0
mov dword [rsp + 0x3c], 0
lea r13, [rsp + 0x7c]
lea rbp, [rsp + 0x78]
lea r14, [rsp + 0x74]
lea r12, [rsp + 0x70]
jmp 0x14039c669
mov eax, dword [rsp + 0x3c]
mov dword [rbx + 0x34], eax
jmp 0x14039c82a
mov dword [rbx + 0x34], 0
jmp 0x14039cd49