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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x140
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x180068c58]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov dword [rsp + 0x48], r9d
mov r12, r8
mov rsi, rdx
mov qword [rsp + 0x58], rdx
mov qword [rbp - 0x58], rcx
mov rdi, qword [rbp + 0xa0]
mov qword [rbp - 0x60], rdi
mov r14d, dword [rbp + 0xa8]
mov dword [rsp + 0x54], r14d
mov r13, qword [rbp + 0xd0]
mov qword [rbp - 0x70], r13
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rbp - 0x48]
call fcn.18002dd30
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
lea r8, [rsp + 0x40]
mov edx, r14d
lea rcx, [rbp - 0x10]
call fcn.180013500
nop
xor eax, eax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
lea r8, [rsp + 0x40]
mov edx, r14d
lea rcx, [rbp + 8]
call fcn.18001345c
nop
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 0x88]
call qword [0x18004c378]
mov dword [rsp + 0x50], eax
movsxd rcx, eax
lea rdx, [rcx + rcx*8]
lea rax, [0x18004cd60]
lea rax, [rax + rdx*4]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsi]
mov rax, qword [rcx + 0xe8]
mov rcx, rsi
call qword [0x18004c378]
mov qword [rbp - 0x80], rax
xor r15d, r15d
mov ecx, r15d
mov dword [rsp + 0x44], ecx
mov ebx, dword [rbp + 0xb0]
test r14d, r14d
je 0x180013ba0
mov qword [rsp + 0x70], r15
xor edi, edi
lea rdx, [r13 + 4]
mov qword [rsp + 0x78], rdx
add r12, 0x28
mov qword [rsp + 0x68], r12
mov rax, qword [rsi]
mov r8d, ecx
lea rdx, [rbp - 0x20]
mov rcx, rsi
mov rax, qword [rax + 0x48]
call qword [0x18004c378]
lea rdx, [rbp - 0x20]
mov r14, qword [rsp + 0x60]
mov rcx, r14
call fcn.18001d730
mov dword [rsp + 0x4c], eax
mov rsi, qword [rbp + 8]
mov qword [rbp - 0x78], rsi
mov eax, dword [rsp + 0x44]
imul rax, rax, 0x98
mov qword [rbp - 0x68], rax
lea rcx, [rax + rsi]
xor edx, edx
mov r8d, 0x98
call fcn.18002dd30
mov rax, qword [rbp - 0x80]
mov qword [rdi + rsi + 0x30], rax
mov eax, dword [rsp + 0x50]
mov dword [rdi + rsi + 0x38], eax
movsd xmm0, qword [rbp - 0x20]
movsd qword [rdi + rsi + 0x40], xmm0
mov eax, dword [rbp - 0x18]
mov dword [rdi + rsi + 0x48], eax
mov r9d, dword [rbp + 0xb8]
mov dword [rdi + rsi + 0x4c], r9d
xor r10d, r10d
test r9d, r9d
je 0x1800139b2
mov dword [rdi + rsi + 0x88], 1
mov dword [rdi + rsi + 0x8c], 1
jmp 0x1800139ba
mov qword [rdi + rsi + 0x88], r10
mov eax, dword [rbp + 0xc0]
mov dword [rdi + rsi + 0x3c], eax
mov dword [rdi + rsi + 0x68], r10d
mov ecx, ebx
shr ecx, 1
mov eax, ecx
not eax
and eax, 1
mov dword [rdi + rsi + 0x28], eax
test cl, 1
jne 0x180013a61
test bl, 4
jne 0x180013a61
mov r14d, r10d
cmp dword [rsp + 0x44], r10d
ja 0x180013b8f
mov r12d, r10d
cmp dword [rsp + 0x48], r10d
jbe 0x180013a53
mov r13, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r15d, dword [rsp + 0x48]
mov rax, qword [r13]
mov r8d, r12d
lea rdx, [rbp + 0x20]
mov rcx, r13
mov rax, qword [rax + 0x48]
call qword [0x18004c378]
xor r8d, r8d
lea rdx, [rbp + 0x20]
mov rcx, rsi
call fcn.18001da60
add r14d, eax
inc r12d
cmp r12d, r15d
jb 0x180013a0d
mov rsi, qword [rbp - 0x78]
mov r15, qword [rsp + 0x70]
mov r13, qword [rbp - 0x70]
mov r9d, dword [rbp + 0xb8]
or ebx, 1
mov r12, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x4c]
jmp 0x180013a90
mov r8d, dword [r14 + 0xc]
mov eax, dword [rbp - 0x18]
dec eax
add eax, dword [r14 + 0x10]
xor edx, edx
div dword [r14 + 0x10]
mov r14d, eax
mov eax, dword [rbp - 0x1c]
dec eax
add eax, r8d
xor edx, edx
div r8d
imul r14d, eax
mov ecx, dword [rsp + 0x4c]
imul r14d, ecx
mov dword [rdi + rsi], r14d
test r9d, r9d
je 0x180013aa1
imul r14d, r9d
mov dword [rdi + rsi], r14d
and dword [rdi + rsi + 4], 0xfffffffe
mov eax, ebx
and eax, 1
or dword [rdi + rsi + 4], eax
mov eax, dword [r12 - 4]
mov dword [rdi + rsi + 0xc], eax
movsd xmm0, qword [rbp - 0x20]
movsd qword [rdi + rsi + 0x10], xmm0
mov eax, dword [rbp - 0x18]
mov dword [rdi + rsi + 0x18], eax
mov r14d, ebx
shr r14d, 2
and r14d, 1
je 0x180013af5
mov dword [rdi + rsi + 0x1c], 1
mov eax, dword [r12]
mov dword [rdi + rsi + 0x58], eax
mov rax, qword [r12 + 4]
mov qword [rdi + rsi + 0x5c], rax
mov dword [rdi + rsi + 0x20], ecx
mov eax, dword [rsp + 0x44]
lea rcx, [rax + rax*4]
mov rax, qword [rbp - 0x10]
lea rcx, [rax + rcx*8]
xor edx, edx
lea r8d, [rdx + 0x28]
call fcn.18002dd30
mov rcx, qword [rbp - 0x68]
add rcx, qword [rbp + 8]
mov rax, qword [rbp - 0x10]
mov qword [r15 + rax + 0x10], rcx
mov rax, qword [rbp - 0x10]
mov edx, 0x98
mov dword [r15 + rax + 0x18], edx
mov ecx, dword [r12]
mov rax, qword [rbp - 0x10]
mov dword [r15 + rax + 0x1c], ecx
mov rax, qword [rbp - 0x10]
and dword [r15 + rax + 0x20], 0xfffffffe
or dword [r15 + rax + 0x20], r14d
mov rax, qword [rsp + 0x78]
or dword [rax], 0xffffffff
mov ecx, dword [rsp + 0x44]
inc ecx
mov dword [rsp + 0x44], ecx
add rdi, rdx
add r12, 0x38
mov qword [rsp + 0x68], r12
add r15, 0x28
mov qword [rsp + 0x70], r15
add rax, 0x60
mov qword [rsp + 0x78], rax
mov r14d, dword [rsp + 0x54]
cmp ecx, r14d
jae 0x180013b99
mov rsi, qword [rsp + 0x58]
jmp 0x18001390f
mov esi, 0x80070057
jmp 0x180013c6b
mov rdi, qword [rbp - 0x60]
xor r15d, r15d
test bl, 8
cmovne rdi, r15
mov qword [rbp - 0x38], rdi
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
mov rcx, qword [rbp - 8]
sub rcx, rax
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rbp - 0x2c], edx
mov rcx, qword [rbp - 0x58]
add rcx, 0x48c0
lea rdx, [rbp - 0x48]
call fcn.1800275f0
mov esi, eax
test eax, eax
js 0x180013c6b
mov ebx, r15d
test r14d, r14d
je 0x180013c6b
mov rdi, r15
mov r15, qword [rsp + 0x58]
xor r12d, r12d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r12d
lea rax, str.Resource_CreateAllocations
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ebx
mov rdx, r15
mov rax, qword [rbp - 0x10]
mov ecx, dword [rax + rdi]
call fcn.180011548
mov ecx, 2
call fcn.1800092f0
test al, al
je 0x180013c5c
mov rax, qword [rbp - 0x10]
mov r9d, dword [rax + rdi]
mov r8d, ebx
lea rdx, str.CreateAllocations
lea rcx, str._s:_allocation_d_handle0x_x_n
call fcn.180026d30
inc ebx
add r13, 0x60
add rdi, 0x28
cmp ebx, r14d
jb 0x180013c05
lea rcx, [rbp + 8]
call fcn.180013e64
nop
lea rcx, [rbp - 0x10]
call fcn.180013ee0
mov eax, esi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.18002ca10
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret