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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
sub rsp, 0x90
mov rsi, rdx
mov qword [rsp + 0x68], rdx
mov rdx, qword [rdx + 8]
mov rbx, rcx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea ebp, [rcx + 0x18]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x70], ecx
test rdx, rdx
jne 0x18008e856
mov dword [rsp + 0x50], ecx
jmp 0x18008e875
lea r9, [rsp + 0x50]
mov rcx, rbx
call fcn.18008e260
mov ebx, eax
test eax, eax
js 0x18008eddd
mov rbx, qword [rsp + 0xb0]
mov eax, dword [rsi + 4]
mov ecx, dword [rsi]
mov qword [rsp + 0x88], rdi
mov dword [rsp + 0x58], eax
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x54], ecx
sub ecx, 1
mov dword [rsp + 0x5c], eax
mov eax, dword [rsi + 0x14]
mov dword [rsp + 0x60], eax
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x64], eax
je 0x18008ec63
sub ecx, 1
je 0x18008ec28
sub ecx, 1
je 0x18008e8fc
cmp ecx, 1
je 0x18008e8c5
mov ebx, 0x80004001
jmp 0x18008edd5
lea rcx, [rbx + 0x30]
mov edx, ebp
call fcn.180092910
mov rdi, rax
test rax, rax
je 0x18008ec7b
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdi + 0x10], rax
jmp 0x18008eca6
mov edi, dword [rsi + 0x34]
mov rcx, 0xffffffffffffffff
mov eax, 0x10
mov dword [rsp + 0x38], edi
mul rdi
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18008ec7b
xor r8d, r8d
mov dword [rsp + 0xb8], r8d
test edi, edi
je 0x18008ea44
mov rbp, r8
lea rdi, [rax + 4]
jmp 0x18008e958
mov rbx, qword [rsp + 0xb0]
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + rbp]
mov rdx, qword [rcx]
test rdx, rdx
jne 0x18008e96e
mov dword [rdi - 4], r8d
jmp 0x18008e98f
mov r8, qword [rsp + 0xc0]
lea r9, [rdi - 4]
mov rcx, rbx
call fcn.18008e260
mov ebx, eax
test eax, eax
js 0x18008edd5
xor r8d, r8d
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + rbp]
mov rdx, qword [rcx + 8]
test rdx, rdx
jne 0x18008e9a5
mov dword [rdi], r8d
jmp 0x18008e9c7
mov r8, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
mov r9, rdi
call fcn.18008e260
mov ebx, eax
test eax, eax
js 0x18008edd5
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0xb8]
mov rdx, qword [rdx + rbp]
mov r8, qword [rsp + 0xc0]
add rax, rax
mov rdx, qword [rdx + 0x18]
lea r9, [rcx + rax*8 + 0xc]
mov rcx, qword [rsp + 0xb0]
call fcn.18008e810
mov ebx, eax
test eax, eax
js 0x18008edd5
mov rax, qword [rsi + 0x28]
mov r8d, dword [rsp + 0xb8]
add rdi, 0x10
mov rcx, qword [rax + rbp]
inc r8d
add rbp, 8
mov eax, dword [rcx + 0x10]
cmp r8d, dword [rsp + 0x38]
mov dword [rsp + 0xb8], r8d
mov dword [rdi - 0xc], eax
mov r8d, 0
jb 0x18008e950
mov edi, dword [rsp + 0x38]
mov rbx, qword [rsp + 0xb0]
mov ebp, edi
shl ebp, 4
add ebp, 0x1c
test byte [rbx + 0x1754], 0x20
mov dword [rsp + 0xb8], ebp
je 0x18008eb54
mov rdx, qword [rsi + 0x58]
test rdx, rdx
je 0x18008ea9a
mov r8, qword [rsp + 0xc0]
lea r9, [rsp + 0x30]
mov rcx, rbx
call fcn.18008e810
mov ebx, eax
test eax, eax
js 0x18008edd5
mov rbx, qword [rsp + 0xb0]
jmp 0x18008ea9f
mov dword [rsp + 0x30], r8d
mov eax, dword [rsi + 0x4c]
mov dword [rsp + 0x34], eax
test eax, eax
je 0x18008eb48
cmp eax, 0x10
jae 0x18008eaba
mov eax, 0x10
jmp 0x18008eac5
cmp eax, 0x3fffffff
jae 0x18008ec7b
mov ecx, eax
shl rcx, 2
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rcx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x18008ec7b
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
xor edi, edi
test eax, eax
je 0x18008eb48
xor ebp, ebp
nop word [rax + rax]
mov rdx, qword [rsi + 0x40]
mov r8, qword [rsp + 0xc0]
lea r9, [rcx + rdi*4]
mov rdx, qword [rdx + rbp]
mov rcx, rbx
call fcn.18008e810
mov ebx, eax
test eax, eax
js 0x18008edd5
mov eax, dword [rsp + 0x34]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
inc edi
add rbp, 8
cmp edi, eax
jb 0x18008eb00
mov ebp, dword [rsp + 0xb8]
mov rbx, qword [rsp + 0xb0]
lea ebp, [rbp + rax*4 + 8]
mov eax, dword [rbx + 0x3c]
lea rdi, [rbx + 0x30]
mov ebx, 0x8007000e
lea edx, [rax + rbp]
cmp edx, eax
jae 0x18008eb6f
mov dword [rdi + 0x10], ebx
jmp 0x18008edd5
mov rcx, rdi
call fcn.180092dc0
test eax, eax
js 0x18008edd5
mov eax, dword [rdi + 0xc]
mov rcx, qword [rsp + 0xb0]
mov rdi, rax
lea eax, [rax + rbp]
add rdi, qword [rcx + 0x30]
mov dword [rcx + 0x3c], eax
je 0x18008edd5
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, qword [rcx + 0x10]
mov ecx, dword [rsp + 0x38]
mov qword [rdi + 0x10], rax
mov rbx, rcx
mov dword [rdi + 0x18], ecx
lea rax, [rdi + 0x18]
shl rbx, 4
add rax, 4
mov r8, rbx
mov rcx, rax
mov qword [rsp + 0xb8], rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0xb8]
add rcx, rbx
mov rbx, qword [rsp + 0xb0]
test byte [rbx + 0x1754], 0x20
je 0x18008eca6
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
add rcx, 8
mov qword [rcx - 8], rax
mov r8d, dword [rsp + 0x34]
shl r8, 2
call sub.msvcrt.dll_memcpy
jmp 0x18008eca6
mov ebp, 0x1c
lea rcx, [rbx + 0x30]
mov edx, ebp
call fcn.180092910
mov rdi, rax
test rax, rax
je 0x18008ec7b
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdi + 0x10], rax
mov eax, dword [rsi + 0x20]
mov dword [rdi + 0x18], eax
jmp 0x18008eca6
mov ebp, 0x1c
lea rcx, [rbx + 0x30]
mov edx, ebp
call fcn.180092910
mov rdi, rax
test rax, rax
jne 0x18008ec85
mov ebx, 0x8007000e
jmp 0x18008edd5
lea rcx, [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdi + 0x10], rax
mov eax, dword [rsi + 0x20]
mov dword [rdi + 0x18], eax
mov edx, ebp
mov rcx, rdi
call fcn.180093340
xor edx, edx
lea rcx, [rbx + 0x18]
mov r9d, eax
mov dword [rsp + 0xb8], eax
div dword [rbx + 0x20]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rbx + 0x18]
mov rbx, qword [rcx + rdx*8]
test rbx, rbx
je 0x18008ecfb
cmp r9d, dword [rbx]
jne 0x18008ecf2
mov rcx, qword [rbx + 8]
mov rdx, rsi
call fcn.180092230
test eax, eax
jne 0x18008ed57
mov r9d, dword [rsp + 0xb8]
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x18008ecd5
mov rsi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
mov r8d, ebp
mov r9, rsi
mov rdx, rdi
call fcn.180243e64
mov ebx, eax
test eax, eax
js 0x18008edd5
mov eax, dword [rsi]
mov esi, dword [rsp + 0xb8]
mov rdi, qword [rsp + 0x38]
mov dword [rsp + 0x70], eax
xor edx, edx
mov eax, esi
div dword [rdi + 8]
xor ebx, ebx
lea ecx, [rbx + 0x20]
mov ebp, edx
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r11, rax
test rax, rax
jne 0x18008ed80
mov ebx, 0x8007000e
jmp 0x18008edac
mov rax, qword [rbx + 8]
mov rsi, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rbx + 0x10]
mov qword [rcx + 8], rax
mov eax, dword [rsp + 0x70]
mov dword [rsi], eax
jmp 0x18008edb0
mov rax, qword [rdi]
mov rcx, qword [rax + rbp*8]
mov dword [r11], esi
mov qword [r11 + 0x18], rcx
lea rcx, [rsp + 0x68]
mov rax, qword [rcx]
mov qword [r11 + 8], rax
mov rax, qword [rcx + 8]
mov qword [r11 + 0x10], rax
mov rax, qword [rdi]
mov qword [rax + rbp*8], r11
inc dword [rdi + 0xc]
test ebx, ebx
js 0x18008edd5
mov edx, dword [rdi + 0xc]
cmp edx, dword [rdi + 8]
jb 0x18008edd3
lea edx, [rdx + rdx + 1]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov byte [rsp + 0x20], 0
call fcn.180092bf0
mov ebx, eax
jmp 0x18008edd5
xor ebx, ebx
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, ebx
add rsp, 0x90
pop rsi
pop rbp
pop rbx
ret