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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xd0
mov rbx, rcx
test rcx, rcx
jne 0x14004c801
lea eax, [rcx + 0x14]
add rsp, 0xd0
pop rbx
ret
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [rsp + 0x44], eax
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x40], eax
test ecx, ecx
jne 0x14004c826
test eax, eax
je 0x14004cccd
mov rcx, rbx
call fcn.14004cd90
cmp eax, 2
jne 0x14004c84b
cmp word [rbx], 0
je 0x14004cccd
mov eax, 6
add rsp, 0xd0
pop rbx
ret
mov rcx, qword [rbx + 8]
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xc0], rdi
xor edi, edi
mov ebp, edi
cdqe
mov qword [rsp + 0xb8], r12
mov r12d, edi
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x54], edi
mov qword [rsp + 0x70], rax
cmp di, word [rbx]
jge 0x14004ccb5
mov qword [rsp + 0xc8], rsi
mov edx, edi
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0x80], rdx
nop word [rax + rax]
mov rax, qword [rbx + 0x18]
mov r10d, edi
mov dword [rsp + 0x50], edi
mov r9d, edi
mov dword [rsp + 0xf8], edi
mov r11d, edi
mov qword [rsp + 0x68], 0
mov r13d, r12d
movsx r8d, word [rdx + rax]
mov eax, 0xffffffff
mov dword [rsp + 0x30], eax
mov r14d, r8d
mov dword [rsp + 0x4c], r8d
mov qword [rsp + 0x20], 0
cmp r12d, r8d
je 0x14004cc6f
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x68]
movsxd rdx, r12d
mov qword [rsp + 0x90], rdx
mov r15, rdx
nop dword [rax]
nop dword [rax + rax]
mov dword [rsp + 0x58], eax
mov edx, eax
mov dword [rsp + 0x3c], r10d
mov dword [rsp + 0x38], eax
cmp r14d, eax
je 0x14004cc59
movsxd rbp, r14d
cmp r13d, eax
je 0x14004c99d
mov eax, dword [rcx + r15*8]
sub eax, dword [rcx + rbp*8]
mov dword [rsp + 0x28], eax
mov eax, dword [rcx + r15*8 + 4]
sub eax, dword [rcx + rbp*8 + 4]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x2c], eax
call fcn.14004f4a0
mov r9d, dword [rsp + 0xf8]
mov r10d, eax
mov dword [rsp + 0x48], eax
test eax, eax
je 0x14004cc1e
mov rbx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x30]
mov r11d, dword [rsp + 0x24]
mov edx, dword [rsp + 0x58]
jmp 0x14004c9aa
mov rbx, rsi
mov dword [rsp + 0x48], r10d
mov qword [rsp + 0x28], rbx
test r9d, r9d
je 0x14004cc06
movsxd r12, dword [rsp + 0x20]
test eax, eax
mov eax, r14d
movsxd r11, r11d
cmovs rsi, rdi
mov r8, rbx
test edx, edx
mov qword [rsp + 0x98], rsi
mov rdi, r11
mov qword [rsp + 0x68], rsi
cmovns eax, edx
mov rcx, r12
cmp dword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov eax, r9d
cmovge eax, dword [rsp + 0x3c]
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x28]
imul rcx, rax
shr r8, 0x20
movsxd rdx, r8d
imul rdi, rdx
mov rax, rdi
shr rax, 0x3f
sub rdi, rax
mov rax, rcx
add rdi, 0x8000
shr rax, 0x3f
sub rcx, rax
sar rdi, 0x10
add rcx, 0x8000
sar rcx, 0x10
add edi, ecx
cmp edi, 0xffff1000
jle 0x14004cb93
mov ecx, dword [rsp + 0x24]
add edi, 0x10000
add ecx, r8d
mov r8d, dword [rsp + 0x28]
add r8d, r12d
mov eax, r8d
neg eax
cmp qword [rsp + 0x70], 0
cmovne r8d, eax
mov eax, ecx
neg eax
mov dword [rsp + 0x38], r8d
mov r8, qword [rsp + 0x70]
test r8, r8
cmovne eax, ecx
mov dword [rsp + 0xf8], eax
movsxd rax, dword [rsp + 0x28]
imul r11, rax
imul rdx, r12
mov rax, r11
shr rax, 0x3f
sub r11, rax
add r11, 0x8000
sar r11, 0x10
mov rax, rdx
shr rax, 0x3f
sub rdx, rax
mov eax, r11d
add rdx, 0x8000
sar rdx, 0x10
sub eax, edx
sub edx, r11d
test r8, r8
mov r8d, r10d
cmovne edx, eax
cmp r9d, r10d
movsxd rax, edx
cmovl r8d, r9d
mov qword [rsp + 0x20], rax
movsxd r9, dword [rsp + 0x44]
mov rcx, r9
movsxd r10, r8d
imul rcx, rax
movsxd rax, edi
imul r10, rax
mov qword [rsp + 0x88], rdx
mov rax, r10
mov dword [rsp + 0x3c], r8d
shr rax, 0x3f
sub r10, rax
mov rax, rcx
shr rax, 0x3f
add r10, 0x8000
sub rcx, rax
sar r10, 0x10
add rcx, 0x8000
mov qword [rsp + 0x58], r10
sar rcx, 0x10
cmp ecx, r10d
jg 0x14004cb35
mov eax, r9d
mov r8d, edi
jmp 0x14004cb3b
mov eax, r8d
mov r8d, edx
mov ecx, dword [rsp + 0xf8]
mov edx, eax
call fcn.14004be00
mov r12d, eax
movsxd rax, dword [rsp + 0x40]
mov rdx, rax
imul rdx, qword [rsp + 0x20]
mov rcx, rdx
shr rcx, 0x3f
sub rdx, rcx
add rdx, 0x8000
sar rdx, 0x10
cmp edx, dword [rsp + 0x58]
jle 0x14004cb80
mov edi, dword [rsp + 0x88]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
mov r8d, edi
mov edx, eax
call fcn.14004be00
mov r9d, eax
jmp 0x14004cb99
xor r9d, r9d
xor r12d, r12d
cmp rbp, r15
je 0x14004cbff
movsxd r8, dword [rsp + 0x4c]
mov r10d, dword [rsp + 0x34]
mov ebx, dword [rsp + 0x40]
mov r11, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x90]
mov esi, dword [rsp + 0x44]
nop dword [rax]
mov ecx, dword [r11 + rbp*8]
lea eax, [r9 + rbx]
add dword [r11 + rbp*8 + 4], eax
add ecx, r12d
add ecx, esi
mov rdx, rbp
mov dword [r11 + rbp*8], ecx
inc rbp
cmp rdx, r8
cmovge rbp, rdi
inc r14d
cmp rdx, r8
cmovge r14d, r10d
cmp rbp, r15
jne 0x14004cbc0
mov rbx, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x98]
mov r12d, dword [rsp + 0x34]
jmp 0x14004cc09
mov r14d, r13d
mov r9d, dword [rsp + 0x48]
mov rdi, rbx
mov dword [rsp + 0xf8], r9d
mov qword [rsp + 0x20], rbx
mov r8d, dword [rsp + 0x4c]
mov eax, r13d
mov rcx, qword [rsp + 0x78]
inc r13d
mov r11d, dword [rsp + 0x24]
cmp eax, r8d
mov r10d, dword [rsp + 0x50]
cmovge r13d, r12d
inc r15
cmp eax, r8d
movsxd rax, r12d
cmovge r15, rax
mov eax, dword [rsp + 0x30]
cmp r13d, r14d
jne 0x14004c930
mov rbx, qword [rsp + 0xe0]
xor edi, edi
mov ebp, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x80]
movsx eax, word [rbx]
lea r12d, [r8 + 1]
inc ebp
mov dword [rsp + 0x34], r12d
add rdx, 2
mov dword [rsp + 0x54], ebp
mov qword [rsp + 0x80], rdx
cmp ebp, eax
jl 0x14004c8c0
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xe8]
mov r12, qword [rsp + 0xb8]
xor eax, eax
add rsp, 0xd0
pop rbx
ret