Function at 0x18000332c
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 r11d, r11d
mov rbx, rcx
mov esi, dword [rcx + 0x4c]
mov rdi, r15
mov dword [rbp + 0x7f], esi
mov dword [rbp + 0x6f], r11d
mov dword [rbp - 0x45], r11d
cmp dword [rcx + 0x70], r11d
je 0x1800037e7
mov eax, dword [rcx]
mov r10d, r15d
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], r11d
sbb r12d, r12d
mov qword [rbp - 0x19], r11
and r12d, eax
mov dword [rbp + 0x67], r15d
mov eax, dword [rbx + 0x18]
mov dword [rbp - 0x41], r12d
mov dword [rbp - 0x1d], r12d
mov dword [rbp - 0x11], eax
test r14, r14
jle 0x180003412
mov esi, r11d
mov edx, edi
sub edx, r10d
lea eax, [rdx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1800033e4
test edx, edx
je 0x1800033e1
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov rcx, r15
call qword [rbx + 0x100]
mov r10d, r15d
xor r11d, r11d
mov rdi, r15
mov rdx, qword [rbx + 0xc8]
mov rcx, rdi
mov eax, dword [rdx + rsi*8]
mov dword [rbp - 0x15], eax
mov eax, dword [rdx + rsi*8 + 4]
lea rdx, [rbp - 0x39]
mov dword [rbp - 0x19], eax
call fcn.180003268
inc rsi
mov rdi, rax
cmp rsi, r14
jl 0x1800033b7
mov esi, dword [rbp + 0x7f]
mov dword [rbx + 0xd0], r11d
cmp dword [rbx + 0x40], r11d
jne 0x180003470
mov ecx, dword [rbx + 0x78]
test ecx, ecx
jne 0x180003438
mov eax, dword [rbx + 0x4c]
mov edx, 0x1b58
add eax, edx
mov dword [rbx + 0x78], edx
mov dword [rbx + 0x74], eax
jmp 0x180003475
mov r8d, dword [rbx + 0x4c]
cmp r8d, dword [rbx + 0x74]
js 0x180003475
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 0x180003463
mov dword [rbx + 0x78], eax
mov edx, eax
or dword [rbx + 0x48], 1
lea eax, [r8 + rdx]
mov dword [rbx + 0x74], eax
jmp 0x180003475
and qword [rbx + 0x74], 0
test byte [rbx + 0x48], 1
je 0x1800034bf
mov edx, edi
mov dword [rbp - 0x25], 0x53
sub edx, r10d
lea eax, [rdx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1800034b0
test edx, edx
je 0x1800034ad
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov rcx, r15
call qword [rbx + 0x100]
mov r10d, dword [rbp + 0x67]
xor r11d, r11d
mov rdi, r15
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.180003268
mov rdi, rax
test byte [rbx + 0x48], 2
je 0x180003509
mov edx, edi
mov dword [rbp - 0x25], 0x54
sub edx, r10d
lea eax, [rdx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1800034fa
test edx, edx
je 0x1800034f7
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov rcx, r15
call qword [rbx + 0x100]
mov r10d, dword [rbp + 0x67]
xor r11d, r11d
mov rdi, r15
lea rdx, [rbp - 0x39]
mov rcx, rdi
call fcn.180003268
mov rdi, rax
mov r14d, dword [rbx + 0x40]
cmp dword [rbx + 0x38], r14d
mov dword [rbx + 0x48], r11d
cmovbe r14d, dword [rbx + 0x38]
mov dword [rbp - 0x49], r14d
cmp dword [rbx + 0xf0], r11d
jne 0x180003534
cmp dword [rbx + 0x44], r14d
cmovbe r14d, dword [rbx + 0x44]
mov dword [rbp - 0x49], r14d
mov eax, dword [rbx + 0x14]
or r9d, 0xffffffff
sub eax, dword [rbx + 0x10]
cmp eax, r14d
jns 0x1800035e2
lea r8, [rbx + 0x88]
mov rdx, qword [r8]
cmp r8, rdx
je 0x1800035e2
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], r11
mov qword [rdx + 8], r11
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], esi
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], esi
mov eax, dword [rbx + 0x30]
and qword [rdx + 0x38], 0
mov dword [rdx + 0x34], eax
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r14d
js 0x18000354e
mov eax, dword [rbx + 0xe8]
lea r12, [rbx + 0x30]
test eax, eax
mov edx, r9d
cmovg edx, eax
mov dword [rbp + 0x77], edx
cmp dword [rbx + 0x6c], r11d
jne 0x180003607
mov r13d, dword [r12]
sar r13d, 3
jmp 0x18000360a
mov r13d, r11d
lea rax, [rbx + 0xa8]
mov rsi, qword [rax]
cmp rsi, rax
je 0x18000375f
mov r14d, dword [rbp + 0x7f]
mov ecx, dword [rsi + 0x3c]
test ecx, ecx
jne 0x18000363f
mov dword [rsi + 0x3c], 1
mov eax, dword [r12]
mov dword [rsi + 0x34], eax
lea ecx, [rax + r13]
jmp 0x1800036c5
cmp r14d, dword [rsi + 0x30]
js 0x18000369a
lea eax, [rcx + 1]
mov dword [rsi + 0x3c], eax
inc dword [rbx + 0x58]
cmp dword [rbx + 0x6c], r11d
jne 0x180003668
mov eax, dword [rsi + 0x34]
mov ecx, dword [r12]
cmp eax, ecx
cmovae ecx, eax
lea edx, [rcx + rax]
mov dword [rsi + 0x34], edx
jmp 0x18000368d
cmp dword [rbx + 0x6c], 2
lea rax, [rsi + 0x34]
mov rcx, rsi
mov r9d, 0x34
jb 0x18000367e
mov rax, r12
mov eax, dword [rax]
cdq
sub eax, edx
sar eax, 1
add dword [rcx + r9], eax
mov edx, dword [rcx + r9]
mov dword [rbp - 0x45], 1
lea ecx, [rdx + r14]
jmp 0x1800036c8
cmp dword [rsi + 0x38], edx
jb 0x180003744
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x1800036b5
test eax, eax
jg 0x180003744
inc dword [rbp + 0x6f]
lea eax, [rcx + 1]
mov ecx, dword [rsi + 0x34]
mov dword [rsi + 0x3c], eax
mov dword [rsi + 0x38], r11d
add ecx, r14d
mov eax, dword [rbp - 0x41]
mov edx, edi
mov dword [rsi + 0x30], ecx
sub edx, r10d
mov dword [rsi + 0x20], r14d
mov dword [rsi + 0x1c], eax
mov eax, dword [rbx + 0x18]
lea ecx, [rdx + 0x18]
mov dword [rsi + 0x28], eax
add ecx, dword [rsi + 0x2c]
cmp ecx, dword [rbx + 4]
jle 0x180003708
test edx, edx
je 0x180003705
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov rcx, r15
call qword [rbx + 0x100]
xor r11d, r11d
mov rdi, r15
mov rdx, rsi
mov rcx, rdi
call fcn.180003268
mov rdi, rax
cmp dword [rsi + 0x2c], r11d
jbe 0x180003735
mov r8d, dword [rsi + 0x2c]
lea rdx, [rsi + 0x44]
mov rcx, rax
call fcn.1800dbf60
mov eax, dword [rsi + 0x2c]
add rdi, rax
xor r11d, r11d
mov eax, dword [rbx + 0x7c]
mov edx, dword [rbp + 0x77]
cmp dword [rsi + 0x3c], eax
jb 0x180003744
or dword [rbx + 0xc], 0xffffffff
mov rsi, qword [rsi]
lea rax, [rbx + 0xa8]
mov r10d, dword [rbp + 0x67]
cmp rsi, rax
jne 0x180003621
mov r14d, dword [rbp - 0x49]
sub edi, dword [rbp + 0x67]
test edi, edi
jle 0x18000377e
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, edi
mov rcx, r15
call qword [rbx + 0x100]
xor r11d, r11d
mov edx, 2
cmp dword [rbp + 0x6f], r11d
je 0x1800037ad
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
shr eax, 1
mov dword [rbx + 0x24], eax
cmp eax, edx
jae 0x18000379d
mov dword [rbx + 0x24], edx
mov eax, edx
add eax, dword [rbp + 0x77]
mov dword [rbx + 0x44], eax
imul eax, dword [rbx + 8]
mov dword [rbx + 0x80], eax
cmp dword [rbp - 0x45], r11d
je 0x1800037d1
mov eax, dword [rbx + 8]
shr r14d, 1
cmp r14d, edx
mov dword [rbx + 0x44], 1
mov dword [rbx + 0x80], eax
cmovb r14d, edx
mov dword [rbx + 0x24], r14d
cmp dword [rbx + 0x44], 1
jae 0x1800037e7
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