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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x108
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x70]
and eax, 2
test eax, eax
je 0x14006d1a5
mov dword [rsp + 0x68], 0xffffffff
mov eax, dword [rsp + 0x68]
jmp 0x14006d762
mov dword [rsp + 0x6c], 0xffffffff
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0x6c], eax
jne 0x14006d1c4
mov dword [rsp + 0x3c], 1
jmp 0x14006d1cc
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x14006d23a
mov dword [rsp + 0x70], 0xffffffff
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x128], eax
je 0x14006d200
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x44], eax
jmp 0x14006d229
mov dword [rsp + 0x74], 0xffffffff
cmp dword [rsp + 0x74], 0
jne 0x14006d219
mov dword [rsp + 0x40], 1
jmp 0x14006d221
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
jmp 0x14006d762
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x58]
movsxd rcx, dword [rcx]
add rcx, qword [rax]
mov rax, rcx
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x58], 0
je 0x14006d340
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x58], rax
jae 0x14006d340
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x128]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
inc rax
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
mov rax, qword [rsp + 0x58]
inc rax
mov rcx, qword [rsp + 0x120]
mov qword [rcx + 0x68], rax
mov eax, dword [rsp + 0x128]
jmp 0x14006d762
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x58], 0
je 0x14006d37d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x20
jae 0x14006d390
mov qword [rsp + 0x60], 0x20
jmp 0x14006d3d1
cmp qword [rsp + 0x30], 0x3fffffff
jae 0x14006d3aa
mov rax, qword [rsp + 0x30]
shl rax, 1
mov qword [rsp + 0x60], rax
jmp 0x14006d3d1
cmp qword [rsp + 0x30], 0x7fffffff
jae 0x14006d3c0
mov qword [rsp + 0x60], 0x7fffffff
jmp 0x14006d3d1
mov dword [rsp + 0x7c], 0xffffffff
mov eax, dword [rsp + 0x7c]
jmp 0x14006d762
mov rax, qword [rsp + 0x120]
add rax, 0x74
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140002ec0
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x23], 0
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x14006d45a
mov qword [rsp + 0x48], 0
jmp 0x14006d425
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x48], rax
je 0x14006d458
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
mov byte [rax], cl
jmp 0x14006d418
jmp 0x14006d46b
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
inc rax
mov rcx, qword [rsp + 0x120]
mov qword [rcx + 0x68], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x80]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xc0]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x70]
and eax, 4
test eax, eax
je 0x14006d55e
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x50]
mov dword [rcx], eax
jmp 0x14006d5fe
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xc8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0xa0]
mov qword [rax], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xd0]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x50]
mov dword [rcx], eax
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x70]
and eax, 1
test eax, eax
je 0x14006d6b8
mov rax, qword [rsp + 0x120]
add rax, 0x74
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x14006d67f
mov rcx, qword [rsp + 0x90]
call fcn.140074cc0
jmp 0x14006d6b8
cmp qword [rsp + 0x88], 0x1000
jb 0x14006d6a2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x90]
call fcn.14005ec70
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.140074cc8
nop
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x70]
or eax, 1
mov rcx, qword [rsp + 0x120]
mov dword [rcx + 0x70], eax
movzx eax, byte [rsp + 0x39]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x128]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
inc rax
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
movzx ecx, byte [rsp + 0x21]
mov byte [rax], cl
mov eax, dword [rsp + 0x128]
add rsp, 0x108
pop rdi
pop rsi
ret