Function at 0x140253ac0
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, 0x108
mov r14d, 7
mov dword [rsp + 0x64], r9d
mov eax, dword [rsp + 0x64]
mov rdi, rcx
mov r15, r8
mov qword [rsp + 0x158], rdx
mov word [rsp + 0x68], ax
mov rax, qword [rcx]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rax]
cmp byte [rax + 0x67], 0
mov qword [rsp + 0x38], rax
jne 0x140254246
mov rbx, qword [rcx + 0x10]
mov eax, dword [rbx + 0x38]
mov dword [rsp + 0x50], eax
and eax, 0x20
cmp eax, 1
sbb eax, eax
and eax, 0x1a7
add eax, 0x18
test byte [r8 + 0x64], 4
je 0x140253b37
and eax, 0xffffffc3
mov esi, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
xor r12d, r12d
xor r14d, r14d
lea rcx, [rsp + 0x90]
mov word [rsp + 0x44], si
mov si, word [rbx + 0x1a]
mov word [rsp + 0x6a], si
mov esi, dword [rbx + 0x1c]
mov word [rsp + 0x6c], si
mov rsi, qword [rbx + 0x16]
mov qword [rsp + 0x78], rsi
mov si, word [rbx + 0x3e]
mov word [rsp + 0x6e], si
mov rsi, qword [rbx + 0x38]
mov qword [rsp + 0x70], rsi
mov esi, dword [rbx + 0x3c]
mov word [rsp + 0x46], si
mov rsi, qword [rbx]
mov qword [rsp + 0x58], rsi
mov si, word [rbx + 0x16]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x158]
mov word [rsp + 0x54], si
movzx esi, word [rsp + 0x44]
mov qword [rsp + 0x28], r15
mov r8d, dword [rax + 0x44]
mov r9d, esi
mov dword [rsp + 0x40], esi
call fcn.1402568f0
mov word [rbx + 0x12], 0
mov r13, rax
mov rax, qword [r15 + 0x10]
movsx eax, word [rax]
mov ecx, eax
mov dword [rsp + 0x60], eax
call fcn.1401edbe0
movzx ebp, word [rsp + 0x44]
mov word [rsp + 0x56], ax
lea rax, [rbp + rbp]
xor ebp, ebp
mov qword [rsp + 0x30], rax
movzx eax, word [rsp + 0x46]
inc eax
mov dword [rsp + 0x80], eax
movsx eax, word [rsp + 0x56]
mov dword [rsp + 0x84], eax
test r14d, r14d
jne 0x14025412b
test r13, r13
je 0x14025412b
mov r14d, dword [r13 + 0x14]
cmp r14w, 0x100
je 0x140253c2c
test byte [r13 + 0x12], 0x80
je 0x140253c59
mov rax, qword [r15 + 8]
mov rsi, qword [rsp + 0x30]
movsx rdx, word [rax + rsi]
mov rax, rdx
test edx, edx
js 0x140253c55
mov rdx, qword [r15 + 0x18]
imul rax, rax, 0x18
add rax, qword [rdx + 8]
test byte [rax + 8], 0xf
je 0x140253c59
jmp 0x140253c63
inc edx
je 0x140253c63
mov r11, qword [r13 + 0x28]
and r11, qword [rbx + 8]
je 0x140253c6b
xor r14d, r14d
jmp 0x140254116
test byte [r13 + 0x13], 1
je 0x140253c79
cmp r14w, 0x10
je 0x140253c63
mov rax, qword [rsp + 0x158]
test byte [rax + 0x3c], 0x58
je 0x140253ca1
mov rax, qword [r13]
test byte [rax + 4], 3
je 0x140253c63
mov rsi, qword [rsp + 0x158]
mov esi, dword [rsi + 0x44]
cmp dword [rax + 0x34], esi
jne 0x140253c63
cmp byte [r15 + 0x62], 0
mov al, byte [rdi + 0x20]
je 0x140253cbd
movzx edx, word [r15 + 0x5e]
dec edx
cmp dword [rsp + 0x40], edx
jne 0x140253cbd
or eax, 2
jmp 0x140253cc0
or eax, 1
mov byte [rdi + 0x20], al
mov eax, dword [rsp + 0x50]
mov rdx, rbx
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x88], r11
mov dword [rbx + 0x38], eax
mov eax, dword [rsp + 0x44]
mov word [rbx + 0x18], ax
mov ax, word [rsp + 0x6a]
mov word [rbx + 0x1a], ax
mov eax, dword [rsp + 0x6c]
mov word [rbx + 0x1c], ax
mov ax, word [rsp + 0x46]
mov word [rbx + 0x3c], ax
call fcn.1402556b0
mov r11, qword [rsp + 0x88]
test eax, eax
mov esi, eax
je 0x140253d1f
xor r14d, r14d
jmp 0x14025412b
movzx edx, word [rbx + 0x3c]
mov rcx, qword [rbx + 0x48]
mov r8, qword [rbx + 8]
lea eax, [rdx + 1]
mov word [rbx + 0x3c], ax
not r8
mov qword [rcx + rdx*8], r13
mov rdx, qword [rsp + 0x58]
or rdx, qword [r13 + 0x28]
and rdx, r8
mov qword [rbx], rdx
test r14d, 1
je 0x140253e0d
mov rdx, qword [r13]
test byte [rdx + 5], 0x10
je 0x140253d86
movzx eax, ax
mov r9d, 0x2e
xor esi, esi
dec eax
cmp eax, r11d
jle 0x140253da6
mov r8, qword [rcx + r11*8]
test r8, r8
je 0x140253d81
cmp qword [r8], rdx
cmove r9d, esi
inc r11
jmp 0x140253d6c
mov rax, qword [rdx + 0x20]
xor r9d, r9d
test rax, rax
je 0x140253da6
mov r9d, dword [rax]
test r9d, r9d
je 0x140253da6
movsxd rcx, r9d
call fcn.140221ad0
movsx r9d, ax
cmp byte [r15 + 0x64], 0
jns 0x140253e01
cmp word [rsp + 0x56], 9
jle 0x140253e01
mov rax, qword [r15 + 0x10]
mov rsi, qword [rsp + 0x30]
movsx ecx, r9w
mov r8w, word [rax + rsi]
call fcn.1401edbe0
add r8d, 0xa
sub r8w, word [rsp + 0x56]
sub r8d, r9d
add r8w, ax
jns 0x140253e01
cmp word [rsp + 0x68], 1
jg 0x140253c63
mov rax, qword [rsp + 0x38]
test byte [rax + 0x62], 2
jne 0x140253c63
or dword [rbx + 0x38], 0x100000
or dword [rbx + 0x38], 4
mov esi, r9d
jmp 0x140253f68
mov eax, dword [rbx + 0x38]
test r14b, 0x82
je 0x140253e8e
mov rdx, qword [r15 + 8]
mov rcx, qword [rsp + 0x30]
movsx edx, word [rdx + rcx]
mov ecx, eax
or ecx, 1
mov dword [rbx + 0x38], ecx
cmp edx, 0xffffffff
je 0x140253e65
test edx, edx
js 0x140253e74
cmp word [rsp + 0x68], 0
jne 0x140253e74
movzx edx, word [r15 + 0x5e]
mov ecx, edx
dec edx
cmp dword [rsp + 0x40], edx
jne 0x140253e74
test byte [r15 + 0x64], 8
jne 0x140253e65
dec cx
jne 0x140253e6c
cmp byte [r15 + 0x62], 0
je 0x140253e6c
cmp r14w, 2
jne 0x140253e6c
or eax, 0x1001
jmp 0x140253e71
or eax, 0x10001
mov dword [rbx + 0x38], eax
cmp byte [rsp + 0xb9], 1
jbe 0x140253f68
or dword [rbx + 0x38], 0x200000
jmp 0x140253f68
test r14w, 0x100
je 0x140253ea1
or eax, 8
mov dword [rbx + 0x38], eax
jmp 0x140253f68
mov rcx, qword [rsp + 0x158]
mov edx, dword [rcx + 0x44]
test r14d, 0x24
je 0x140253f22
or eax, 0x22
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov r8, r15
mov dword [rbx + 0x38], eax
mov qword [rsp + 0x20], r13
call fcn.1402567b0
mov word [rbx + 0x1a], ax
test byte [r13 + 0x13], 1
je 0x140253f5b
movzx r8d, word [rbx + 0x3c]
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
lea rbp, [r13 + 0x38]
inc r8d
call fcn.1402556b0
mov esi, eax
test eax, eax
jne 0x140253d17
movzx eax, word [rbx + 0x3c]
mov rdx, qword [rbx + 0x48]
mov r12, r13
lea ecx, [rax + 1]
mov word [rbx + 0x3c], cx
mov qword [rdx + rax*8], rbp
or dword [rbx + 0x38], 0x10
mov word [rbx + 0x1c], 1
jmp 0x140253f68
or eax, 0x12
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov r8, r15
mov dword [rbx + 0x38], eax
mov qword [rsp + 0x20], r13
call fcn.1402567b0
mov word [rbx + 0x1c], ax
test byte [rbx + 0x38], 0x20
je 0x140253f62
movzx edx, word [rbx + 0x3c]
mov rax, qword [rbx + 0x48]
mov rbp, r13
mov r12, qword [rax + rdx*8 - 0x10]
jmp 0x140253f68
mov r12, r13
xor ebp, ebp
jmp 0x140253f68
mov rbp, r13
xor r12d, r12d
mov r11d, dword [rbx + 0x38]
mov ax, word [rbx + 0x16]
test r11d, 2
je 0x140253ff5
movsx r10d, ax
test r12, r12
je 0x140253f9b
mov edx, dword [r12 + 0x10]
test dx, dx
jg 0x140253f90
add eax, edx
jmp 0x140253f9b
test byte [r12 + 0x12], 0x80
jne 0x140253f9b
sub eax, 0x14
test rbp, rbp
je 0x140253fcb
mov edx, dword [rbp + 0x10]
test dx, dx
jg 0x140253fac
add eax, edx
jmp 0x140253fb5
test byte [rbp + 0x12], 0x80
jne 0x140253fb5
sub eax, 0x14
test r12, r12
je 0x140253fcb
cmp word [r12 + 0x10], 0
jle 0x140253fcb
test dx, dx
jle 0x140253fcb
sub eax, 0x14
xor edx, edx
test r12, r12
setne dl
cmp rbp, 1
sbb edx, 0xffffffff
sub r10d, edx
mov edx, 0xa
cmp ax, dx
cmovl eax, edx
cwde
cmp r10d, eax
cmovle eax, r10d
mov r13d, eax
jmp 0x140254043
mov ecx, dword [rbx + 0x18]
mov r10d, dword [r13 + 0x10]
lea edx, [rcx + 1]
mov word [rbx + 0x18], dx
test r10w, r10w
jg 0x140254025
mov rcx, qword [r15 + 8]
mov r9, qword [rsp + 0x30]
cmp word [rcx + r9], 0
js 0x140254025
add r10d, eax
sub r10d, esi
mov r13d, r10d
jmp 0x140254043
mov rcx, qword [r15 + 0x10]
movzx edx, dx
add ax, word [rcx + rdx*2]
sub ax, word [rcx + rdx*2 - 2]
test r14w, 0x100
lea r13d, [rax + 0xa]
cmove r13d, eax
mov rcx, qword [rsp + 0x158]
movsx eax, word [r15 + 0x5c]
mov word [rbx + 0x16], r13w
imul eax, eax, 0xf
mov rdx, qword [rcx + 0x20]
movsx ecx, word [rdx + 0x3c]
cdq
idiv ecx
mov ecx, dword [rsp + 0x84]
lea eax, [r13 + rax + 1]
movsx edx, ax
call fcn.140221b20
and r11d, 0x140
jne 0x14025408f
lea edx, [r13 + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.140221b20
add esi, dword [rsp + 0x68]
mov rcx, qword [rdi + 8]
mov word [rbx + 0x14], ax
mov rdx, rbx
lea eax, [r13 + rsi]
add word [rbx + 0x14], si
mov r8d, dword [rsp + 0x60]
mov word [rbx + 0x16], ax
call fcn.140255540
mov rdx, rbx
mov rcx, rdi
call fcn.140255300
mov r10d, r13d
mov r14d, eax
mov eax, dword [rbx + 0x38]
test al, 2
cmovne r10w, word [rsp + 0x54]
mov word [rbx + 0x16], r10w
test al, 0x10
jne 0x14025410e
mov eax, dword [rbx + 0x18]
cmp ax, word [r15 + 0x60]
jae 0x14025410e
cmp ax, word [r15 + 0x5e]
jb 0x1402540f7
mov al, byte [r15 + 0x64]
and eax, 3
cmp al, 2
je 0x14025410e
mov rdx, qword [rsp + 0x158]
movsx r9d, si
mov r8, r15
mov rcx, rdi
call fcn.140253ac0
mov eax, dword [rsp + 0x54]
mov word [rbx + 0x16], ax
lea rcx, [rsp + 0x90]
call fcn.1402569e0
mov r13, rax
jmp 0x140253c07
mov rax, qword [rsp + 0x58]
mov si, word [rsp + 0x6e]
mov qword [rbx], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x16], rax
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x38], rax
cmp word [rsp + 0x44], si
jne 0x140254246
mov eax, dword [rsp + 0x40]
movzx edx, word [r15 + 0x5e]
inc eax
cmp eax, edx
jge 0x140254246
mov si, word [rsp + 0x46]
cmp word [rsp + 0x44], si
jne 0x140254246
mov al, byte [r15 + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x140254246
mov rax, qword [rsp + 0x38]
test byte [rax + 0x61], 0x40
jne 0x140254246
mov rax, qword [r15 + 0x10]
mov rsi, qword [rsp + 0x30]
cmp word [rax + rsi + 2], 0x29
jle 0x140254246
movzx r8d, word [rsp + 0x46]
mov rcx, qword [rsp + 0x38]
mov rdx, rbx
inc r8d
call fcn.1402556b0
mov r14d, eax
test eax, eax
jne 0x140254246
movzx eax, word [rbx + 0x3c]
mov rdx, qword [rbx + 0x48]
mov r8, r15
inc word [rbx + 0x18]
mov rsi, qword [rsp + 0x30]
lea ecx, [rax + 1]
inc word [rbx + 0x3e]
mov word [rbx + 0x3c], cx
xor ecx, ecx
mov qword [rdx + rax*8], rcx
mov rax, qword [r15 + 0x10]
mov rcx, rdi
or dword [rbx + 0x38], 0x8000
mov r9w, word [rax + rsi]
mov ax, word [rax + rsi + 2]
mov esi, dword [rsp + 0x64]
mov edx, eax
sub edx, r9d
add word [rbx + 0x16], dx
lea r9d, [r9 + rsi + 5]
mov rdx, qword [rsp + 0x158]
sub r9d, eax
movsx r9d, r9w
call fcn.140253ac0
mov eax, dword [rsp + 0x54]
mov word [rbx + 0x16], ax
mov eax, dword [rsp + 0x44]
mov word [rbx + 0x18], ax
mov word [rbx + 0x3e], ax
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x38], eax
mov eax, r14d
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret