Function at 0x180002888
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 eax, dword [rcx + 0x4c]
mov r13, qword [rcx + 0xe0]
xor esi, esi
mov rbx, rcx
mov dword [rbp + 0x67], esi
mov dword [rbp - 0x49], esi
mov dword [rbp + 0x77], eax
mov r12, r13
cmp dword [rcx + 0x70], esi
je 0x180002ccc
mov r15d, dword [rcx + 0x3c]
mov eax, dword [rcx]
mov qword [rbp - 0x25], 0x52
mov dword [rbp - 0x29], eax
cmp dword [rcx + 0x64], r15d
jae 0x1800028e2
sub r15d, dword [rcx + 0x64]
jmp 0x1800028e5
mov r15d, esi
movsxd r14, dword [rcx + 0xd0]
mov eax, dword [rcx + 0x18]
mov dword [rbp - 0x1d], r15d
mov dword [rbp - 0x11], eax
mov dword [rbp - 0xd], esi
mov qword [rbp - 0x19], rsi
mov rdi, rsi
test r14, r14
jle 0x180002957
mov esi, 4
mov r8d, r12d
sub r8d, r13d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x180002927
mov rdx, r13
mov rcx, rbx
call fcn.1800017ac
mov r12, r13
mov rdx, qword [rbx + 0xc8]
mov rcx, r12
mov eax, dword [rdx + rdi*8]
mov dword [rbp - 0x15], eax
mov eax, dword [rdx + rsi]
lea rdx, [rbp - 0x39]
mov dword [rbp - 0x19], eax
call fcn.1800027c4
inc rdi
add rsi, 8
mov r12, rax
cmp rdi, r14
jl 0x18000290a
xor esi, esi
mov dword [rbx + 0xd0], esi
cmp dword [rbx + 0x40], esi
jne 0x1800029b0
cmp dword [rbx + 0x78], esi
jne 0x180002979
mov eax, dword [rbx + 0x4c]
mov ecx, 0x1b58
add eax, ecx
mov dword [rbx + 0x78], ecx
mov dword [rbx + 0x74], eax
jmp 0x1800029b8
mov r8d, dword [rbx + 0x4c]
cmp r8d, dword [rbx + 0x74]
js 0x1800029b8
mov eax, dword [rbx + 0x78]
mov ecx, 0x1b58
cmp eax, ecx
cmovb eax, ecx
mov edx, eax
shr edx, 1
add edx, eax
mov eax, 0x1d4c0
cmp edx, eax
cmova edx, eax
or dword [rbx + 0x48], 1
lea ecx, [r8 + rdx]
mov dword [rbx + 0x78], edx
mov dword [rbx + 0x74], ecx
jmp 0x1800029b8
mov qword [rbx + 0x74], 0
test byte [rbx + 0x48], 1
je 0x1800029f1
mov r8d, r12d
mov dword [rbp - 0x25], 0x53
sub r8d, r13d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x1800029e2
mov rdx, r13
mov rcx, rbx
call fcn.1800017ac
mov r12, r13
lea rdx, [rbp - 0x39]
mov rcx, r12
call fcn.1800027c4
mov r12, rax
test byte [rbx + 0x48], 2
je 0x180002a2a
mov r8d, r12d
mov dword [rbp - 0x25], 0x54
sub r8d, r13d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x180002a1b
mov rdx, r13
mov rcx, rbx
call fcn.1800017ac
mov r12, r13
lea rdx, [rbp - 0x39]
mov rcx, r12
call fcn.1800027c4
mov r12, rax
mov dword [rbx + 0x48], esi
mov esi, dword [rbx + 0x40]
cmp dword [rbx + 0x38], esi
cmovbe esi, dword [rbx + 0x38]
xor r9d, r9d
mov dword [rbp + 0x7f], esi
cmp dword [rbx + 0xf0], r9d
jne 0x180002a50
cmp dword [rbx + 0x44], esi
cmovbe esi, dword [rbx + 0x44]
mov dword [rbp + 0x7f], esi
mov eax, dword [rbx + 0x14]
or r10d, 0xffffffff
sub eax, dword [rbx + 0x10]
cmp eax, esi
jns 0x180002afe
lea r8, [rbx + 0x88]
mov rdx, qword [r8]
cmp r8, rdx
je 0x180002afe
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 ecx, dword [rbp + 0x77]
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 + 0x14], 0x51
mov dword [rdx + 0x1c], r15d
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x10], eax
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], ecx
mov eax, dword [rbx + 0x30]
mov dword [rdx + 0x34], eax
mov qword [rdx + 0x38], r9
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, esi
js 0x180002a69
mov eax, dword [rbx + 0xe8]
mov edx, r10d
test eax, eax
cmovg edx, eax
mov dword [rbp + 0x6f], edx
cmp dword [rbx + 0x6c], r9d
jne 0x180002b1f
mov r14d, dword [rbx + 0x30]
sar r14d, 3
jmp 0x180002b22
mov r14d, r9d
lea rax, [rbx + 0xa8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x180002c4e
mov esi, dword [rbp + 0x77]
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
jne 0x180002b54
mov dword [rdi + 0x3c], 1
mov eax, dword [rbx + 0x30]
lea ecx, [rax + r14]
mov dword [rdi + 0x34], eax
add ecx, esi
jmp 0x180002bc7
cmp esi, dword [rdi + 0x30]
js 0x180002b99
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
inc dword [rbx + 0x58]
cmp dword [rbx + 0x6c], r9d
jne 0x180002b7a
mov eax, dword [rbx + 0x30]
cmp dword [rdi + 0x34], eax
cmovae eax, dword [rdi + 0x34]
add eax, dword [rdi + 0x34]
mov dword [rdi + 0x34], eax
jmp 0x180002b90
cmp dword [rbx + 0x6c], 2
jae 0x180002b85
mov eax, dword [rdi + 0x34]
jmp 0x180002b88
mov eax, dword [rbx + 0x30]
cdq
sub eax, edx
sar eax, 1
add dword [rdi + 0x34], eax
mov dword [rbp - 0x49], 1
jmp 0x180002bc1
cmp dword [rdi + 0x38], edx
jb 0x180002c38
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x180002bb4
test eax, eax
jg 0x180002c38
inc dword [rbp + 0x67]
lea eax, [rcx + 1]
mov dword [rdi + 0x38], r9d
mov dword [rdi + 0x3c], eax
mov eax, dword [rdi + 0x34]
lea ecx, [rsi + rax]
mov dword [rdi + 0x30], ecx
mov dword [rdi + 0x20], esi
mov dword [rdi + 0x1c], r15d
mov eax, dword [rbx + 0x18]
mov r8d, r12d
mov dword [rdi + 0x28], eax
mov eax, dword [rdi + 0x2c]
sub r8d, r13d
lea ecx, [rax + r8 + 0x18]
cmp ecx, dword [rbx + 4]
jle 0x180002bf8
mov rdx, r13
mov rcx, rbx
call fcn.1800017ac
mov r12, r13
mov rdx, rdi
mov rcx, r12
call fcn.1800027c4
xor r9d, r9d
mov r12, rax
cmp dword [rdi + 0x2c], r9d
jbe 0x180002c29
mov r8d, dword [rdi + 0x2c]
lea rdx, [rdi + 0x40]
mov rcx, rax
call fcn.180006510
mov r11d, dword [rdi + 0x2c]
add r12, r11
xor r9d, r9d
mov eax, dword [rbx + 0x7c]
mov edx, dword [rbp + 0x6f]
cmp dword [rdi + 0x3c], eax
jb 0x180002c38
or dword [rbx + 0xc], 0xffffffff
mov rdi, qword [rdi]
lea rax, [rbx + 0xa8]
cmp rdi, rax
jne 0x180002b38
mov esi, dword [rbp + 0x7f]
sub r12d, r13d
test r12d, r12d
jle 0x180002c67
mov r8d, r12d
mov rdx, r13
mov rcx, rbx
call fcn.1800017ac
xor r9d, r9d
mov edx, 2
cmp dword [rbp + 0x67], r9d
je 0x180002c96
mov eax, dword [rbx + 0x14]
mov ecx, dword [rbp + 0x6f]
sub eax, dword [rbx + 0x10]
shr eax, 1
cmp eax, edx
cmovb eax, edx
add ecx, eax
mov dword [rbx + 0x24], eax
mov eax, dword [rbx + 8]
mov dword [rbx + 0x44], ecx
imul eax, ecx
mov dword [rbx + 0x80], eax
cmp dword [rbp - 0x49], r9d
je 0x180002cb6
mov eax, dword [rbx + 8]
shr esi, 1
mov dword [rbx + 0x44], 1
cmp esi, edx
mov dword [rbx + 0x80], eax
cmovb esi, edx
mov dword [rbx + 0x24], esi
cmp dword [rbx + 0x44], 1
jae 0x180002ccc
mov eax, dword [rbx + 8]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0x80], eax
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret