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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x248
lea rdi, [rsp + 0x30]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x260]
mov rax, qword [0x180370940]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor eax, eax
test eax, eax
jne 0x18018cd18
mov rax, qword [rsp + 0x260]
cmp dword [rax + 0x8c], 0xffffffff
je 0x18018d102
mov eax, dword [rsp + 0x278]
and eax, 8
test eax, eax
jne 0x18018d102
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 4]
and eax, 0x7fff0000
test eax, eax
jne 0x18018d102
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 0x8000
test eax, eax
jne 0x18018d102
mov rax, qword [rsp + 0x260]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x194], eax
mov rax, qword [rsp + 0x260]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x198], eax
mov r9d, dword [rsp + 0x278]
mov r8d, dword [rsp + 0x270]
mov rdx, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x260]
call fcn.1801973b0
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
and eax, 0xff
cmp eax, 0x9d
jne 0x18018cfce
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
jne 0x18018cfc9
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov qword [rsp + 0x1a0], rax
xor eax, eax
mov word [rsp + 0x1b4], ax
xor eax, eax
mov word [rsp + 0x1d4], ax
xor eax, eax
mov word [rsp + 0x1f4], ax
xor eax, eax
mov word [rsp + 0x214], ax
mov rax, qword [rsp + 0x1a0]
cmp dword [rax + 0x42c], 0
jne 0x18018ce4e
mov eax, dword [rsp + 0x30]
jmp 0x18018d3fc
lea r9, [rsp + 0x1f4]
lea r8, [rsp + 0x1b4]
mov edx, dword [rsp + 0x270]
mov rcx, qword [rsp + 0x1a0]
call fcn.18018cad0
lea rax, [rsp + 0x214]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1d4]
xor r8d, r8d
mov edx, dword [rsp + 0x270]
mov rcx, qword [rsp + 0x1a0]
call fcn.18018cb30
xor eax, eax
mov rcx, qword [rsp + 0x268]
mov word [rcx + 0x9a], ax
xor eax, eax
mov rcx, qword [rsp + 0x268]
mov word [rcx + 0x98], ax
mov rax, qword [rsp + 0x268]
mov dword [rax + 0x30], 0
mov rax, qword [rsp + 0x268]
mov dword [rax + 0x34], 0
movsx eax, word [rsp + 0x1b4]
mov edx, dword [rsp + 0x194]
mov ecx, eax
call fcn.180165bd0
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0x38], eax
mov rax, qword [rsp + 0x268]
mov dword [rax + 0x3c], 0
movzx eax, word [rsp + 0x1f4]
mov edx, dword [rsp + 0x194]
mov ecx, eax
call fcn.180165bd0
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0x40], eax
mov rax, qword [rsp + 0x268]
mov dword [rax + 0x44], 0
movsx eax, word [rsp + 0x1d4]
mov edx, dword [rsp + 0x198]
mov ecx, eax
call fcn.180165bd0
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0x48], eax
movzx eax, word [rsp + 0x214]
mov edx, dword [rsp + 0x198]
mov ecx, eax
call fcn.180165bd0
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0x4c], eax
mov rax, qword [rsp + 0x268]
mov dword [rax + 0x60], 0x62697473
mov rax, qword [rsp + 0x268]
mov byte [rax + 0x82], 1
mov rax, qword [rsp + 0x268]
mov dword [rax + 0x90], 0
mov rax, qword [rsp + 0x268]
mov dword [rax + 0x94], 0
xor eax, eax
jmp 0x18018d3fc
jmp 0x18018d102
cmp dword [rsp + 0x30], 0
je 0x18018cff9
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
jne 0x18018cff4
mov eax, dword [rsp + 0x30]
jmp 0x18018d3fc
jmp 0x18018d102
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
je 0x18018d0fb
mov byte [rsp + 0x20], 1
mov r9d, dword [rsp + 0x278]
mov r8, qword [rsp + 0x268]
mov rdx, qword [rsp + 0x260]
lea rcx, [rsp + 0x50]
call fcn.1801975f0
mov r9b, 1
xor r8d, r8d
mov edx, dword [rsp + 0x270]
lea rcx, [rsp + 0x50]
call fcn.1801957a0
lea rcx, [rsp + 0x50]
call fcn.180197c00
mov rax, qword [rsp + 0x268]
mov ecx, dword [rsp + 0xa0]
mov dword [rax + 0x50], ecx
mov rax, qword [rsp + 0x268]
mov ecx, dword [rsp + 0x15c]
mov dword [rax + 0x54], ecx
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x40], 0
jne 0x18018d0bd
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x50], 0
je 0x18018d0bd
mov edx, dword [rsp + 0x194]
mov rax, qword [rsp + 0x268]
mov ecx, dword [rax + 0x50]
call fcn.180165bd0
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0x40], eax
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x4c], 0
jne 0x18018d0fb
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x54], 0
je 0x18018d0fb
mov edx, dword [rsp + 0x198]
mov rax, qword [rsp + 0x268]
mov ecx, dword [rax + 0x54]
call fcn.180165bd0
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0x4c], eax
xor eax, eax
jmp 0x18018d3fc
mov eax, dword [rsp + 0x278]
and eax, 1
test eax, eax
jne 0x18018d130
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0x88]
test eax, eax
jne 0x18018d130
mov dword [rsp + 0x30], 0x24
jmp 0x18018d3f8
mov eax, dword [rsp + 0x278]
and eax, 0x4000
test eax, eax
je 0x18018d14d
mov dword [rsp + 0x30], 6
jmp 0x18018d3f8
mov byte [rsp + 0x20], 0
mov r9d, dword [rsp + 0x278]
mov r8, qword [rsp + 0x268]
mov rdx, qword [rsp + 0x260]
lea rcx, [rsp + 0x50]
call fcn.1801975f0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18018d184
jmp 0x18018d3f8
mov rax, qword [rsp + 0x268]
mov dword [rax + 0x60], 0x6f75746c
mov rax, qword [rsp + 0x268]
mov dword [rax + 0xc0], 0
mov rax, qword [rsp + 0x268]
mov dword [rax + 0xb8], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x270]
lea rcx, [rsp + 0x50]
call fcn.1801957a0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18018d3ab
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x60], 0x636f6d70
jne 0x18018d21e
mov rax, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx + 0x50]
mov dword [rax + 0xc0], ecx
mov rax, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 0x58]
mov qword [rax + 0xc8], rcx
jmp 0x18018d289
mov rax, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x68]
lea rdi, [rax + 0x98]
lea rsi, [rcx + 0x18]
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
btr eax, 9
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
cmp dword [rsp + 0xa8], 0
je 0x18018d289
mov eax, dword [rsp + 0xa8]
neg eax
mov rcx, qword [rsp + 0x268]
add rcx, 0x98
xor r8d, r8d
mov edx, eax
call fcn.180170270
mov eax, dword [rsp + 0x278]
and eax, 2
test eax, eax
jne 0x18018d396
mov rax, qword [rsp + 0x138]
movzx eax, byte [rax + 0x1f5]
test eax, eax
je 0x18018d377
mov rax, qword [rsp + 0x138]
mov eax, dword [rax + 0x1f8]
mov dword [rsp + 0x230], eax
cmp dword [rsp + 0x230], 0
je 0x18018d2f1
cmp dword [rsp + 0x230], 1
je 0x18018d312
cmp dword [rsp + 0x230], 4
je 0x18018d314
cmp dword [rsp + 0x230], 5
je 0x18018d335
jmp 0x18018d356
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 0x20
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x18018d375
jmp 0x18018d375
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 0x30
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x18018d375
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 0x10
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x18018d375
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 8
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x18018d396
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 8
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
mov edx, dword [rsp + 0x270]
lea rcx, [rsp + 0x50]
call fcn.180196f00
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x50]
call fcn.180197c00
mov eax, dword [rsp + 0x278]
and eax, 1
test eax, eax
jne 0x18018d3f8
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x40]
movzx eax, word [rax + 2]
cmp eax, 0x18
jge 0x18018d3f8
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
bts eax, 8
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
mov eax, dword [rsp + 0x30]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180278d40]
call fcn.180224a80
mov rax, rdi
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.180224dd0
add rsp, 0x248
pop rdi
pop rsi
ret