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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov r14, qword [rcx]
mov rsi, r8
mov r13, qword [r8 + 0x60]
mov rbp, rcx
xor r8d, r8d
movsxd rbx, edx
mov qword [rsp + 0x48], r13
mov rdi, qword [r14 + 0x10]
mov rax, qword [r14 + 0x60]
mov qword [r14 + 0x60], r8
mov qword [rsp + 0x58], rdi
movsxd rdx, dword [rdi + 0x90]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], edx
cmp dword [rdi + 0x94], edx
jg 0x1402ec541
xor r9d, r9d
mov dword [rsp + 0x20], r8d
lea edx, [r8 + 0xf]
mov rcx, rdi
call fcn.1402bdf30
mov dword [rsp + 0x40], eax
jmp 0x1402ec567
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8], 0xf
mov qword [rax + rcx*8 + 8], r8
mov qword [rax + rcx*8 + 0x10], r8
mov r15, rbx
mov qword [rsp + 0x30], rbx
mov ebx, 3
nop dword [rax]
nop dword [rax + rax]
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call fcn.140346dc0
dec dword [r14 + 0x44]
mov r12d, dword [rsi + 4]
mov r9d, dword [r14 + 0x38]
mov eax, dword [r14 + 0x44]
inc r9d
mov dword [rsp + 0x38], eax
mov dword [r14 + 0x38], r9d
movzx eax, byte [rsi + 0x40]
mov dword [rsi + 0x34], r9d
imul rsi, rax, 0x68
mov dword [rsp + 0x44], r12d
add rsi, qword [rbp + 8]
mov rax, qword [rsi + 0x28]
movsx ecx, word [rax + 0x3a]
mov eax, 0x66666667
imul ecx
mov r8d, edx
sar r8d, 2
mov eax, r8d
shr eax, 0x1f
add r8d, eax
lea eax, [r8 + r8*4]
add eax, eax
sub ecx, eax
movsxd rdx, ecx
cmp rdx, 5
jb 0x1402ec5f4
sub rdx, 2
jmp 0x1402ec5fd
cmp rdx, 1
jb 0x1402ec5fd
dec rdx
cmp r8w, 0x3c
jg 0x1402ec63b
add rdx, 8
movsx eax, r8w
cmp r8w, 3
jl 0x1402ec61b
lea ecx, [rax - 3]
shl rdx, cl
jmp 0x1402ec622
mov ecx, ebx
sub ecx, eax
shr rdx, cl
cmp rdx, 0x2710
jae 0x1402ec632
mov edx, 0x2710
jmp 0x1402ec640
cmp rdx, 0x989680
jbe 0x1402ec640
mov edx, 0x989680
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x1402ec668
xor eax, eax
mov r8d, edx
mov rcx, rdi
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x4d]
call fcn.1402bdf30
xor r8d, r8d
jmp 0x1402ec699
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x4d
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rdx, dword [rdi + 0x90]
mov dword [rsp + 0x3c], edx
cmp dword [rdi + 0x94], edx
jg 0x1402ec6c9
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x24]
call fcn.1402bdf30
mov dword [rsp + 0x3c], eax
jmp 0x1402ec6f7
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x24
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
mov rbx, qword [rbp + 0x90]
movsxd rax, dword [rbp + 0x84]
imul rbp, rax, 0x38
add rbp, rbx
cmp rbx, rbp
jae 0x1402ec7cd
mov r15d, dword [rsp + 0x38]
lea r12, [fcn.140277400]
mov edi, 3
lea r13, [0x140329a70]
nop dword [rax]
test byte [rbx + 0x12], 2
mov rdx, qword [rbx]
jne 0x1402ec7ac
movzx ecx, byte [rsi + 0x44]
test cl, 0x40
jne 0x1402ec7ac
mov eax, dword [rdx + 4]
and eax, 1
test cl, 8
je 0x1402ec759
test eax, eax
je 0x1402ec7ac
mov eax, dword [rsi + 0x4c]
cmp dword [rdx + 0x34], eax
jmp 0x1402ec75b
test eax, eax
jne 0x1402ec7ac
mov eax, dword [rsi + 0x4c]
movzx ecx, di
mov word [rsp + 0x84], cx
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x88], eax
test rdx, rdx
je 0x1402ec793
lea rcx, [rsp + 0x60]
call fcn.1403593f0
movzx ecx, word [rsp + 0x84]
test cx, cx
je 0x1402ec7ac
mov rdx, qword [rbx]
mov r9d, 0x10
mov r8d, r15d
mov rcx, r14
call fcn.1402f6bb0
add rbx, 0x38
cmp rbx, rbp
jb 0x1402ec730
mov rdi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov r12d, dword [rsp + 0x44]
mov r15, qword [rsp + 0x30]
test dword [r13 + 0x38], 0x100
je 0x1402ec908
movzx eax, byte [r14 + 0x1f]
test al, al
jne 0x1402ec7ee
inc dword [r14 + 0x38]
mov ebx, dword [r14 + 0x38]
jmp 0x1402ec7ff
dec al
movzx eax, al
mov byte [r14 + 0x1f], al
mov ebx, dword [r14 + rax*4 + 0xe4]
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x1402ec82c
xor eax, eax
mov r9d, ebx
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov edx, 0x87
mov rcx, rdi
call fcn.1402bdf30
xor r9d, r9d
jmp 0x1402ec85d
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x87
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rsi, qword [rsp + 0xf0]
movsxd rdx, dword [rdi + 0x90]
mov r8d, dword [rsi + 0x34]
cmp dword [rdi + 0x94], edx
jg 0x1402ec890
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov edx, 0xb4
mov rcx, rdi
call fcn.1402bdf30
mov edx, eax
jmp 0x1402ec8be
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0xb4
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
jne 0x1402ec8e2
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], 1
test ebx, ebx
je 0x1402eca5d
movzx eax, byte [r14 + 0x1f]
cmp al, 8
jae 0x1402eca5d
mov dword [r14 + rax*4 + 0xe4], ebx
inc byte [r14 + 0x1f]
jmp 0x1402eca5d
movzx ebp, word [r13 + 0x18]
mov r15, qword [r13 + 0x20]
cmp ebp, 1
jne 0x1402ec944
movzx eax, byte [r14 + 0x1f]
test al, al
jne 0x1402ec92d
inc dword [r14 + 0x38]
mov esi, dword [r14 + 0x38]
xor eax, eax
mov ebx, eax
jmp 0x1402ec980
dec al
movzx eax, al
mov byte [r14 + 0x1f], al
mov esi, dword [r14 + rax*4 + 0xe4]
xor eax, eax
mov ebx, eax
jmp 0x1402ec980
mov ecx, dword [r14 + 0x28]
mov esi, dword [r14 + 0x2c]
cmp ebp, ecx
jg 0x1402ec95f
lea eax, [rsi + rbp]
sub ecx, ebp
mov dword [r14 + 0x2c], eax
mov dword [r14 + 0x28], ecx
jmp 0x1402ec96c
mov eax, dword [r14 + 0x38]
lea esi, [rax + 1]
add eax, ebp
mov dword [r14 + 0x38], eax
xor r9d, r9d
mov ebx, r9d
cmp r9w, bp
jae 0x1402ec9a1
nop dword [rax + rax]
lea eax, [rbx + rsi]
mov r9d, ebx
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov rdx, r15
mov rcx, r14
call fcn.1402f4370
inc ebx
cmp ebx, ebp
jl 0x1402ec980
xor r9d, r9d
mov r8, qword [rsp + 0xf0]
movsxd rdx, dword [rdi + 0x90]
mov r8d, dword [r8 + 0x34]
cmp dword [rdi + 0x94], edx
jg 0x1402ec9d4
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0xb4
mov rcx, rdi
call fcn.1402bdf30
mov edx, eax
jmp 0x1402eca02
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0xb4
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
jne 0x1402eca22
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], ebp
mov r15, qword [rsp + 0x30]
cmp ebp, 1
jne 0x1402eca47
test esi, esi
je 0x1402eca55
movzx eax, byte [r14 + 0x1f]
cmp al, 8
jae 0x1402eca55
mov dword [r14 + rax*4 + 0xe4], esi
inc byte [r14 + 0x1f]
jmp 0x1402eca55
cmp ebp, dword [r14 + 0x28]
jle 0x1402eca55
mov dword [r14 + 0x28], ebp
mov dword [r14 + 0x2c], esi
mov rsi, qword [rsp + 0xf0]
mov rcx, qword [rdi + 0x18]
mov edx, dword [rsp + 0x38]
not edx
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1402eca7c
mov r8d, edx
mov rdx, rdi
call fcn.1402d5e20
jmp 0x1402eca8c
mov rcx, qword [rcx + 0x50]
mov eax, dword [rdi + 0x90]
movsxd rdx, edx
mov dword [rcx + rdx*4], eax
movsxd rbx, dword [rsp + 0x3c]
movsxd rcx, dword [rdi + 0x90]
mov r8d, dword [rsi + 4]
lea edx, [rbx + 1]
cmp dword [rdi + 0x94], ecx
jg 0x1402ecabd
xor eax, eax
mov r9d, edx
mov rcx, rdi
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x27]
call fcn.1402bdf30
jmp 0x1402ecaee
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x27
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi]
mov edx, dword [rdi + 0x90]
cmp byte [rax + 0x67], 0
je 0x1402ecb06
lea rax, [0x1404d45d8]
jmp 0x1402ecb15
mov rax, qword [rdi + 0x88]
lea rcx, [rbx + rbx*2]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
and dword [r13 + 0x38], 0xffbfffff
mov rax, qword [r14]
test dword [rax + 0x60], 0x100000
jne 0x1402ecbf1
mov ebx, dword [rsp + 0xe8]
inc r15
mov rbp, qword [rsp + 0xe0]
inc ebx
mov dword [rsp + 0xe8], ebx
mov qword [rsp + 0x30], r15
movzx r10d, byte [rbp + 0x40]
cmp ebx, r10d
jge 0x1402ecbe6
mov r9, qword [rbp + 8]
add rbp, 0x3c0
imul rax, r15, 0x70
add rax, rbp
mov rbp, qword [rsp + 0xf8]
nop dword [rax + rax]
movzx ecx, byte [rax - 0x20]
lea rsi, [rax - 0x60]
imul rdx, rcx, 0x68
mov qword [rsp + 0xf0], rsi
test byte [rdx + r9 + 0x44], 0x48
jne 0x1402ecbbc
mov r13, qword [rax]
test r13, r13
je 0x1402ecbbc
test qword [r13], rbp
jne 0x1402ecbbc
mov ecx, dword [r13 + 0x38]
and ecx, 0x400004
cmp ecx, 0x400000
je 0x1402ecbca
inc ebx
inc r15
add rax, 0x70
cmp r15, r10
jl 0x1402ecb80
mov rbp, qword [rsp + 0xe0]
cmp ebx, r10d
mov dword [rsp + 0xe8], ebx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x48], r13
mov ebx, 3
jl 0x1402ec580
mov rax, qword [rdi]
mov edx, dword [rdi + 0x90]
cmp byte [rax + 0x67], 0
je 0x1402ecc08
mov dword [0x1404d45e0], edx
jmp 0x1402ecc1c
movsxd rax, dword [rsp + 0x40]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], edx
mov rax, qword [rsp + 0x50]
mov qword [r14 + 0x60], rax
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret