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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x118
mov byte [rsp + 0x28], 0xe
movzx eax, byte [0x1800c6bfb]
mov byte [rsp + 0x29], al
mov dword [rsp + 0x70], 0xaf
mov dword [rsp + 0x7c], 0x4e89
mov dword [rsp + 0x74], 0x5a3718b5
mov rax, qword [0x1800c6d38]
mov dword [rsp + 0x4c], eax
mov byte [rsp + 0x21], 0x81
movzx eax, byte [0x1800c6c3f]
movzx eax, al
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x54], 0x9d09710c
mov dword [rsp + 0x3c], 0x98
mov eax, 0x8a
mov word [rsp + 0x34], ax
mov eax, dword [0x1800c6bfc]
mov byte [rsp + 0x22], al
mov qword [rsp + 0xb0], 0xf7
movzx eax, byte [0x1800c6c7f]
movsx eax, al
mov dword [rsp + 0x78], eax
movzx eax, byte [str.eO._AU__IAsyncOperat]
mov byte [rsp + 0x20], al
mov rax, qword [0x1800c6c90]
mov word [rsp + 0x58], ax
mov rax, qword [0x1800c6d28]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x94], 0xb07250b9
movzx eax, byte [0x1800c6be7]
movsx ax, al
mov word [rsp + 0x30], ax
movzx eax, word [0x1800c6ca8]
mov word [rsp + 0x24], ax
movzx eax, word [0x1800c6c3c]
movzx eax, ax
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x98], 0xd2a9
mov qword [rsp + 0xa8], 0x3b
mov rax, qword [0x1800c6d08]
mov word [rsp + 0x5c], ax
mov dword [rsp + 0x9c], 0x462a5282
movsx rax, byte [0x1800c6c3e]
mov qword [rsp + 0xc0], rax
mov rax, qword [0x1800c6ce0]
mov qword [rsp + 0xc8], rax
movzx eax, word [0x1800c6cc4]
mov word [rsp + 0x60], ax
mov eax, 0xe1926e60
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xa0], 0xccb298ee
mov dword [rsp + 0xa4], 0x6afd5991
movzx eax, byte [0x1800c6d30]
mov byte [rsp + 0x2e], al
movabs rax, 0x44cb9fb9ef29c
mov qword [rsp + 0xd8], rax
movzx eax, word [0x1800c6cd4]
mov byte [rsp + 0x2a], al
movzx eax, word [0x1800c6cb8]
mov word [rsp + 0x64], ax
mov eax, dword [0x1800c6bfc]
mov byte [rsp + 0x2b], al
movzx eax, byte [0x1800c6bfb]
mov byte [rsp + 0x2c], al
movzx eax, word [0x1800c6ca8]
mov word [rsp + 0x68], ax
movzx eax, byte [0x1800c6cd0]
mov byte [rsp + 0x2d], al
lea rax, [rsp + 0xe0]
lea rcx, str.An_internal_error
mov rdi, rax
mov rsi, rcx
mov ecx, 0x26
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [0x1800c6cc0], eax
mov rax, qword [rsp + 0x130]
mov qword [0x180ee6c68], rax
mov eax, dword [rsp + 0x54]
cmp eax, dword [rsp + 0x4c]
jae 0x18008b00c
mov dword [rsp + 0x50], 1
jmp 0x18008b014
mov dword [rsp + 0x50], 0
movzx eax, word [rsp + 0x30]
movzx eax, ax
cmp eax, dword [rsp + 0x50]
jg 0x18008b059
xor eax, eax
mov word [rsp + 0x24], ax
movzx eax, word [rsp + 0x24]
cwde
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 0
je 0x18008b03c
jmp 0x18008b057
movzx eax, word [0x1800c6cd4]
movzx eax, ax
mov rcx, qword [0x1800c6d20]
sub rax, rcx
mov word [0x1800c6cd4], ax
jmp 0x18008b07a
xor eax, eax
test eax, eax
je 0x18008b07a
mov eax, 1
imul rax, rax, 0x4431
lea rcx, [0x180f3b870]
movzx edx, byte [rsp + 0x20]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x138]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 1
je 0x18008b0b3
cmp dword [rsp + 0x38], 2
je 0x18008b0b8
cmp dword [rsp + 0x38], 3
je 0x18008b1a4
jmp 0x18008b255
call fcn.18008a900
movzx eax, byte [0x1800c6c27]
movsx rax, al
mov rcx, qword [0x1800c6cf0]
cmp rax, rcx
jge 0x18008b116
mov eax, dword [0x1800c6c98]
cmp rax, qword [rsp + 0x80]
jl 0x18008b0fb
mov eax, 0xffffa1f3
mov word [rsp + 0x34], ax
movzx eax, word [0x1800c6d14]
sub eax, 0xda20f83e
mov dword [rsp + 0x54], eax
jmp 0x18008b111
movzx eax, word [0x1800c6c3c]
movzx eax, ax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x74], 1
jmp 0x18008b1a4
movzx eax, byte [0x1800c6be3]
movsx eax, al
test eax, eax
jne 0x18008b12e
mov dword [rsp + 0x40], 1
jmp 0x18008b136
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x40], eax
jb 0x18008b1a4
mov rax, qword [rsp + 0xa8]
mov ecx, 0xe1
sub rcx, rax
mov rax, rcx
test rax, rax
je 0x18008b1a4
movsx eax, byte [rsp + 0x20]
mov ecx, dword [rsp + 0x78]
imul eax, ecx
mov byte [rsp + 0x20], al
movzx eax, word [0x1800c6ca0]
cwde
test eax, eax
je 0x18008b185
mov rax, qword [0x1800c6ca8]
mov qword [rsp + 0x88], rax
jmp 0x18008b195
movsx rax, byte [0x1800c6c8f]
mov qword [rsp + 0x88], rax
movzx eax, word [rsp + 0x88]
mov word [0x1800c6cd0], ax
mov rax, qword [0x1800c6ca8]
cmp qword [rsp + 0x80], rax
ja 0x18008b1bf
mov dword [rsp + 0x48], 1
jmp 0x18008b1c7
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x80], 0x42
jg 0x18008b1dc
mov dword [rsp + 0x44], 1
jmp 0x18008b1e4
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jg 0x18008b216
mov eax, dword [rsp + 0x7c]
mov eax, eax
movabs rcx, 0x53d095a2d7485
xor rax, rcx
mov byte [0x1800c6be6], al
movzx eax, word [rsp + 0x24]
cwde
shl eax, 4
mov byte [rsp + 0x21], al
jmp 0x18008b255
movzx eax, byte [0x1800c6c7e]
movsx eax, al
test eax, eax
je 0x18008b255
mov eax, dword [rsp + 0x4c]
sub eax, 0x38
cdqe
mov rcx, qword [0x1800c6d20]
add rcx, rax
mov rax, rcx
mov qword [0x1800c6d20], rax
movzx eax, byte [rsp + 0x22]
imul eax, eax, 0x57bf972b
cdqe
mov qword [0x1800c6d40], rax
mov eax, 1
add rsp, 0x118
pop rdi
pop rsi
ret