Function at 0x1402d7df0
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, 0xa8
mov eax, dword [rsp + 0x110]
mov qword [rsp + 0xf8], rdx
mov rdx, qword [rcx]
test ax, ax
mov rbp, rcx
mov dword [rsp + 0x68], r9d
mov esi, dword [rsp + 0x68]
mov qword [rsp + 0x100], r8
mov word [rsp + 0x9a], ax
mov rdx, qword [rdx]
mov word [rsp + 0x54], si
je 0x1402d7e4b
test byte [rdx + 0x60], 0x40
je 0x1402d7e4b
xor eax, eax
jmp 0x1402d848b
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
cmp word [rsp + 0x48], 0x3f
ja 0x1402d7e44
movzx eax, word [rsp + 0x48]
mov bl, 1
mov cl, byte [rsp + 0x48]
mov dword [rsp + 0x4c], eax
mov eax, 1
shl rax, cl
dec rax
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x68]
and ax, 0x803
cmp ax, 1
sbb eax, eax
xor r10d, r10d
xor esi, esi
mov dword [rsp + 0x58], eax
add word [rsp + 0x58], 0x183
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x78], r10
mov qword [rsp + 0x70], r10
mov qword [rsp + 0x30], r10
mov rdi, qword [rsp + 0x80]
cmp qword [rsp + 0x30], rdi
jae 0x1402d843b
test bl, 1
je 0x1402d843b
movzx eax, word [rsp + 0x9a]
mov edx, dword [rsp + 0x38]
cmp eax, edx
jl 0x1402d8437
cmp qword [rsp + 0x38], 0
je 0x1402d7ef6
mov rsi, qword [rsi + 8]
or qword [rsp + 0x78], rsi
cmp eax, edx
jle 0x1402d7f20
mov rax, qword [rsp + 0x100]
mov bl, 1
mov rsi, qword [rsp + 0x38]
test word [rsp + 0x54], 0x800
mov rax, qword [rax + 0x18]
mov rsi, qword [rax + rsi*8]
jne 0x1402d842d
jmp 0x1402d7f28
mov rsi, qword [rsp + 0x118]
test byte [rsi + 0x39], 4
je 0x1402d7f52
cmp byte [rsi + 0x20], 0
mov al, 0xff
je 0x1402d848b
mov edx, dword [rsp + 0x68]
and dx, 0x280
add dx, 0xff80
jne 0x1402d844a
jmp 0x1402d848b
mov eax, dword [rsp + 0x54]
and ax, 0x80
mov word [rsp + 0x98], ax
je 0x1402d7f6a
mov word [rsi + 0x1e], 0
movzx eax, byte [rsi + 0x10]
xor ebx, ebx
imul rax, rax, 0x68
add rax, qword [rbp + 8]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xf8]
add rax, 8
mov qword [rsp + 0x88], rax
mov rdi, rax
mov eax, dword [rsp + 0x4c]
cmp ebx, eax
je 0x1402d809d
mov r12, qword [rsp + 0x30]
mov ecx, ebx
shr r12, cl
and r12d, 1
jne 0x1402d8092
mov rcx, qword [rdi]
call fcn.14028bbc0
test rax, rax
mov r13, rax
je 0x1402d8092
mov al, byte [rax]
add eax, 0x59
test al, 0xfd
jne 0x1402d8092
mov eax, dword [rsp + 0x50]
cmp dword [r13 + 0x2c], eax
jne 0x1402d8092
movsx r8d, word [r13 + 0x30]
lea rcx, [rbp + 0x70]
xor r9d, r9d
movzx eax, word [rsp + 0x58]
mov qword [rsp + 0x28], r9
mov r9, qword [rsp + 0x78]
mov edx, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
not r9
call fcn.1402bfd20
test rax, rax
mov r14, rax
je 0x1402d8092
mov eax, dword [rax + 0x14]
cmp ax, 1
jne 0x1402d8054
movzx eax, word [rsi + 0x3c]
cmp eax, r12d
jle 0x1402d8092
mov rdx, qword [rsi + 0x48]
lea rcx, [r12 + 1]
cmp qword [rdx + r12*8], r14
je 0x1402d803e
mov r12, rcx
jmp 0x1402d8025
cmp eax, r12d
jle 0x1402d8092
mov eax, 1
mov ecx, ebx
shl rax, cl
or qword [rsp + 0x30], rax
jmp 0x1402d8092
test al, 0x82
je 0x1402d8043
cmp word [r13 + 0x30], 0
js 0x1402d8043
mov r13, qword [rbp]
mov rdx, qword [rdi]
mov rcx, r13
call fcn.14028b920
mov rdx, qword [r14]
mov rcx, r13
mov r12, rax
call fcn.14028a800
test rax, rax
je 0x1402d8092
mov rdx, qword [rax]
mov rcx, qword [r12]
call fcn.1402ad440
test eax, eax
je 0x1402d8043
inc ebx
add rdi, 0x20
jmp 0x1402d7f96
mov eax, dword [rsi + 0x38]
bt eax, 0xc
jb 0x1402d83ac
bt eax, 8
jb 0x1402d80f0
mov r12, qword [rsi + 0x20]
test r12, r12
je 0x1402d7e44
test byte [r12 + 0x64], 4
jne 0x1402d7e44
mov di, word [r12 + 0x5e]
xor ebx, ebx
cmp byte [r12 + 0x62], 0
mov edx, dword [r12 + 0x60]
mov word [rsp + 0x6e], di
je 0x1402d8101
shr eax, 0xf
xor eax, 1
and eax, 1
mov ebx, eax
jmp 0x1402d8101
xor r12d, r12d
mov edx, 1
mov word [rsp + 0x6e], 0
mov bl, 1
mov cl, byte [rsp + 0x38]
mov eax, 1
xor r13d, r13d
mov byte [rsp + 0x57], 0
mov byte [rsp + 0x6d], 0
mov byte [rsp + 0x6c], 0
shl rax, cl
mov qword [rsp + 0x90], rax
movzx eax, dx
mov dword [rsp + 0x9c], eax
cmp dword [rsp + 0x9c], r13d
mov r14d, r13d
jle 0x1402d83a2
movzx edx, word [rsi + 0x18]
cmp edx, r13d
jle 0x1402d8198
movzx eax, word [rsi + 0x3e]
cmp eax, r14d
jg 0x1402d8198
mov r8, qword [rsi + 0x48]
mov r11, qword [r8 + r13*8]
mov ecx, dword [r11 + 0x14]
test word [rsp + 0x58], cx
je 0x1402d8176
xor eax, eax
test cx, 0x180
cmovne ebx, eax
jmp 0x1402d8398
and cl, 1
mov al, 1
je 0x1402d819a
mov rcx, qword [r11]
lea rax, [r13 + 1]
cmp edx, eax
jle 0x1402d8198
mov r11, qword [r8 + rax*8]
inc rax
cmp qword [r11], rcx
jne 0x1402d8184
xor eax, eax
jmp 0x1402d819a
mov al, 1
test r12, r12
je 0x1402d81e1
mov r8, qword [r12 + 0x38]
mov rcx, qword [r12 + 8]
mov dil, byte [r8 + r13]
mov r8, qword [r12 + 0x18]
movsx rcx, word [rcx + r13*2]
and edi, 1
cmp cx, word [r8 + 0x34]
je 0x1402d81e3
test bl, bl
movsx r15d, cx
je 0x1402d81f2
test r15d, r15d
js 0x1402d81eb
cmp edx, r14d
jg 0x1402d81f2
imul rcx, rcx, 0x18
add rcx, qword [r8 + 8]
test byte [rcx + 8], 0xf
jmp 0x1402d81ef
xor edi, edi
or r15d, 0xffffffff
test bl, bl
je 0x1402d81f2
cmp r15d, 0xfffffffe
setne bl
mov rdx, qword [rsp + 0x88]
mov dword [rsp + 0x5c], r13d
mov qword [rsp + 0x60], rdx
xor edx, edx
mov dword [rsp + 0x44], edx
mov ecx, dword [rsp + 0x4c]
cmp dword [rsp + 0x44], ecx
jge 0x1402d837f
test al, al
je 0x1402d837f
mov rax, qword [rsp + 0x30]
mov edx, dword [rsp + 0x44]
bt rax, rdx
jb 0x1402d82f9
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call fcn.14028bbc0
test rax, rax
mov rcx, rax
je 0x1402d82f9
cmp r15d, 0xffffffff
jl 0x1402d827a
mov al, byte [rax]
add eax, 0x59
test al, 0xfd
jne 0x1402d826d
mov eax, dword [rsp + 0x50]
cmp dword [rcx + 0x2c], eax
jne 0x1402d826d
movsx eax, word [rcx + 0x30]
cmp eax, r15d
je 0x1402d82c2
test byte [rsp + 0x54], 0xc0
setne al
jmp 0x1402d82fb
movsxd rax, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x50]
shl rax, 5
add rax, qword [r12 + 0x50]
mov rdx, qword [rax + 8]
call fcn.14028a820
test eax, eax
jne 0x1402d826d
mov rax, qword [rsp + 0x60]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.14028b920
mov rdx, qword [r12 + 0x40]
mov rcx, qword [rax]
mov rdx, qword [rdx + r13*8]
call fcn.1402ad440
test eax, eax
je 0x1402d82c8
jmp 0x1402d826d
cmp r15d, 0xffffffff
jne 0x1402d829a
cmp word [rsp + 0x98], 0
je 0x1402d82db
lea eax, [r13 + 1]
mov word [rsi + 0x1e], ax
movsxd rax, dword [rsp + 0x44]
mov rdx, qword [rsp + 0xf8]
shl rax, 5
test byte [rsp + 0x54], 0x40
mov dl, byte [rdx + rax + 0x18]
je 0x1402d830a
jmp 0x1402d8346
mov al, 1
inc dword [rsp + 0x44]
add qword [rsp + 0x60], 0x20
jmp 0x1402d820a
mov eax, edx
and eax, 1
cmp byte [rsp + 0x6c], 0
je 0x1402d8322
xor dil, byte [rsp + 0x6d]
cmp dil, al
je 0x1402d8346
jmp 0x1402d837f
cmp dil, al
je 0x1402d833a
mov rcx, qword [rsp + 0x120]
mov r10, qword [rsp + 0x90]
or qword [rcx], r10
xor edi, eax
mov byte [rsp + 0x6c], 1
mov byte [rsp + 0x6d], dil
and dl, 2
je 0x1402d835b
movzx eax, word [rsi + 0x18]
cmp eax, r14d
jne 0x1402d837f
or dword [rsi + 0x38], 0x80000
mov al, byte [rsp + 0x57]
inc r15d
mov dil, 1
mov cl, byte [rsp + 0x44]
cmove eax, edi
mov byte [rsp + 0x57], al
mov eax, 1
shl rax, cl
or qword [rsp + 0x30], rax
jmp 0x1402d8398
cmp dword [rsp + 0x5c], 0
je 0x1402d83a0
movzx eax, word [rsp + 0x6e]
mov edi, dword [rsp + 0x5c]
cmp eax, edi
mov al, 0
cmovg ebx, eax
jmp 0x1402d83a2
inc r13
jmp 0x1402d8131
xor ebx, ebx
or bl, byte [rsp + 0x57]
je 0x1402d842d
mov rbx, qword [rsi + 8]
xor r15d, r15d
mov r14d, 1
or qword [rsp + 0x70], rbx
lea r12, [rbp + 0x258]
mov r13, qword [rsp + 0x70]
not r13
cmp dword [rsp + 0x4c], r15d
mov edi, r15d
jle 0x1402d842b
mov rax, qword [rsp + 0x30]
bt rax, r15
jb 0x1402d8426
mov rbx, qword [rsp + 0xf8]
mov rax, r15
mov rcx, r12
shl rax, 5
mov rbx, qword [rbx + rax + 8]
mov rdx, rbx
call fcn.1402bfc10
test rax, rax
jne 0x1402d8421
mov rcx, rbx
call fcn.14028b310
test eax, eax
je 0x1402d8426
mov rax, r14
mov ecx, edi
shl rax, cl
or qword [rsp + 0x30], rax
jmp 0x1402d8426
test r13, rax
je 0x1402d8412
inc r15
jmp 0x1402d83cd
mov bl, 1
inc qword [rsp + 0x38]
jmp 0x1402d7eb5
mov al, 0xff
jmp 0x1402d848b
mov rsi, qword [rsp + 0x80]
cmp qword [rsp + 0x30], rsi
jne 0x1402d8450
mov al, byte [rsp + 0x48]
jmp 0x1402d848b
test bl, bl
mov al, 0xff
jne 0x1402d848b
mov eax, dword [rsp + 0x4c]
mov r8d, 1
dec eax
test eax, eax
jle 0x1402d7e44
cmp eax, 0x3f
jg 0x1402d848b
mov ecx, eax
mov rdx, r8
shl rdx, cl
mov rcx, qword [rsp + 0x30]
dec rdx
not rcx
test rcx, rdx
je 0x1402d848b
dec eax
jmp 0x1402d8462
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret