Function at 0x1800033f4
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 0x1800038b2
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 0x1800034da
mov esi, r11d
mov edx, edi
sub edx, r10d
lea eax, [rdx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1800034ac
test edx, edx
je 0x1800034a9
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.180003330
inc rsi
mov rdi, rax
cmp rsi, r14
jl 0x18000347f
mov esi, dword [rbp + 0x7f]
mov dword [rbx + 0xd0], r11d
cmp dword [rbx + 0x40], r11d
jne 0x180003538
mov ecx, dword [rbx + 0x78]
test ecx, ecx
jne 0x180003500
mov eax, dword [rbx + 0x4c]
mov edx, 0x1b58
add eax, edx
mov dword [rbx + 0x78], edx
mov dword [rbx + 0x74], eax
jmp 0x18000353d
mov r8d, dword [rbx + 0x4c]
cmp r8d, dword [rbx + 0x74]
js 0x18000353d
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 0x18000352b
mov dword [rbx + 0x78], eax
mov edx, eax
or dword [rbx + 0x48], 1
lea eax, [r8 + rdx]
mov dword [rbx + 0x74], eax
jmp 0x18000353d
and qword [rbx + 0x74], 0
test byte [rbx + 0x48], 1
je 0x180003587
mov edx, edi
mov dword [rbp - 0x25], 0x53
sub edx, r10d
lea eax, [rdx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x180003578
test edx, edx
je 0x180003575
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.180003330
mov rdi, rax
test byte [rbx + 0x48], 2
je 0x1800035d1
mov edx, edi
mov dword [rbp - 0x25], 0x54
sub edx, r10d
lea eax, [rdx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1800035c2
test edx, edx
je 0x1800035bf
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.180003330
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 0x1800035fc
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 0x1800036ad
lea r8, [rbx + 0x88]
mov rdx, qword [r8]
cmp r8, rdx
je 0x1800036ad
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], 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 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], esi
mov eax, dword [rbx + 0x30]
and qword [rdx + 0x38], 0
mov dword [rdx + 0x34], eax
mov eax, dword [rbx + 0x14]
sub eax, r14d
cmp eax, dword [rbx + 0x10]
js 0x180003616
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 0x1800036d2
mov r13d, dword [r12]
sar r13d, 3
jmp 0x1800036d5
mov r13d, r11d
lea rax, [rbx + 0xa8]
mov rsi, qword [rax]
cmp rsi, rax
je 0x18000382a
mov r14d, dword [rbp + 0x7f]
mov ecx, dword [rsi + 0x3c]
test ecx, ecx
jne 0x18000370a
mov dword [rsi + 0x3c], 1
mov eax, dword [r12]
mov dword [rsi + 0x34], eax
lea ecx, [rax + r13]
jmp 0x180003790
cmp r14d, dword [rsi + 0x30]
js 0x180003765
lea eax, [rcx + 1]
mov dword [rsi + 0x3c], eax
inc dword [rbx + 0x58]
cmp dword [rbx + 0x6c], r11d
jne 0x180003733
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 0x180003758
cmp dword [rbx + 0x6c], 2
lea rax, [rsi + 0x34]
mov rcx, rsi
mov r9d, 0x34
jb 0x180003749
mov rax, r12
mov eax, dword [rax]
cdq
sub eax, edx
sar eax, 1
add dword [r9 + rcx], eax
mov edx, dword [r9 + rcx]
mov dword [rbp - 0x45], 1
lea ecx, [rdx + r14]
jmp 0x180003793
cmp dword [rsi + 0x38], edx
jb 0x18000380f
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x180003780
test eax, eax
jg 0x18000380f
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 0x1800037d3
test edx, edx
je 0x1800037d0
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.180003330
mov rdi, rax
cmp dword [rsi + 0x2c], r11d
jbe 0x180003800
mov r8d, dword [rsi + 0x2c]
lea rdx, [rsi + 0x44]
mov rcx, rax
call fcn.1800baef0
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 0x18000380f
or dword [rbx + 0xc], 0xffffffff
mov rsi, qword [rsi]
lea rax, [rbx + 0xa8]
mov r10d, dword [rbp + 0x67]
cmp rsi, rax
jne 0x1800036ec
mov r14d, dword [rbp - 0x49]
sub edi, dword [rbp + 0x67]
test edi, edi
jle 0x180003849
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 0x180003878
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
shr eax, 1
mov dword [rbx + 0x24], eax
cmp eax, edx
jae 0x180003868
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 0x18000389c
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 0x1800038b2
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