Function at 0x180001f3c
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 r13d, r13d
mov rbx, rcx
mov edi, dword [rcx + 0x4c]
mov rsi, r15
mov dword [rbp + 0x77], edi
mov dword [rbp + 0x67], r13d
mov dword [rbp - 0x49], r13d
cmp dword [rcx + 0x70], r13d
je 0x18000237e
mov eax, dword [rcx]
mov ecx, dword [rcx + 0x64]
movsxd r14, dword [rbx + 0xd0]
mov dword [rbp - 0x29], eax
mov eax, dword [rbx + 0x3c]
sub eax, ecx
mov qword [rbp - 0x25], 0x52
cmp ecx, dword [rbx + 0x3c]
mov dword [rbp - 0xd], r13d
sbb r12d, r12d
mov qword [rbp - 0x19], r13
and r12d, eax
mov eax, dword [rbx + 0x18]
mov dword [rbp - 0x45], r12d
mov dword [rbp - 0x1d], r12d
mov dword [rbp - 0x11], eax
test r14, r14
jle 0x18000200b
mov edi, r13d
mov r8d, esi
sub r8d, r15d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x180001fdd
mov rdx, r15
mov rcx, rbx
call fcn.18000107c
mov rsi, r15
mov rdx, qword [rbx + 0xc8]
mov rcx, rsi
mov eax, dword [rdx + rdi*8]
mov dword [rbp - 0x15], eax
mov eax, dword [rdx + rdi*8 + 4]
lea rdx, [rbp - 0x39]
mov dword [rbp - 0x19], eax
call fcn.180001e78
inc rdi
mov rsi, rax
cmp rdi, r14
jl 0x180001fc0
mov edi, dword [rbp + 0x77]
mov dword [rbx + 0xd0], r13d
cmp dword [rbx + 0x40], r13d
jne 0x180002068
mov ecx, dword [rbx + 0x78]
test ecx, ecx
jne 0x180002031
mov eax, dword [rbx + 0x4c]
mov edx, 0x1b58
add eax, edx
mov dword [rbx + 0x78], edx
mov dword [rbx + 0x74], eax
jmp 0x18000206c
mov r8d, dword [rbx + 0x4c]
cmp r8d, dword [rbx + 0x74]
js 0x18000206c
mov edx, 0x1b58
cmp ecx, edx
cmovb ecx, edx
mov eax, ecx
shr eax, 1
add eax, ecx
mov ecx, 0x1d4c0
mov dword [rbx + 0x78], eax
cmp eax, ecx
jbe 0x18000205c
mov dword [rbx + 0x78], ecx
mov eax, ecx
add eax, r8d
or dword [rbx + 0x48], 1
mov dword [rbx + 0x74], eax
jmp 0x18000206c
mov qword [rbx + 0x74], r13
test byte [rbx + 0x48], 1
je 0x1800020a5
mov r8d, esi
mov dword [rbp - 0x25], 0x53
sub r8d, r15d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x180002096
mov rdx, r15
mov rcx, rbx
call fcn.18000107c
mov rsi, r15
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.180001e78
mov rsi, rax
test byte [rbx + 0x48], 2
je 0x1800020de
mov r8d, esi
mov dword [rbp - 0x25], 0x54
sub r8d, r15d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1800020cf
mov rdx, r15
mov rcx, rbx
call fcn.18000107c
mov rsi, r15
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.180001e78
mov rsi, rax
mov r14d, dword [rbx + 0x40]
cmp dword [rbx + 0x38], r14d
mov dword [rbx + 0x48], r13d
cmovbe r14d, dword [rbx + 0x38]
mov dword [rbp + 0x7f], r14d
cmp dword [rbx + 0xf0], r13d
jne 0x180002109
cmp dword [rbx + 0x44], r14d
cmovbe r14d, dword [rbx + 0x44]
mov dword [rbp + 0x7f], r14d
mov eax, dword [rbx + 0x14]
or r9d, 0xffffffff
sub eax, dword [rbx + 0x10]
cmp eax, r14d
jns 0x1800021b6
lea r8, [rbx + 0x88]
mov rdx, qword [r8]
cmp r8, rdx
je 0x1800021b6
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], r13
mov qword [rdx + 8], r13
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], r9d
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], edi
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], edi
mov eax, dword [rbx + 0x30]
mov dword [rdx + 0x34], eax
mov qword [rdx + 0x38], r13
mov eax, dword [rbx + 0x14]
sub eax, r14d
cmp eax, dword [rbx + 0x10]
js 0x180002123
mov eax, dword [rbx + 0xe8]
mov edx, r9d
test eax, eax
cmovg edx, eax
mov dword [rbp + 0x6f], edx
cmp dword [rbx + 0x6c], r13d
jne 0x1800021d7
mov r12d, dword [rbx + 0x30]
sar r12d, 3
jmp 0x1800021da
mov r12d, r13d
lea r13, [rbx + 0xa8]
mov rdi, qword [r13]
cmp rdi, r13
je 0x180002305
mov r14d, dword [rbp + 0x77]
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
jne 0x18000220c
mov dword [rdi + 0x3c], 1
mov eax, dword [rbx + 0x30]
mov dword [rdi + 0x34], eax
lea ecx, [rax + r12]
jmp 0x180002285
cmp r14d, dword [rdi + 0x30]
js 0x18000225a
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
inc dword [rbx + 0x58]
cmp dword [rbx + 0x6c], 0
jne 0x180002234
mov eax, dword [rdi + 0x34]
mov ecx, dword [rbx + 0x30]
cmp eax, ecx
cmovae ecx, eax
lea edx, [rcx + rax]
mov dword [rdi + 0x34], edx
jmp 0x18000224d
cmp dword [rbx + 0x6c], 2
jae 0x18000223f
mov eax, dword [rdi + 0x34]
jmp 0x180002242
mov eax, dword [rbx + 0x30]
cdq
sub eax, edx
sar eax, 1
add dword [rdi + 0x34], eax
mov edx, dword [rdi + 0x34]
mov dword [rbp - 0x49], 1
lea ecx, [rdx + r14]
jmp 0x180002288
cmp dword [rdi + 0x38], edx
jb 0x1800022f5
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x180002275
test eax, eax
jg 0x1800022f5
and dword [rdi + 0x38], 0
lea eax, [rcx + 1]
inc dword [rbp + 0x67]
mov ecx, dword [rdi + 0x34]
mov dword [rdi + 0x3c], eax
add ecx, r14d
mov dword [rdi + 0x30], ecx
mov r8d, esi
mov eax, dword [rbp - 0x45]
sub r8d, r15d
mov dword [rdi + 0x20], r14d
mov dword [rdi + 0x1c], eax
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 0x1800022bb
mov rdx, r15
mov rcx, rbx
call fcn.18000107c
mov rsi, r15
mov rdx, rdi
mov rcx, rsi
call fcn.180001e78
cmp dword [rdi + 0x2c], 0
mov rsi, rax
jbe 0x1800022e6
mov r8d, dword [rdi + 0x2c]
lea rdx, [rdi + 0x40]
mov rcx, rax
call qword [sym.imp.ntdll.dll_memcpy]
mov eax, dword [rdi + 0x2c]
add rsi, rax
mov eax, dword [rbx + 0x7c]
mov edx, dword [rbp + 0x6f]
cmp dword [rdi + 0x3c], eax
jb 0x1800022f5
or dword [rbx + 0xc], 0xffffffff
mov rdi, qword [rdi]
cmp rdi, r13
jne 0x1800021f2
mov r14d, dword [rbp + 0x7f]
sub esi, r15d
test esi, esi
jle 0x18000231a
mov r8d, esi
mov rdx, r15
mov rcx, rbx
call fcn.18000107c
cmp dword [rbp + 0x67], 0
mov edx, 2
je 0x18000234f
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
shr eax, 1
mov dword [rbx + 0x24], eax
cmp eax, edx
jae 0x180002339
mov dword [rbx + 0x24], edx
mov eax, edx
mov ecx, dword [rbp + 0x6f]
add ecx, eax
mov eax, ecx
mov dword [rbx + 0x44], ecx
imul eax, dword [rbx + 8]
mov dword [rbx + 0x80], eax
jmp 0x180002352
mov ecx, dword [rbx + 0x44]
cmp dword [rbp - 0x49], 0
je 0x180002369
shr r14d, 1
mov dword [rbx + 0x24], r14d
cmp r14d, edx
jae 0x18000236e
mov dword [rbx + 0x24], edx
jmp 0x18000236e
cmp ecx, 1
jae 0x18000237e
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