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

Disassembly:
push rbx
push rsi
push r12
push r14
sub rsp, 0x78
mov r14, qword [rcx + 0xe0]
xor r8d, r8d
mov rbx, rcx
mov r12d, dword [rcx + 0x4c]
mov rsi, r14
mov dword [rsp + 0x3c], r12d
mov dword [rsp + 0xb8], r8d
mov dword [rsp + 0x20], r8d
cmp dword [rcx + 0x70], r8d
je 0x140002885
movsxd rax, dword [rbx + 0xd0]
mov r9d, dword [rbx + 0x3c]
mov edx, dword [rbx + 0x18]
mov qword [rsp + 0x70], rbp
mov ebp, r8d
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r13
mov r13d, dword [rcx]
mov ecx, dword [rcx + 0x64]
sub r9d, ecx
cmp ecx, dword [rbx + 0x3c]
mov qword [rsp + 0x58], r15
mov r15d, r8d
cmovae r9d, r8d
mov dword [rsp + 0xa8], edx
mov dword [rsp + 0xb0], r9d
mov qword [rsp + 0x48], rax
test rax, rax
jle 0x1400021c9
mov eax, r13d
mov ecx, r8d
shr eax, 8
mov dword [rsp + 0x24], eax
mov eax, r13d
mov r12d, dword [rsp + 0x24]
shr eax, 0x10
mov dword [rsp + 0x28], eax
mov eax, r13d
shr eax, 0x18
mov dword [rsp + 0x2c], eax
movzx eax, r9w
shr ax, 8
mov word [rsp + 0xa0], ax
mov eax, edx
shr eax, 8
mov dword [rsp + 0x30], eax
mov eax, edx
shr eax, 0x10
mov dword [rsp + 0x34], eax
mov eax, edx
shr eax, 0x18
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x40], rcx
nop word [rax + rax]
mov edi, esi
sub edi, r14d
lea eax, [rdi + 0x18]
cmp eax, dword [rbx + 4]
jle 0x140002117
test byte [rbx + 0xf8], 1
je 0x1400020e7
cmp qword [rbx + 0x108], 0
je 0x1400020e7
mov r9d, edi
lea r8, [0x14021d5c8]
mov edx, 1
mov rcx, rbx
call fcn.140001010
test edi, edi
je 0x140002100
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, edi
mov rcx, r14
call qword [rbx + 0x100]
mov edx, dword [rsp + 0xa8]
mov rsi, r14
mov rcx, qword [rsp + 0x40]
mov r9d, dword [rsp + 0xb0]
mov rax, qword [rbx + 0xc8]
mov ebp, dword [rax + rcx*8]
mov r15d, dword [rax + rcx*8 + 4]
inc rcx
mov eax, dword [rsp + 0x28]
mov byte [rsi + 2], al
mov eax, dword [rsp + 0x2c]
mov byte [rsi + 3], al
movzx eax, word [rsp + 0xa0]
mov byte [rsi + 7], al
mov eax, r15d
shr eax, 8
mov byte [rsi + 9], al
mov eax, r15d
shr eax, 0x10
mov byte [rsi + 0xa], al
mov eax, r15d
shr eax, 0x18
mov byte [rsi + 0xb], al
mov eax, ebp
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, ebp
shr eax, 0x10
mov byte [rsi + 0xe], al
mov eax, ebp
shr eax, 0x18
mov byte [rsi + 0xf], al
mov eax, dword [rsp + 0x30]
mov byte [rsi + 0x11], al
mov eax, dword [rsp + 0x34]
mov byte [rsi + 0x12], al
mov eax, dword [rsp + 0x38]
mov byte [rsi + 0x13], al
mov byte [rsi], r13b
mov byte [rsi + 1], r12b
mov word [rsi + 4], 0x52
mov byte [rsi + 6], r9b
mov byte [rsi + 8], r15b
mov byte [rsi + 0xc], bpl
mov byte [rsi + 0x10], dl
mov dword [rsi + 0x14], 0
add rsi, 0x18
mov qword [rsp + 0x40], rcx
cmp rcx, qword [rsp + 0x48]
jl 0x1400020b0
mov r12d, dword [rsp + 0x3c]
xor r8d, r8d
cmp dword [rbx + 0x40], 0
mov dword [rbx + 0xd0], r8d
jne 0x14000254e
mov ecx, dword [rbx + 0x78]
test ecx, ecx
jne 0x1400021f5
mov eax, dword [rbx + 0x4c]
add eax, 0x1b58
mov dword [rbx + 0x78], 0x1b58
mov dword [rbx + 0x74], eax
jmp 0x14000223b
mov edx, dword [rbx + 0x4c]
cmp edx, dword [rbx + 0x74]
js 0x140002234
cmp ecx, 0x1b58
jae 0x14000220f
mov eax, 0x2904
mov dword [rbx + 0x78], eax
jmp 0x14000222b
mov eax, ecx
shr eax, 1
add eax, ecx
mov dword [rbx + 0x78], eax
cmp eax, 0x1d4c0
jbe 0x14000222b
mov dword [rbx + 0x78], 0x1d4c0
mov eax, 0x1d4c0
add eax, edx
or dword [rbx + 0x48], 1
mov dword [rbx + 0x74], eax
mov edx, dword [rsp + 0xa8]
test byte [rbx + 0x48], 1
lea rcx, [rbx + 0x48]
je 0x140002343
mov edi, esi
sub edi, r14d
lea eax, [rdi + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1400022af
test byte [rbx + 0xf8], 1
je 0x140002280
cmp qword [rbx + 0x108], 0
je 0x140002280
mov r9d, edi
lea r8, [0x14021d5c8]
mov edx, 1
mov rcx, rbx
call fcn.140001010
test edi, edi
je 0x140002299
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, edi
mov rcx, r14
call qword [rbx + 0x100]
mov edx, dword [rsp + 0xa8]
lea rcx, [rbx + 0x48]
mov r9d, dword [rsp + 0xb0]
mov rsi, r14
mov eax, r13d
mov byte [rsi], r13b
shr eax, 8
mov byte [rsi + 1], al
mov eax, r13d
shr eax, 0x10
mov byte [rsi + 2], al
mov eax, r13d
shr eax, 0x18
mov byte [rsi + 3], al
movzx eax, r9w
shr ax, 8
mov byte [rsi + 7], al
mov eax, r15d
shr eax, 8
mov byte [rsi + 9], al
mov eax, r15d
shr eax, 0x10
mov byte [rsi + 0xa], al
mov eax, r15d
shr eax, 0x18
mov byte [rsi + 0xb], al
mov eax, ebp
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, ebp
shr eax, 0x10
mov byte [rsi + 0xe], al
mov eax, ebp
shr eax, 0x18
mov byte [rsi + 0xf], al
mov eax, edx
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, edx
shr eax, 0x10
mov byte [rsi + 0x12], al
mov eax, edx
shr eax, 0x18
mov byte [rsi + 0x13], al
mov word [rsi + 4], 0x53
mov byte [rsi + 6], r9b
mov byte [rsi + 8], r15b
mov byte [rsi + 0xc], bpl
mov byte [rsi + 0x10], dl
mov dword [rsi + 0x14], 0
add rsi, 0x18
test byte [rcx], 2
je 0x140002441
mov edi, esi
sub edi, r14d
lea eax, [rdi + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1400023b2
test byte [rbx + 0xf8], 1
je 0x140002383
cmp qword [rbx + 0x108], 0
je 0x140002383
mov r9d, edi
lea r8, [0x14021d5c8]
mov edx, 1
mov rcx, rbx
call fcn.140001010
test edi, edi
je 0x14000239c
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, edi
mov rcx, r14
call qword [rbx + 0x100]
mov edx, dword [rsp + 0xa8]
lea rcx, [rbx + 0x48]
mov r9d, dword [rsp + 0xb0]
mov rsi, r14
mov eax, r13d
mov byte [rsi], r13b
shr eax, 8
mov byte [rsi + 1], al
mov eax, r13d
shr eax, 0x10
mov byte [rsi + 2], al
movzx eax, r9w
shr ax, 8
mov byte [rsi + 7], al
mov eax, r15d
shr eax, 8
mov byte [rsi + 9], al
mov eax, r15d
shr eax, 0x10
mov byte [rsi + 0xa], al
mov eax, ebp
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, ebp
shr eax, 0x10
mov byte [rsi + 0xe], al
mov eax, edx
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, edx
mov byte [rsi + 8], r15b
mov byte [rsi + 0xc], bpl
mov byte [rsi + 0x10], dl
shr eax, 0x10
shr r13d, 0x18
shr r15d, 0x18
shr ebp, 0x18
shr edx, 0x18
mov byte [rsi + 0x12], al
mov byte [rsi + 3], r13b
mov word [rsi + 4], 0x54
mov byte [rsi + 6], r9b
mov byte [rsi + 0xb], r15b
mov byte [rsi + 0xf], bpl
mov byte [rsi + 0x13], dl
mov dword [rsi + 0x14], 0
add rsi, 0x18
mov r15d, dword [rbx + 0x40]
xor r10d, r10d
cmp dword [rbx + 0x38], r15d
mov dword [rcx], r10d
cmovbe r15d, dword [rbx + 0x38]
mov dword [rsp + 0xa8], r15d
cmp dword [rbx + 0xf0], r10d
jne 0x140002476
cmp dword [rbx + 0x44], r15d
cmovbe r15d, dword [rbx + 0x44]
mov dword [rsp + 0xa8], r15d
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r15d
jns 0x140002527
lea r8, [rbx + 0x88]
nop dword [rax]
mov rdx, qword [r8]
cmp r8, rdx
je 0x140002527
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdx + 8]
mov rax, qword [rdx]
mov qword [rcx], rax
mov qword [rdx], r10
mov qword [rdx + 8], r10
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
dec dword [rbx + 0x68]
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], r9d
mov dword [rdx + 0x20], r12d
mov ecx, dword [rbx + 0x14]
lea eax, [rcx + 1]
mov dword [rbx + 0x14], eax
mov dword [rdx + 0x24], ecx
mov eax, dword [rbx + 0x18]
mov dword [rdx + 0x28], eax
mov dword [rdx + 0x30], r12d
mov eax, dword [rbx + 0x30]
mov dword [rdx + 0x34], eax
mov qword [rdx + 0x38], r10
mov eax, dword [rbx + 0x14]
sub eax, r15d
cmp eax, dword [rbx + 0x10]
js 0x140002490
mov eax, dword [rbx + 0xe8]
mov ebp, 0xffffffff
test eax, eax
cmovg ebp, eax
mov dword [rsp + 0xa0], ebp
cmp dword [rbx + 0x6c], r10d
jne 0x14000255b
mov r13d, dword [rbx + 0x30]
sar r13d, 3
jmp 0x14000255e
mov qword [rbx + 0x74], 0
jmp 0x14000223b
mov r13d, r10d
lea rax, [rbx + 0xa8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x140002796
mov r15d, r10d
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
jne 0x140002591
mov dword [rdi + 0x3c], 1
mov eax, dword [rbx + 0x30]
mov dword [rdi + 0x34], eax
lea ecx, [rax + r13]
jmp 0x140002617
cmp r12d, dword [rdi + 0x30]
js 0x1400025ec
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
inc dword [rbx + 0x58]
mov eax, dword [rbx + 0x6c]
test eax, eax
jne 0x1400025c6
mov eax, dword [rdi + 0x34]
mov ecx, dword [rbx + 0x30]
cmp eax, ecx
mov dword [rsp + 0x20], 1
cmovae ecx, eax
lea edx, [rcx + rax]
mov dword [rdi + 0x34], edx
lea ecx, [rdx + r12]
jmp 0x14000261a
cmp eax, 2
jae 0x1400025d0
mov eax, dword [rdi + 0x34]
jmp 0x1400025d3
mov eax, dword [rbx + 0x30]
cdq
mov dword [rsp + 0x20], 1
sub eax, edx
sar eax, 1
add dword [rdi + 0x34], eax
mov edx, dword [rdi + 0x34]
lea ecx, [rdx + r12]
jmp 0x14000261a
cmp dword [rdi + 0x38], ebp
jb 0x140002773
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x140002607
test eax, eax
jg 0x140002773
lea eax, [rcx + 1]
mov dword [rdi + 0x38], r10d
mov ecx, dword [rdi + 0x34]
inc r15d
mov dword [rdi + 0x3c], eax
add ecx, r12d
mov dword [rdi + 0x30], ecx
mov ebp, esi
sub ebp, r14d
mov dword [rdi + 0x20], r12d
mov dword [rdi + 0x1c], r9d
mov eax, dword [rbx + 0x18]
mov dword [rdi + 0x28], eax
lea ecx, [rbp + 0x18]
add ecx, dword [rdi + 0x2c]
cmp ecx, dword [rbx + 4]
jle 0x14000268b
test byte [rbx + 0xf8], 1
je 0x14000266f
cmp qword [rbx + 0x108], 0
je 0x14000266f
mov r9d, ebp
lea r8, [0x14021d5c8]
mov edx, 1
mov rcx, rbx
call fcn.140001010
mov r9d, dword [rsp + 0x20]
mov dword [rsp + 0x20], r9d
test ebp, ebp
je 0x140002688
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, ebp
mov rcx, r14
call qword [rbx + 0x100]
mov rsi, r14
mov ecx, dword [rdi + 0x10]
mov eax, ecx
shr eax, 8
mov byte [rsi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 2], al
mov byte [rsi], cl
shr ecx, 0x18
mov byte [rsi + 3], cl
movzx eax, byte [rdi + 0x14]
mov byte [rsi + 4], al
movzx eax, byte [rdi + 0x18]
mov byte [rsi + 5], al
movzx eax, word [rdi + 0x1c]
mov byte [rsi + 6], al
shr ax, 8
mov byte [rsi + 7], al
mov ecx, dword [rdi + 0x20]
mov eax, ecx
shr eax, 8
mov byte [rsi + 9], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0xa], al
mov byte [rsi + 8], cl
shr ecx, 0x18
mov byte [rsi + 0xb], cl
mov ecx, dword [rdi + 0x24]
mov eax, ecx
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0xe], al
mov byte [rsi + 0xc], cl
shr ecx, 0x18
mov byte [rsi + 0xf], cl
mov ecx, dword [rdi + 0x28]
mov eax, ecx
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0x12], al
mov byte [rsi + 0x10], cl
shr ecx, 0x18
mov byte [rsi + 0x13], cl
mov ecx, dword [rdi + 0x2c]
mov eax, ecx
shr eax, 8
mov byte [rsi + 0x15], al
mov eax, ecx
mov byte [rsi + 0x14], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [rsi + 0x16], al
mov byte [rsi + 0x17], cl
add rsi, 0x18
mov eax, dword [rdi + 0x2c]
test eax, eax
je 0x140002752
mov r8d, eax
lea rdx, [rdi + 0x40]
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov eax, dword [rdi + 0x2c]
add rsi, rax
mov eax, dword [rbx + 0x7c]
xor r10d, r10d
mov ebp, dword [rsp + 0xa0]
mov r9d, dword [rsp + 0xb0]
cmp dword [rdi + 0x3c], eax
jb 0x140002773
mov dword [rbx + 0xc], 0xffffffff
mov rdi, qword [rdi]
lea rax, [rbx + 0xa8]
cmp rdi, rax
jne 0x140002574
mov dword [rsp + 0xb8], r15d
mov r15d, dword [rsp + 0xa8]
mov r13, qword [rsp + 0x60]
sub esi, r14d
mov rdi, qword [rsp + 0x68]
test esi, esi
jle 0x1400027e6
test byte [rbx + 0xf8], 1
je 0x1400027d1
cmp qword [rbx + 0x108], 0
je 0x1400027d1
mov r9d, esi
lea r8, [0x14021d5c8]
mov edx, 1
mov rcx, rbx
call fcn.140001010
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, esi
mov rcx, r14
call qword [rbx + 0x100]
cmp dword [rsp + 0xb8], 0
je 0x140002827
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
shr eax, 1
mov dword [rbx + 0x24], eax
cmp eax, 2
jae 0x14000280c
mov dword [rbx + 0x24], 2
mov eax, 2
add eax, ebp
lea rcx, [rbx + 0x44]
lea rdx, [rbx + 8]
mov dword [rcx], eax
imul eax, dword [rdx]
lea r8, [rbx + 0x80]
mov dword [r8], eax
jmp 0x140002836
lea rcx, [rbx + 0x44]
lea rdx, [rbx + 8]
lea r8, [rbx + 0x80]
cmp dword [rsp + 0x20], 0
mov rbp, qword [rsp + 0x70]
je 0x140002870
shr r15d, 1
mov dword [rbx + 0x24], r15d
cmp r15d, 2
jae 0x140002865
mov dword [rbx + 0x24], 2
lea rcx, [rbx + 0x44]
lea rdx, [rbx + 8]
lea r8, [rbx + 0x80]
mov eax, dword [rdx]
mov dword [r8], eax
mov dword [rcx], 1
cmp dword [rcx], 1
mov r15, qword [rsp + 0x58]
jae 0x140002885
mov eax, dword [rdx]
mov dword [r8], eax
mov dword [rcx], 1
add rsp, 0x78
pop r14
pop r12
pop rsi
pop rbx
ret