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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
mov r15, qword [rcx + 0xe0]
xor edx, edx
mov rbx, rcx
mov r13d, dword [rcx + 0x4c]
mov rsi, r15
mov dword [rbp + 0x77], r13d
mov dword [rbp + 0x67], edx
mov dword [rbp - 0x49], edx
cmp dword [rcx + 0x70], edx
je 0x14004bd1b
mov eax, dword [rcx]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x25], 0x52
call fcn.14004b8d0
mov r14d, dword [rbx + 0xd0]
mov r12d, eax
mov ecx, dword [rcx + 0x18]
mov edi, edx
mov dword [rbp + 0x6f], eax
mov dword [rbp - 0x1d], eax
mov dword [rbp - 0x11], ecx
mov dword [rbp - 0xd], edx
mov qword [rbp - 0x19], rdx
test r14d, r14d
jle 0x14004b9a4
mov r8d, esi
sub r8d, r15d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x14004b972
mov rdx, r15
mov rcx, rbx
call fcn.14004aa40
mov rsi, r15
lea r9, [rbp - 0x19]
mov edx, edi
lea r8, [rbp - 0x15]
mov rcx, rbx
call fcn.14004b2c8
mov rcx, rsi
lea rdx, [rbp - 0x39]
call fcn.14004b80c
inc edi
mov rsi, rax
cmp edi, r14d
jl 0x14004b955
mov r12d, dword [rbp - 0x1d]
xor edx, edx
mov dword [rbp + 0x6f], r12d
mov dword [rbx + 0xd0], edx
cmp dword [rbx + 0x40], edx
jne 0x14004ba01
mov ecx, dword [rbx + 0x78]
test ecx, ecx
jne 0x14004b9c8
mov eax, dword [rbx + 0x4c]
mov edx, 0x1b58
add eax, edx
mov dword [rbx + 0x78], edx
mov dword [rbx + 0x74], eax
jmp 0x14004ba06
mov r8d, dword [rbx + 0x4c]
cmp r8d, dword [rbx + 0x74]
js 0x14004ba06
mov edx, 0x1b58
mov eax, 0x1d4c0
cmp ecx, edx
cmovb ecx, edx
mov edx, ecx
shr edx, 1
add edx, ecx
mov dword [rbx + 0x78], edx
cmp edx, eax
jbe 0x14004b9f3
mov dword [rbx + 0x78], eax
jmp 0x14004b9f5
mov eax, edx
add eax, r8d
or dword [rbx + 0x48], 1
mov dword [rbx + 0x74], eax
jmp 0x14004ba06
and qword [rbx + 0x74], 0
test byte [rbx + 0x48], 1
je 0x14004ba3f
mov r8d, esi
mov dword [rbp - 0x25], 0x53
sub r8d, r15d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x14004ba30
mov rdx, r15
mov rcx, rbx
call fcn.14004aa40
mov rsi, r15
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.14004b80c
mov rsi, rax
test byte [rbx + 0x48], 2
je 0x14004ba78
mov r8d, esi
mov dword [rbp - 0x25], 0x54
sub r8d, r15d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x14004ba69
mov rdx, r15
mov rcx, rbx
call fcn.14004aa40
mov rsi, r15
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.14004b80c
mov rsi, rax
mov r14d, dword [rbx + 0x40]
xor r9d, r9d
cmp dword [rbx + 0x38], r14d
mov dword [rbx + 0x48], r9d
cmovbe r14d, dword [rbx + 0x38]
mov dword [rbp + 0x7f], r14d
cmp dword [rbx + 0xf0], r9d
jne 0x14004baa6
cmp dword [rbx + 0x44], r14d
cmovbe r14d, dword [rbx + 0x44]
mov dword [rbp + 0x7f], r14d
mov eax, dword [rbx + 0x14]
or r10d, 0xffffffff
sub eax, r14d
cmp eax, dword [rbx + 0x10]
jns 0x14004bb55
lea r8, [rbx + 0x88]
mov rdx, qword [r8]
cmp r8, rdx
je 0x14004bb55
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx]
mov rcx, qword [rdx + 8]
mov qword [rcx], rax
mov qword [rdx], r9
mov qword [rdx + 8], r9
mov rax, qword [rbx + 0xb0]
mov qword [rdx + 8], rax
lea rax, [rbx + 0xa8]
mov qword [rdx], rax
mov rax, qword [rbx + 0xb0]
mov qword [rax], rdx
add dword [rbx + 0x68], r10d
inc dword [rbx + 0x60]
mov eax, dword [rbx]
mov qword [rbx + 0xb0], rdx
mov dword [rdx + 0x10], eax
mov dword [rdx + 0x14], 0x51
mov dword [rdx + 0x1c], r12d
mov dword [rdx + 0x20], r13d
mov eax, dword [rbx + 0x14]
mov dword [rdx + 0x24], eax
inc dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
mov dword [rdx + 0x28], eax
mov dword [rdx + 0x30], r13d
mov eax, dword [rbx + 0x30]
mov dword [rdx + 0x34], eax
mov qword [rdx + 0x38], r9
mov eax, dword [rbx + 0x14]
sub eax, r14d
cmp eax, dword [rbx + 0x10]
js 0x14004bac0
mov eax, dword [rbx + 0xe8]
mov r13d, r10d
test eax, eax
cmovg r13d, eax
cmp dword [rbx + 0x6c], r9d
jne 0x14004bb74
mov r12d, dword [rbx + 0x30]
sar r12d, 3
jmp 0x14004bb77
mov r12d, r9d
lea rax, [rbx + 0xa8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x14004bca8
mov r14d, dword [rbp + 0x6f]
mov ecx, dword [rdi + 0x3c]
mov edx, dword [rbp + 0x77]
test ecx, ecx
jne 0x14004bbab
mov dword [rdi + 0x3c], 1
mov eax, dword [rbx + 0x30]
mov dword [rdi + 0x34], eax
lea ecx, [rax + r12]
jmp 0x14004bc21
cmp edx, dword [rdi + 0x30]
js 0x14004bbf5
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
inc dword [rbx + 0x58]
cmp dword [rbx + 0x6c], r9d
jne 0x14004bbcc
mov ecx, dword [rbx + 0x30]
mov eax, dword [rdi + 0x34]
cmp eax, ecx
cmovae ecx, eax
jmp 0x14004bbe7
cmp dword [rbx + 0x6c], 2
jae 0x14004bbd9
mov eax, dword [rdi + 0x34]
mov ecx, eax
jmp 0x14004bbdf
mov eax, dword [rbx + 0x30]
mov ecx, dword [rdi + 0x34]
test eax, eax
jns 0x14004bbe5
inc eax
sar eax, 1
add ecx, eax
mov dword [rbp - 0x49], 1
mov dword [rdi + 0x34], ecx
jmp 0x14004bc21
cmp dword [rdi + 0x38], r13d
jb 0x14004bc91
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x14004bc11
test eax, eax
jg 0x14004bc91
inc dword [rbp + 0x67]
lea eax, [rcx + 1]
mov ecx, dword [rdi + 0x34]
mov dword [rdi + 0x3c], eax
mov dword [rdi + 0x38], r9d
lea eax, [rcx + rdx]
mov r8d, esi
mov dword [rdi + 0x30], eax
sub r8d, r15d
mov dword [rdi + 0x20], edx
mov dword [rdi + 0x1c], r14d
mov eax, dword [rbx + 0x18]
lea ecx, [r8 + 0x18]
mov dword [rdi + 0x28], eax
add ecx, dword [rdi + 0x2c]
cmp ecx, dword [rbx + 4]
jle 0x14004bc54
mov rdx, r15
mov rcx, rbx
call fcn.14004aa40
mov rsi, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14004b80c
xor r9d, r9d
mov rsi, rax
cmp dword [rdi + 0x2c], r9d
jbe 0x14004bc85
mov r8d, dword [rdi + 0x2c]
lea rdx, [rdi + 0x40]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_memcpy]
mov eax, dword [rdi + 0x2c]
add rsi, rax
xor r9d, r9d
mov eax, dword [rbx + 0x7c]
cmp dword [rdi + 0x3c], eax
jb 0x14004bc91
or dword [rbx + 0xc], 0xffffffff
mov rdi, qword [rdi]
lea rax, [rbx + 0xa8]
cmp rdi, rax
jne 0x14004bb8e
mov r14d, dword [rbp + 0x7f]
sub esi, r15d
test esi, esi
jle 0x14004bcc0
mov r8d, esi
mov rdx, r15
mov rcx, rbx
call fcn.14004aa40
xor r9d, r9d
mov ecx, 2
cmp dword [rbp + 0x67], r9d
je 0x14004bcef
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
shr eax, 1
mov dword [rbx + 0x24], eax
cmp eax, ecx
jae 0x14004bcdf
mov dword [rbx + 0x24], ecx
mov eax, ecx
add eax, r13d
mov dword [rbx + 0x44], eax
imul eax, dword [rbx + 8]
mov dword [rbx + 0x80], eax
cmp dword [rbp - 0x49], r9d
je 0x14004bd05
shr r14d, 1
cmp r14d, ecx
cmovb r14d, ecx
mov dword [rbx + 0x24], r14d
jmp 0x14004bd0b
cmp dword [rbx + 0x44], 1
jae 0x14004bd1b
mov eax, dword [rbx + 8]
mov dword [rbx + 0x80], eax
mov dword [rbx + 0x44], 1
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret