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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
lea rdi, [rsp + 0x40]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x140]
mov qword [rsp + 0xc8], 0
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x140]
add rax, 0xc0
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x178]
mov rax, qword [rax + 0x2f0]
mov qword [rsp + 0x108], rax
cmp dword [rsp + 0x168], 0x3000
je 0x1801be525
cmp dword [rsp + 0x168], 0x4000
je 0x1801be525
mov dword [rsp + 0x120], 0
jmp 0x1801be530
mov dword [rsp + 0x120], 1
cmp dword [rsp + 0x120], 0
je 0x1801be544
mov byte [rsp + 0x124], 1
jmp 0x1801be54c
mov byte [rsp + 0x124], 0
movzx eax, byte [rsp + 0x124]
mov byte [rsp + 0x110], al
movzx eax, byte [rsp + 0x110]
test eax, eax
je 0x1801be574
mov dword [rsp + 0x128], 0x201
jmp 0x1801be57f
mov dword [rsp + 0x128], 0x60
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x114], eax
mov rax, qword [rsp + 0x140]
mov word [rsp + 0x30], 0
mov word [rsp + 0x28], 0
mov ecx, dword [rsp + 0x114]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x170]
mov r9, qword [rcx]
mov r8, rax
mov edx, dword [rsp + 0x168]
lea rcx, [rsp + 0x60]
call fcn.1801b3000
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1801be5dd
jmp 0x1801bea80
mov r8d, 0xbc
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call sub.VCRUNTIME140D.dll_memset
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x20], 0xff9c0000
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x24], 0x320000
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x2c], 2
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x30], 0x10000
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x3c], 0x10000
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x9c], 0x2210
mov rax, qword [rsp + 0xf8]
mov dword [rax], 0xffff
mov rax, qword [rsp + 0xf8]
mov dword [rax + 4], 0xffff
mov rax, qword [rsp + 0xf8]
mov dword [rax + 8], 0xffff
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0xc], 0xffff
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x10], 0xffff
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x14], 0xffff
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x80], 0xffff
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x84], 0xffff
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0x88], 0xffff
mov rax, qword [rsp + 0xf8]
mov dword [rax + 0xac], 0xffff
movzx eax, byte [rsp + 0x110]
test eax, eax
je 0x1801be709
mov dword [rsp + 0x12c], 0x201
jmp 0x1801be714
mov dword [rsp + 0x12c], 0x30
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rsp + 0x12c]
mov dword [rax + 0xb8], ecx
mov rax, qword [rsp + 0x148]
cmp dword [rax + 0x10], 0
je 0x1801be761
lea r9, [rsp + 0xe4]
lea r8, [rsp + 0xc8]
mov edx, dword [rsp + 0x150]
mov rcx, qword [rsp + 0x148]
call fcn.1801b38a0
mov dword [rsp + 0x40], eax
jmp 0x1801be7c6
mov rax, qword [rsp + 0x148]
mov edx, dword [rax + 0x18]
mov rcx, qword [rsp + 0x158]
call fcn.18016dfd0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1801be7af
lea r8, [rsp + 0xc8]
mov rax, qword [rsp + 0x148]
mov edx, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x158]
call fcn.18016e530
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1801be7b4
jmp 0x1801bea80
mov rax, qword [rsp + 0x148]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0xe4], eax
cmp dword [rsp + 0x40], 0
jne 0x1801be801
xor eax, eax
test eax, eax
jne 0x1801be7cd
mov eax, dword [rsp + 0xe4]
mov rcx, qword [rsp + 0xc8]
add rcx, rax
mov rax, rcx
mov r8, rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x60]
call fcn.1801b31a0
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x148]
cmp dword [rax + 0x10], 0
je 0x1801be826
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x148]
call fcn.1801b3b40
jmp 0x1801be83b
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x158]
call fcn.18016e5a0
cmp dword [rsp + 0x40], 0
je 0x1801be847
jmp 0x1801bea80
mov rax, qword [rsp + 0xf8]
cmp dword [rax + 0x84], 0xffff
je 0x1801be860
jmp 0x1801bea80
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x170]
call fcn.1801b4b80
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1801be88b
jmp 0x1801bea80
movzx eax, byte [rsp + 0x110]
test eax, eax
jne 0x1801be9c5
mov rax, qword [rsp + 0x178]
mov rax, qword [rax + 0xd0]
cmp dword [rax + 0x5c], 0xffffffff
jne 0x1801be91f
mov rax, qword [rsp + 0x178]
mov rax, qword [rax + 0x90]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x118]
mov ecx, dword [rcx + 0x60]
mov dword [rax + 0x2c8], ecx
mov rax, qword [rsp + 0x118]
cmp dword [rax + 0x60], 0
je 0x1801be91d
mov rax, qword [rsp + 0x118]
mov ecx, dword [rax + 0x60]
mov rax, qword [rsp + 0x108]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x118]
mov dword [rcx + 0x60], eax
mov rax, qword [rsp + 0x118]
cmp dword [rax + 0x60], 0
jl 0x1801be8ee
jmp 0x1801be998
mov rax, qword [rsp + 0x178]
mov rax, qword [rax + 0xd0]
mov rcx, qword [rsp + 0x140]
mov eax, dword [rax + 0x5c]
mov dword [rcx + 0x2c8], eax
mov rax, qword [rsp + 0x178]
mov rax, qword [rax + 0xd0]
cmp dword [rax + 0x5c], 0
je 0x1801be998
mov rax, qword [rsp + 0x178]
mov rax, qword [rax + 0xd0]
mov ecx, dword [rax + 0x5c]
mov rax, qword [rsp + 0x108]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x178]
mov rcx, qword [rcx + 0xd0]
mov dword [rcx + 0x5c], eax
mov rax, qword [rsp + 0x178]
mov rax, qword [rax + 0xd0]
cmp dword [rax + 0x5c], 0
jl 0x1801be954
mov rax, qword [rsp + 0x140]
cmp dword [rax + 0x2c8], 0
jne 0x1801be9c5
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x100]
mov ecx, dword [rcx + 0x158]
mov dword [rax + 0x2c8], ecx
mov rax, qword [rsp + 0x100]
cmp dword [rax + 0x15c], 0
je 0x1801bea80
mov rax, qword [rsp + 0xf8]
mov eax, dword [rax + 0x74]
mov ecx, dword [rsp + 0x160]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x100]
add eax, dword [rcx + 0x15c]
mov edx, eax
mov rcx, qword [rsp + 0x158]
call fcn.18016dfd0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1801bea1a
jmp 0x1801bea80
mov rax, qword [rsp + 0x140]
add rax, 0x290
movzx r9d, byte [rsp + 0x110]
mov r8b, 1
mov rdx, qword [rsp + 0x158]
mov rcx, rax
call fcn.1801bc1f0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1801bea51
jmp 0x1801bea80
mov rax, qword [rsp + 0x140]
add rax, 0x2c0
mov rcx, qword [rsp + 0x140]
add rcx, 0x290
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
call fcn.1801bc8d0
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x60]
call fcn.1801b3150
mov eax, dword [rsp + 0x40]
mov edi, eax
mov rcx, rsp
lea rdx, [0x18027f740]
call fcn.180225a10
mov eax, edi
add rsp, 0x130
pop rdi
ret