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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
cmp dword [rcx + 0x70], 0
je 0x1400027f0
mov rsi, rcx
mov eax, dword [rcx + 0x4c]
mov dword [rsp + 0x2c], eax
mov rdi, qword [rcx + 0xe0]
mov r9d, dword [rcx]
mov r8d, dword [rcx + 0x18]
mov ebp, dword [rcx + 0x3c]
xor r15d, r15d
sub ebp, dword [rcx + 0x64]
cmovb ebp, r15d
mov r12d, dword [rcx + 0xd0]
mov r13d, 0
mov rbx, rdi
test r12d, r12d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r9d
jle 0x140002283
xor r14d, r14d
mov rbx, rdi
jmp 0x14000220c
mov rax, qword [rsi + 0xc8]
mov r13d, dword [rax + r14*8]
mov r15d, dword [rax + r14*8 + 4]
mov dword [rbx], r9d
mov word [rbx + 4], 0x52
mov word [rbx + 6], bp
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], r13d
mov dword [rbx + 0x10], r8d
mov dword [rbx + 0x14], 0
add rbx, 0x18
inc r14
cmp r12, r14
je 0x140002283
mov r15d, ebx
sub r15d, edi
lea eax, [r15 + 0x18]
cmp eax, dword [rsi + 4]
jle 0x1400021d0
test byte [rsi + 0xf8], 1
je 0x14000224f
cmp qword [rsi + 0x108], 0
je 0x14000224f
mov rcx, rsi
mov edx, 1
lea r8, [0x1405d5218]
mov r9d, r15d
call fcn.140001010
mov r9d, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x30]
mov rbx, rdi
test r15d, r15d
je 0x1400021d0
mov r9, qword [rsi + 0xd8]
mov rcx, rdi
mov edx, r15d
mov r8, rsi
call qword [rsi + 0x100]
mov r9d, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x30]
mov rbx, rdi
jmp 0x1400021d0
mov dword [rsi + 0xd0], 0
cmp dword [rsi + 0x40], 0
je 0x1400026f3
mov qword [rsi + 0x74], 0
mov r12d, ebp
mov ebp, dword [rsp + 0x2c]
mov eax, dword [rsi + 0x48]
test al, 1
je 0x140002347
mov r14d, ebx
sub r14d, edi
lea eax, [r14 + 0x18]
cmp eax, dword [rsi + 4]
jle 0x14000231f
test byte [rsi + 0xf8], 1
je 0x1400022f4
cmp qword [rsi + 0x108], 0
je 0x1400022f4
lea r8, [0x1405d5218]
mov rcx, rsi
mov edx, 1
mov r9d, r14d
call fcn.140001010
mov r9d, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x30]
mov rbx, rdi
test r14d, r14d
je 0x14000231f
mov r9, qword [rsi + 0xd8]
mov rcx, rdi
mov edx, r14d
mov r8, rsi
call qword [rsi + 0x100]
mov r9d, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x30]
mov rbx, rdi
mov dword [rbx], r9d
mov word [rbx + 4], 0x53
mov word [rbx + 6], r12w
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], r13d
mov dword [rbx + 0x10], r8d
mov dword [rbx + 0x14], 0
add rbx, 0x18
mov eax, dword [rsi + 0x48]
test al, 2
je 0x1400023e2
mov r14d, ebx
sub r14d, edi
lea eax, [r14 + 0x18]
cmp eax, dword [rsi + 4]
jle 0x1400023bd
test byte [rsi + 0xf8], 1
je 0x140002392
cmp qword [rsi + 0x108], 0
je 0x140002392
lea r8, [0x1405d5218]
mov rcx, rsi
mov edx, 1
mov r9d, r14d
call fcn.140001010
mov r9d, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x30]
mov rbx, rdi
test r14d, r14d
je 0x1400023bd
mov r9, qword [rsi + 0xd8]
mov rcx, rdi
mov edx, r14d
mov r8, rsi
call qword [rsi + 0x100]
mov r9d, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x30]
mov rbx, rdi
mov dword [rbx], r9d
mov word [rbx + 4], 0x54
mov word [rbx + 6], r12w
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], r13d
mov dword [rbx + 0x10], r8d
mov dword [rbx + 0x14], 0
add rbx, 0x18
mov dword [rsi + 0x48], 0
mov eax, dword [rsi + 0x38]
mov r10d, dword [rsi + 0x40]
cmp eax, r10d
cmovb r10d, eax
cmp dword [rsi + 0xf0], 0
jne 0x14000240a
mov eax, dword [rsi + 0x44]
cmp eax, r10d
cmovb r10d, eax
mov eax, dword [rsi + 0x10]
add eax, r10d
cmp dword [rsi + 0x14], eax
jns 0x1400024c4
lea rax, [rsi + 0x88]
lea rcx, [rsi + 0xa8]
xorps xmm0, xmm0
nop word [rax + rax]
mov rdx, qword [rax]
cmp rax, rdx
je 0x1400024c4
mov r8, qword [rdx]
mov r9, qword [rdx + 8]
mov qword [r8 + 8], r9
mov r8, qword [rdx]
mov qword [r9], r8
movups xmmword [rdx], xmm0
mov r8, qword [rsi + 0xb0]
mov qword [rdx + 8], r8
mov qword [rdx], rcx
mov r8, qword [rsi + 0xb0]
mov qword [r8], rdx
mov qword [rsi + 0xb0], rdx
dec dword [rsi + 0x68]
inc dword [rsi + 0x60]
mov r8d, dword [rsi]
mov dword [rdx + 0x10], r8d
mov dword [rdx + 0x14], 0x51
mov dword [rdx + 0x1c], r12d
mov dword [rdx + 0x20], ebp
mov r8d, dword [rsi + 0x14]
lea r9d, [r8 + 1]
mov dword [rsi + 0x14], r9d
mov dword [rdx + 0x24], r8d
mov r8d, dword [rsi + 0x18]
mov dword [rdx + 0x28], r8d
mov dword [rdx + 0x30], ebp
mov r8d, dword [rsi + 0x30]
mov dword [rdx + 0x34], r8d
mov qword [rdx + 0x38], 0
mov edx, dword [rsi + 0x10]
add edx, r10d
cmp dword [rsi + 0x14], edx
js 0x140002430
mov dword [rsp + 0x44], r10d
mov eax, dword [rsi + 0xe8]
test eax, eax
mov ecx, 0xffffffff
cmovg ecx, eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x28], 0
cmp dword [rsi + 0x6c], 0
jne 0x1400024f5
mov eax, dword [rsi + 0x30]
sar eax, 3
mov dword [rsp + 0x28], eax
lea r13, [rsi + 0xa8]
mov r14, qword [rsi + 0xa8]
cmp r14, r13
je 0x140002744
lea rax, [rsi + 0x30]
mov qword [rsp + 0x30], rax
add dword [rsp + 0x28], ebp
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x3c], 0
jmp 0x14000253c
mov r14, qword [r14]
cmp r14, r13
je 0x1400026df
mov eax, dword [r14 + 0x3c]
test eax, eax
je 0x140002580
cmp ebp, dword [r14 + 0x30]
js 0x1400025a0
inc eax
mov dword [r14 + 0x3c], eax
inc dword [rsi + 0x58]
mov ecx, dword [rsi + 0x6c]
cmp ecx, 1
je 0x1400025da
mov rax, qword [rsp + 0x30]
test ecx, ecx
jne 0x1400025de
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov ecx, dword [r14 + 0x34]
cmp ecx, eax
cmova eax, ecx
add eax, ecx
jmp 0x1400025ed
mov dword [r14 + 0x3c], 1
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov dword [r14 + 0x34], eax
add eax, dword [rsp + 0x28]
mov dword [r14 + 0x30], eax
jmp 0x1400025ff
mov ecx, dword [rsp + 0x40]
cmp dword [r14 + 0x38], ecx
jb 0x140002530
mov ecx, dword [rsi + 0xec]
cmp eax, ecx
jle 0x1400025bc
test ecx, ecx
jg 0x140002530
inc eax
mov dword [r14 + 0x3c], eax
mov dword [r14 + 0x38], 0
mov eax, dword [r14 + 0x34]
add eax, ebp
mov dword [r14 + 0x30], eax
inc dword [rsp + 0x3c]
jmp 0x1400025ff
lea rax, [r14 + 0x34]
mov ecx, dword [rax]
mov eax, ecx
shr eax, 0x1f
add eax, ecx
sar eax, 1
add eax, dword [r14 + 0x34]
mov dword [r14 + 0x34], eax
add eax, ebp
mov dword [r14 + 0x30], eax
mov dword [rsp + 0x2c], 1
mov dword [r14 + 0x20], ebp
mov dword [r14 + 0x1c], r12d
mov eax, dword [rsi + 0x18]
mov dword [r14 + 0x28], eax
mov r15d, ebx
sub r15d, edi
mov eax, dword [r14 + 0x2c]
add eax, r15d
add eax, 0x18
cmp eax, dword [rsi + 4]
jle 0x14000266e
test byte [rsi + 0xf8], 1
je 0x14000264d
cmp qword [rsi + 0x108], 0
je 0x14000264d
mov rcx, rsi
mov edx, 1
lea r8, [0x1405d5218]
mov r9d, r15d
call fcn.140001010
mov rbx, rdi
test r15d, r15d
je 0x14000266e
mov r9, qword [rsi + 0xd8]
mov rcx, rdi
mov edx, r15d
mov r8, rsi
call qword [rsi + 0x100]
mov rbx, rdi
mov eax, dword [r14 + 0x10]
mov dword [rbx], eax
movzx eax, byte [r14 + 0x14]
mov byte [rbx + 4], al
movzx eax, byte [r14 + 0x18]
mov byte [rbx + 5], al
movzx eax, word [r14 + 0x1c]
mov word [rbx + 6], ax
mov eax, dword [r14 + 0x20]
mov dword [rbx + 8], eax
mov eax, dword [r14 + 0x24]
mov dword [rbx + 0xc], eax
mov eax, dword [r14 + 0x28]
mov dword [rbx + 0x10], eax
mov r8d, dword [r14 + 0x2c]
mov dword [rbx + 0x14], r8d
add rbx, 0x18
test r8, r8
je 0x1400026c6
lea rdx, [r14 + 0x40]
mov rcx, rbx
call fcn.1405750e0
mov eax, dword [r14 + 0x2c]
add rbx, rax
mov eax, dword [r14 + 0x3c]
cmp eax, dword [rsi + 0x7c]
jb 0x140002530
mov dword [rsi + 0xc], 0xffffffff
jmp 0x140002530
cmp dword [rsp + 0x3c], 0
sete r14b
cmp dword [rsp + 0x2c], 0
sete bpl
jmp 0x14000274a
mov ecx, dword [rsi + 0x78]
test ecx, ecx
mov r12d, ebp
je 0x140002801
mov eax, dword [rsi + 0x4c]
cmp eax, dword [rsi + 0x74]
mov ebp, dword [rsp + 0x2c]
js 0x1400022a6
cmp ecx, 0x1b59
mov edx, 0x1b58
cmovae edx, ecx
mov ecx, edx
shr ecx, 1
add ecx, edx
cmp ecx, 0x1d4c0
mov edx, 0x1d4c0
cmovb edx, ecx
mov dword [rsi + 0x78], edx
add edx, eax
mov dword [rsi + 0x74], edx
or byte [rsi + 0x48], 1
jmp 0x1400022a6
mov r14b, 1
mov bpl, 1
sub ebx, edi
test ebx, ebx
jle 0x14000278f
test byte [rsi + 0xf8], 1
je 0x14000277a
cmp qword [rsi + 0x108], 0
je 0x14000277a
lea r8, [0x1405d5218]
mov rcx, rsi
mov edx, 1
mov r9d, ebx
call fcn.140001010
mov r9, qword [rsi + 0xd8]
mov rcx, rdi
mov edx, ebx
mov r8, rsi
call qword [rsi + 0x100]
test r14b, r14b
jne 0x1400027bd
mov eax, dword [rsi + 0x14]
sub eax, dword [rsi + 0x10]
mov ecx, eax
shr ecx, 1
cmp eax, 4
mov eax, 2
cmovae eax, ecx
mov dword [rsi + 0x24], eax
add eax, dword [rsp + 0x40]
mov dword [rsi + 0x44], eax
imul eax, dword [rsi + 8]
mov dword [rsi + 0x80], eax
test bpl, bpl
mov ecx, dword [rsp + 0x44]
je 0x1400027ce
cmp dword [rsi + 0x44], 0
jne 0x1400027f0
jmp 0x1400027e0
mov eax, ecx
shr eax, 1
cmp ecx, 4
mov ecx, 2
cmovae ecx, eax
mov dword [rsi + 0x24], ecx
mov dword [rsi + 0x44], 1
mov eax, dword [rsi + 8]
mov dword [rsi + 0x80], eax
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsi + 0x78], 0x1b58
mov eax, 0x1b58
add eax, dword [rsi + 0x4c]
mov dword [rsi + 0x74], eax
jmp 0x1400022a2