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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x90]
call fcn.140089fb0
test eax, eax
jne 0x140118fda
movzx eax, byte [0x1401dd784]
test eax, eax
jne 0x140118fe4
mov dword [rsp + 0x44], 0
jmp 0x140119000
mov eax, 4
imul rax, rax, 0xb
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x38]
movzx eax, word [rax + 6]
dec eax
cdqe
lea rax, [rax*8 + 0x28]
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x68
add rax, 0xc8
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
cdqe
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.1401710a0
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x30], rcx
cmp qword [rsp + 0x28], 0
jne 0x14011907c
mov dword [rsp + 0x40], 7
jmp 0x140119363
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x28], rcx
movsxd rax, dword [rsp + 0x38]
mov r8, rax
mov rax, qword [rsp + 0xa0]
mov rdx, qword [rax + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140D.dll_memcpy]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], 0
cmp dword [rsp + 0x98], 0
je 0x14011910c
cmp dword [rsp + 0x44], 0
jne 0x14011910c
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x98]
mov word [rax + 6], cx
mov rcx, qword [rsp + 0x48]
call fcn.14014cae0
mov rcx, qword [rsp + 0x48]
call fcn.1401474b0
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0xc], ecx
mov rcx, qword [rsp + 0x48]
call fcn.14014c9b0
mov eax, dword [rsp + 0x44]
inc eax
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 0x5b], al
mov eax, dword [rsp + 0x44]
dec eax
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 0x5a], al
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x5b]
cmp eax, 1
jle 0x14011916e
mov dword [rsp + 0x64], 1
jmp 0x140119176
mov dword [rsp + 0x64], 0
mov rax, qword [rsp + 0x28]
movzx ecx, byte [rsp + 0x64]
mov byte [rax + 0x59], cl
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x20], rcx
mov dword [rsp + 0x24], 0
jmp 0x1401191a8
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x5b]
cmp dword [rsp + 0x24], eax
jge 0x1401191df
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x68
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x10], rcx
jmp 0x14011919e
mov rcx, qword [rsp + 0x90]
call fcn.140089fb0
test eax, eax
jne 0x1401192f8
mov eax, dword [0x1401dd8d0]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
imul eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov dword [rcx], eax
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 0x18]
movsxd rax, dword [rax + 0x74]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jge 0x140119249
imul rax, qword [rsp + 0x58], 0xfffffffffffffc00
mov qword [rsp + 0x58], rax
jmp 0x14011925f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0x20000000
jge 0x140119276
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
jmp 0x14011927f
mov qword [rsp + 0x68], 0x20000000
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x58]
cmp dword [rax], ecx
jle 0x1401192a3
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov dword [rsp + 0x70], eax
jmp 0x1401192ab
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x70]
mov dword [rax + 4], ecx
movzx eax, byte [0x1401dd788]
test eax, eax
jne 0x1401192f8
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x54], ecx
movsxd rax, dword [rsp + 0x20]
mov rcx, rax
call fcn.1401717a0
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x40], 0
jne 0x1401192f8
mov dword [rsp + 0x40], 7
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 8]
cmp eax, 0xd
jge 0x140119363
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
cmp qword [rcx + rax + 0x20], 0
je 0x14011933d
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x90]
mov rdx, qword [rdx + 0x10]
cmp qword [rcx + rax + 0x20], rdx
jne 0x140119363
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
movzx eax, byte [rcx + rax]
and eax, 2
test eax, eax
jne 0x140119363
mov rax, qword [rsp + 0x28]
mov byte [rax + 0x5c], 3
mov eax, dword [rsp + 0x40]
add rsp, 0x80
pop rdi
ret