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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov eax, dword [rsp + 0x128]
mov ecx, 1
mov dword [rsp + 0xb0], ecx
movzx ecx, al
mov eax, dword [rsp + 0xb0]
shl eax, cl
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
add rax, 4
mov qword [rsp + 0xd0], rax
cmp dword [rsp + 0x128], 0
je 0x1402d7622
mov eax, dword [rsp + 0x28]
shr eax, 1
mov dword [rsp + 0x70], eax
jmp 0x1402d762a
mov dword [rsp + 0x70], 1
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0xd8]
lea rax, [rcx + rax*4 + 4]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x28]
shr eax, 1
mov ecx, dword [rsp + 0x28]
shr ecx, 3
lea eax, [rax + rcx + 3]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x120]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x38]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x120]
add eax, 2
mov eax, eax
mov ecx, dword [rsp + 0x128]
mov edx, 1
shl rdx, cl
mov rcx, rdx
add rax, rcx
xor edx, edx
mov ecx, 2
div rcx
lea rax, [rax*4 + 8]
cmp rax, qword [rsp + 0x138]
jbe 0x1402d76ee
mov rax, 0xffffffffffffffd4
jmp 0x1402d7d16
mov eax, 2
imul rax, rax, 0xfffffffffffffffe
mov rcx, qword [rsp + 0xd0]
movzx edx, word [rsp + 0x128]
mov word [rcx + rax], dx
mov eax, 2
imul rax, rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0xd0]
movzx edx, word [rsp + 0x120]
mov word [rcx + rax], dx
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x48]
mov word [rdx + rax], cx
mov dword [rsp + 0x2c], 1
jmp 0x1402d7750
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x2c], eax
ja 0x1402d77f1
mov eax, dword [rsp + 0x2c]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x118]
movsx eax, word [rcx + rax*2]
cmp eax, 0xffffffff
jne 0x1402d77b8
mov eax, dword [rsp + 0x2c]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
inc eax
mov ecx, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x48]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x2c]
dec eax
mov ecx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x80]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
jmp 0x1402d77ec
mov eax, dword [rsp + 0x2c]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x2c]
dec ecx
mov ecx, ecx
mov rdx, qword [rsp + 0x118]
movzx ecx, word [rdx + rcx*2]
add eax, ecx
mov ecx, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x48]
mov word [rdx + rcx*2], ax
jmp 0x1402d7746
mov eax, dword [rsp + 0x28]
inc eax
mov ecx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp + 0x28]
dec eax
cmp dword [rsp + 0x40], eax
jne 0x1402d7a61
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
movabs rax, 0x101010101010101
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x50], 0
jmp 0x1402d788a
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x50], eax
jae 0x1402d7941
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x118]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.1402d5ab0
mov dword [rsp + 0x54], 8
jmp 0x1402d78e7
mov eax, dword [rsp + 0x54]
add eax, 8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x54], eax
jge 0x1402d7921
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x54]
add rax, rcx
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.1402d5ab0
jmp 0x1402d78dc
movsxd rax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
jmp 0x1402d7862
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa0], 0
jmp 0x1402d7985
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x28]
cmp qword [rsp + 0xa0], rax
jae 0x1402d7a5c
mov qword [rsp + 0x78], 0
jmp 0x1402d79af
mov rax, qword [rsp + 0x78]
inc rax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rsp + 0x78], rax
jae 0x1402d7a27
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x78]
imul rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x5c]
and rax, rcx
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x80]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0xb8]
movzx eax, byte [rdx + rax]
mov byte [rcx], al
jmp 0x1402d79a2
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xc0]
imul rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x5c]
and rax, rcx
mov qword [rsp + 0xc8], rax
jmp 0x1402d7967
jmp 0x1402d7b12
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x3c], 0
jmp 0x1402d7a7d
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x3c], eax
jae 0x1402d7b12
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x118]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x60], 0
jmp 0x1402d7ab6
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xa8]
cmp dword [rsp + 0x60], eax
jge 0x1402d7b0d
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
movzx edx, byte [rsp + 0x3c]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
and eax, dword [rsp + 0x5c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x30], eax
jbe 0x1402d7b0b
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
and eax, dword [rsp + 0x5c]
mov dword [rsp + 0x30], eax
jmp 0x1402d7aeb
jmp 0x1402d7aac
jmp 0x1402d7a73
mov dword [rsp + 0x44], 0
jmp 0x1402d7b26
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x44], eax
jae 0x1402d7b8b
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20], al
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
movzx ecx, byte [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
movzx ecx, word [rdx + rcx*2]
mov rdx, qword [rsp + 0xd0]
mov word [rdx + rcx*2], ax
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax*2]
inc ax
movzx ecx, byte [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov word [rdx + rcx*2], ax
jmp 0x1402d7b1c
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x24], 0
jmp 0x1402d7ba7
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x120]
cmp dword [rsp + 0x24], eax
ja 0x1402d7d14
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x118]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0xffffffff
je 0x1402d7c19
cmp dword [rsp + 0x64], 0
je 0x1402d7be6
cmp dword [rsp + 0x64], 1
je 0x1402d7c19
jmp 0x1402d7c69
mov eax, dword [rsp + 0x128]
inc eax
shl eax, 0x10
mov ecx, dword [rsp + 0x128]
mov edx, 1
shl edx, cl
mov ecx, edx
sub eax, ecx
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x88]
mov dword [rdx + rcx*8 + 4], eax
jmp 0x1402d7d0f
mov eax, dword [rsp + 0x128]
shl eax, 0x10
mov ecx, dword [rsp + 0x128]
mov edx, 1
shl edx, cl
mov ecx, edx
sub eax, ecx
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x88]
mov dword [rdx + rcx*8 + 4], eax
mov eax, dword [rsp + 0x34]
dec eax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x88]
mov dword [rdx + rcx*8], eax
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
jmp 0x1402d7d0f
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x118]
movsx eax, word [rcx + rax*2]
dec eax
mov ecx, eax
call fcn.1402d4420
mov ecx, dword [rsp + 0x128]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x118]
movsx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x6c]
shl eax, cl
mov dword [rsp + 0xac], eax
mov eax, dword [rsp + 0x6c]
shl eax, 0x10
sub eax, dword [rsp + 0xac]
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x88]
mov dword [rdx + rcx*8 + 4], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x118]
movsx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x88]
mov dword [rdx + rcx*8], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x118]
movsx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
jmp 0x1402d7b9d
xor eax, eax
add rsp, 0x108
ret