Function at 0x1406ddb10
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, 0x138
mov edi, 0xffffffff
mov rax, qword [rcx]
mov r12, qword [rcx + 0x10]
mov qword [rsp + 0x188], rdx
mov rdx, qword [rax + 8]
mov qword [rsp + 0x60], rax
movzx eax, byte [r12 + 0x10]
mov qword [rsp + 0x180], rcx
lea rcx, [rax + rax*2]
mov word [rsp + 0x72], di
lea rax, [rax + rcx*4]
lea r14, [rdx + rax*8 + 8]
mov rax, qword [r14 + 0x20]
movzx edx, byte [r14 + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
test dl, 2
je 0x1406de218
mov rdi, qword [r14 + 0x60]
mov rcx, qword [rsp + 0x180]
test rdi, rdi
setne sil
xor eax, eax
cmp qword [rcx + 0x18], 0
je 0x1406de2c8
test sil, sil
je 0x1406ddddb
mov r9, qword [rdi + 0x48]
mov dword [rsp + 0x44], 1
nop dword [rax]
test r9, r9
je 0x1406ddbe0
movzx edx, byte [r14 + 0x3c]
mov ecx, dword [r14 + 0x44]
mov r8, qword [rsp + 0x48]
call fcn.1406dac10
test eax, eax
je 0x1406ddf88
movzx eax, byte [rdi + 0x65]
and eax, 1
mov byte [rsp + 0x38], al
jne 0x1406ddf88
mov rax, qword [rdi + 0x10]
mov rcx, qword [rsp + 0x188]
xor r8d, r8d
xor r9d, r9d
movzx eax, word [rax]
mov byte [r12 + 0x11], 0
mov dword [r12 + 0x3c], 0
mov word [rsp + 0x42], ax
mov word [r12 + 0x16], ax
movzx eax, byte [rdi + 0x64]
mov dword [r12 + 0x18], 0
mov word [r12 + 0x1c], r8w
mov word [r12 + 0x12], r9w
mov qword [r12], rcx
mov qword [r12 + 0x20], rdi
test al, 4
jne 0x1406ddfdf
mov rcx, qword [rsp + 0x180]
mov rdx, qword [rcx]
mov r15, qword [rdx + 0x10]
test r15, r15
je 0x1406ddfdf
mov ecx, dword [r15]
test ecx, ecx
jle 0x1406ddcd2
mov r13d, dword [r14 + 0x44]
mov qword [rsp + 0x58], r12
xor ebp, ebp
mov r12d, r13d
nop word [rax + rax]
mov rax, rbp
shl rax, 5
mov rbx, qword [r15 + rax + 8]
nop dword [rax]
test rbx, rbx
je 0x1406ddcc0
mov eax, dword [rbx + 4]
test eax, 0x82000
je 0x1406dde00
test eax, 0x80000
je 0x1406dddf0
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x1406ddc95
nop dword [rax + rax]
add rbp, 1
cmp dword [r15], ebp
jg 0x1406ddc80
mov r12, qword [rsp + 0x58]
movzx eax, byte [rdi + 0x64]
mov edx, eax
xor ebx, ebx
and edx, 3
cmp dl, 3
je 0x1406de44f
nop word [rax + rax]
test al, 0x20
je 0x1406de033
mov qword [rsp + 0x78], 0
xor ecx, ecx
mov dword [r12 + 0x38], 0x240
test ebx, ebx
jne 0x1406de025
mov rax, qword [rsp + 0x50]
test byte [rax + 0x30], 0x80
jne 0x1406ddd28
cmp qword [rdi + 0x48], 0
je 0x1406de245
nop word [rax + rax]
movzx eax, byte [rsp + 0x38]
mov rsi, qword [rsp + 0x50]
mov byte [r12 + 0x11], al
movsx edx, word [rdi + 0x5c]
movsx r8d, word [rsi + 0x3c]
movzx esi, word [rsp + 0x42]
mov eax, edx
shl eax, 4
sub eax, edx
cdq
idiv r8d
lea eax, [rsi + rax + 1]
mov word [r12 + 0x14], ax
test rcx, rcx
jne 0x1406de0b6
movsx r8d, word [rsp + 0x42]
mov rcx, qword [rsp + 0x48]
mov rdx, r12
mov esi, r8d
call fcn.1406a3510
test byte [r14 + 0x3c], 0x10
je 0x1406ddffd
cmp qword [rdi + 0x50], 0
je 0x1406ddffd
mov word [r12 + 0x16], si
mov rax, qword [rsp + 0x180]
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov byte [rax + 0x20], 0
mov rcx, rax
call fcn.1406dccc0
mov rcx, qword [rsp + 0x180]
cmp byte [rcx + 0x20], 1
jne 0x1406dddd0
mov rcx, qword [rsp + 0x50]
or dword [rcx + 0x30], 0x100
nop dword [rax]
test byte [r14 + 0x40], 2
je 0x1406ddf60
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [rbx + 0x10]
jmp 0x1406ddc90
cmp byte [rbx], 0xa7
je 0x1406ddf90
mov r13, qword [rdi + 0x50]
test r13, r13
je 0x1406ddcc0
cmp word [rdi + 0x5e], 0
je 0x1406ddcc0
xor esi, esi
jmp 0x1406dde38
movzx eax, word [rdi + 0x5e]
add rsi, 1
cmp eax, esi
jle 0x1406ddcc0
mov rax, qword [rdi + 8]
cmp word [rax + rsi*2], 0xfffe
jne 0x1406dde28
mov rax, rsi
shl rax, 5
mov r8, qword [r13 + rax + 8]
test r8, r8
jne 0x1406dde6d
jmp 0x1406dde88
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
test r8, r8
je 0x1406dde88
mov eax, dword [r8 + 4]
test eax, 0x82000
je 0x1406dde88
test eax, 0x80000
jne 0x1406dde60
mov r8, qword [r8 + 0x10]
test r8, r8
jne 0x1406dde6d
mov rdx, rbx
jmp 0x1406dde9d
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1406ddebb
mov eax, dword [rdx + 4]
test eax, 0x82000
je 0x1406ddf40
test eax, 0x80000
jne 0x1406dde90
mov rdx, qword [rdx + 0x10]
test rdx, rdx
jne 0x1406dde9d
test r8, r8
jne 0x1406dde28
movzx eax, byte [rdi + 0x64]
mov r12, qword [rsp + 0x58]
mov ebx, 1
mov edx, eax
and edx, 3
cmp dl, 3
jne 0x1406ddce8
mov dword [r12 + 0x38], 0x100
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x38], al
movsx r8d, word [rsp + 0x42]
movzx eax, byte [rsp + 0x38]
mov rdx, r12
mov rcx, qword [rsp + 0x48]
mov byte [r12 + 0x11], al
lea eax, [r8 + 0x10]
mov esi, r8d
mov word [r12 + 0x14], ax
call fcn.1406a3510
mov rcx, qword [rsp + 0x180]
mov rdx, r12
call fcn.1406bc240
mov word [r12 + 0x16], si
test eax, eax
je 0x1406ddd95
jmp 0x1406ddddb
test r8, r8
je 0x1406dde28
xor ecx, ecx
mov r9d, r12d
call fcn.1406d92e0
test eax, eax
jne 0x1406dde28
jmp 0x1406ddec4
add dword [rsp + 0x44], 1
mov rdi, qword [rdi + 0x28]
test eax, eax
jne 0x1406ddddb
test rdi, rdi
je 0x1406ddddb
mov r9, qword [rdi + 0x48]
jmp 0x1406ddbc0
xor eax, eax
jmp 0x1406dddd0
cmp r12d, dword [rbx + 0x2c]
jne 0x1406dde09
movzx edx, word [rbx + 0x30]
test dx, dx
js 0x1406ddec4
movzx ecx, word [rdi + 0x5e]
test cx, cx
je 0x1406ddcc0
mov rax, qword [rdi + 8]
sub ecx, 1
lea rcx, [rax + rcx*2 + 2]
jmp 0x1406ddfd5
add rax, 2
cmp rcx, rax
je 0x1406ddcc0
cmp dx, word [rax]
jne 0x1406ddfc8
jmp 0x1406ddec4
mov edx, eax
xor ebx, ebx
and edx, 3
cmp dl, 3
jne 0x1406ddce8
mov dword [r12 + 0x38], 0x100
jmp 0x1406ddef2
mov rcx, qword [rsp + 0x180]
mov rdx, r12
call fcn.1406bc240
movzx ecx, word [rsp + 0x42]
mov word [r12 + 0x16], cx
test eax, eax
je 0x1406ddd95
jmp 0x1406ddddb
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x38], al
jmp 0x1406ddd28
mov r8, qword [rdi + 0x48]
mov rcx, qword [r14 + 0x50]
and rcx, qword [rdi + 0x68]
mov qword [rsp + 0x78], rcx
test r8, r8
je 0x1406de074
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov rdx, rdi
mov qword [rsp + 0x28], 0
mov rcx, qword [rax]
call fcn.1406d47d0
mov rcx, qword [rsp + 0x78]
movabs rax, 0x8000000000000000
mov dword [r12 + 0x38], 0x200
cmp rcx, rax
je 0x1406de1f5
movzx eax, byte [rdi + 0x65]
and eax, 0xc
cmp al, 8
jne 0x1406de1e7
test rcx, rcx
jne 0x1406de1f5
mov dword [r12 + 0x38], 0x240
jmp 0x1406ddd04
mov ecx, esi
mov rsi, qword [rsp + 0x60]
mov r10d, dword [r14 + 0x44]
lea ebx, [rcx + 0x10]
mov edx, dword [rsi + 0x84]
test edx, edx
jle 0x1406de1d1
xor r8d, r8d
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x58], r12
xor ebp, ebp
mov qword [rsp + 0x68], r14
mov r12d, r10d
mov r14, rdi
mov r15d, r8d
mov rdi, rsi
lea r9, [rsp + 0x80]
mov rsi, rcx
jmp 0x1406de12b
lea eax, [rbx - 1]
sub ebx, 0x14
test byte [r13 + 0x14], 0x82
cmove ebx, eax
add r15d, 1
add rbp, 0x38
cmp dword [rdi + 0x84], r15d
jle 0x1406de1be
mov r13, qword [rdi + 0x90]
lea rax, [0x1406a5850]
add r13, rbp
mov rdx, qword [r13]
mov qword [rsi + 8], 0
mov qword [rsi], 0
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0
mov qword [rsi + 0x20], 0
mov dword [rsp + 0x88], r12d
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb8], r9
test rdx, rdx
je 0x1406de1a9
mov rcx, rsi
mov qword [rsp + 0x38], r9
call fcn.1406b7fd0
mov r9, qword [rsp + 0x38]
cmp word [rsp + 0xb4], 0
jne 0x1406de1be
movzx eax, word [r13 + 0x10]
test ax, ax
jg 0x1406de108
add ebx, eax
jmp 0x1406de116
mov r12, qword [rsp + 0x58]
mov rdi, r14
mov r14, qword [rsp + 0x68]
movzx eax, word [r12 + 0x14]
movsx edx, bx
movsx ecx, ax
call fcn.1406a5370
mov word [r12 + 0x14], ax
jmp 0x1406ddd63
test rcx, rcx
jne 0x1406ddd04
jmp 0x1406de0a8
mov rax, qword [rsp + 0x60]
mov r8d, dword [r14 + 0x44]
mov rdx, rdi
mov rcx, qword [rax + 0x20]
call fcn.1406b8d70
test eax, eax
jne 0x1406de230
mov rcx, qword [rsp + 0x78]
jmp 0x1406ddd04
mov rax, qword [rsp + 0x50]
test byte [rax + 0x30], 0x80
je 0x1406de462
mov rdi, qword [rax + 0x10]
jmp 0x1406ddb8c
or dword [r12 + 0x38], eax
xor ecx, ecx
mov qword [rsp + 0x78], 0
jmp 0x1406ddd04
test byte [r14 + 0x40], 2
jne 0x1406ddd28
test rcx, rcx
jne 0x1406ddd95
test byte [rdi + 0x64], 4
jne 0x1406ddd95
movsx edx, word [rdi + 0x5c]
movsx ecx, word [rax + 0x3c]
cmp dx, cx
jge 0x1406ddd95
mov rax, qword [rsp + 0x60]
test byte [rax + 0x3c], 4
jne 0x1406ddd95
cmp byte [0x1407d7ee7], 0
je 0x1406ddd95
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x60], 0x20
jne 0x1406ddd95
mov eax, edx
mov byte [r12 + 0x11], 0
shl eax, 4
sub eax, edx
cdq
idiv ecx
movzx ecx, word [rsp + 0x42]
lea eax, [rcx + rax + 1]
mov word [r12 + 0x14], ax
jmp 0x1406ddd63
mov rcx, qword [rsp + 0x50]
movzx ebp, word [rcx + 0x3a]
mov rcx, qword [rsp + 0x60]
test word [rcx + 0x3c], 0x1020
jne 0x1406ddba8
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov rcx, qword [rcx]
test byte [rcx + 0x31], 0x80
je 0x1406ddba8
test dl, 3
jne 0x1406de534
mov rax, qword [rsp + 0x50]
test byte [rax + 0x30], 0x80
jne 0x1406de534
and edx, 0x48
jne 0x1406de534
test byte [r14 + 0x3c], 0x10
jne 0x1406de534
mov rax, qword [rsp + 0x48]
xor ebx, ebx
movsxd rdx, dword [rax + 0x14]
mov r13, qword [rax + 0x20]
lea rax, [rdx*8]
sub rax, rdx
lea rax, [r13 + rax*8]
mov qword [rsp + 0x38], rax
cmp bp, 0xa
jg 0x1406de557
cmp r13, qword [rsp + 0x38]
jae 0x1406de534
add ebp, ebx
xor r15d, r15d
lea eax, [rbp - 0x19]
mov word [rsp + 0x42], ax
jmp 0x1406de437
xor r8d, r8d
mov rdx, r14
mov rcx, r13
call fcn.1406b5e50
test eax, eax
je 0x1406de446
mov rax, qword [r12 + 0x48]
mov r11d, 1
mov qword [r12 + 0x20], 0
mov word [r12 + 0x18], r11w
mov dword [r12 + 0x3c], 1
mov qword [rax], r13
mov rax, qword [rsp + 0x50]
cmp byte [rax + 0x3f], 2
je 0x1406de54d
test byte [rax + 0x31], 0x40
jne 0x1406de54d
lea eax, [rbp + 0x1c]
test ax, ax
mov r10d, 0x2b
movsx ecx, bx
mov edx, 0x2b
cmovs eax, r15d
mov word [r12 + 0x16], r10w
mov word [r12 + 0x12], ax
call fcn.1406a5370
mov rcx, qword [rsp + 0x180]
mov rdx, r12
mov dword [r12 + 0x38], 0x4000
mov word [r12 + 0x14], ax
mov rax, qword [rsp + 0x188]
or rax, qword [r13 + 0x28]
mov qword [r12], rax
call fcn.1406bc240
test eax, eax
sete dl
add r13, 0x38
cmp qword [rsp + 0x38], r13
jbe 0x1406de540
test dl, dl
je 0x1406ddddb
mov rax, qword [r13 + 0x28]
and rax, qword [r12 + 8]
je 0x1406de36e
mov edx, 1
xor eax, eax
jmp 0x1406de420
mov dword [r12 + 0x38], 0x100
mov byte [rsp + 0x38], 0
jmp 0x1406ddef2
xor eax, eax
mov ecx, 0xe
mov ebx, 1
xor esi, esi
lea r8, [rsp + 0xc0]
mov word [rsp + 0x76], si
mov rdi, r8
rep stosq qword [rdi], rax
lea rax, [rsp + 0x72]
mov dword [rsp + 0x11c], 0x10003
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x50]
mov byte [rsp + 0x122], 5
movzx edx, byte [r14 + 0x40]
mov byte [rsp + 0x124], 3
movzx ebp, word [rax + 0x3a]
mov qword [rsp + 0xd8], rax
mov word [rsp + 0x120], bx
mov word [rsp + 0x74], bp
test dl, 1
jne 0x1406de4f0
mov rax, qword [r14 + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x180]
xor r9d, r9d
mov rdi, r8
cmp qword [rax + 0x18], 0
jne 0x1406ddbb5
mov rax, qword [rsp + 0x60]
test word [rax + 0x3c], 0x1020
jne 0x1406ddbb1
mov rax, qword [rax]
mov rax, qword [rax]
test byte [rax + 0x31], 0x80
je 0x1406ddbb1
mov esi, 1
jmp 0x1406de2f7
xor eax, eax
jmp 0x1406ddba8
test dl, dl
jne 0x1406ddba8
jmp 0x1406ddddb
movzx eax, word [rsp + 0x42]
jmp 0x1406de3c6
movsx rcx, bp
call fcn.1406a38b0
lea ebx, [rax - 0x21]
jmp 0x1406de351