Function at 0x18018dc60
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 [0x180371940]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor eax, eax
test eax, eax
jne 0x18018dca8
mov rax, qword [rsp + 0x260]
cmp dword [rax + 0x8c], 0xffffffff
je 0x18018e092
mov eax, dword [rsp + 0x278]
and eax, 8
test eax, eax
jne 0x18018e092
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 4]
and eax, 0x7fff0000
test eax, eax
jne 0x18018e092
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 0x8000
test eax, eax
jne 0x18018e092
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.180198340
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
and eax, 0xff
cmp eax, 0x9d
jne 0x18018df5e
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
jne 0x18018df59
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 0x18018ddde
mov eax, dword [rsp + 0x30]
jmp 0x18018e38c
lea r9, [rsp + 0x1f4]
lea r8, [rsp + 0x1b4]
mov edx, dword [rsp + 0x270]
mov rcx, qword [rsp + 0x1a0]
call fcn.18018da60
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.18018dac0
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.180166b60
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.180166b60
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.180166b60
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.180166b60
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 0x18018e38c
jmp 0x18018e092
cmp dword [rsp + 0x30], 0
je 0x18018df89
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
jne 0x18018df84
mov eax, dword [rsp + 0x30]
jmp 0x18018e38c
jmp 0x18018e092
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
je 0x18018e08b
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.180198580
mov r9b, 1
xor r8d, r8d
mov edx, dword [rsp + 0x270]
lea rcx, [rsp + 0x50]
call fcn.180196730
lea rcx, [rsp + 0x50]
call fcn.180198b90
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 0x18018e04d
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x50], 0
je 0x18018e04d
mov edx, dword [rsp + 0x194]
mov rax, qword [rsp + 0x268]
mov ecx, dword [rax + 0x50]
call fcn.180166b60
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0x40], eax
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x4c], 0
jne 0x18018e08b
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x54], 0
je 0x18018e08b
mov edx, dword [rsp + 0x198]
mov rax, qword [rsp + 0x268]
mov ecx, dword [rax + 0x54]
call fcn.180166b60
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0x4c], eax
xor eax, eax
jmp 0x18018e38c
mov eax, dword [rsp + 0x278]
and eax, 1
test eax, eax
jne 0x18018e0c0
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0x88]
test eax, eax
jne 0x18018e0c0
mov dword [rsp + 0x30], 0x24
jmp 0x18018e388
mov eax, dword [rsp + 0x278]
and eax, 0x4000
test eax, eax
je 0x18018e0dd
mov dword [rsp + 0x30], 6
jmp 0x18018e388
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.180198580
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18018e114
jmp 0x18018e388
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.180196730
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x18018e33b
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x60], 0x636f6d70
jne 0x18018e1ae
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 0x18018e219
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 0x18018e219
mov eax, dword [rsp + 0xa8]
neg eax
mov rcx, qword [rsp + 0x268]
add rcx, 0x98
xor r8d, r8d
mov edx, eax
call fcn.180171200
mov eax, dword [rsp + 0x278]
and eax, 2
test eax, eax
jne 0x18018e326
mov rax, qword [rsp + 0x138]
movzx eax, byte [rax + 0x1f5]
test eax, eax
je 0x18018e307
mov rax, qword [rsp + 0x138]
mov eax, dword [rax + 0x1f8]
mov dword [rsp + 0x230], eax
cmp dword [rsp + 0x230], 0
je 0x18018e281
cmp dword [rsp + 0x230], 1
je 0x18018e2a2
cmp dword [rsp + 0x230], 4
je 0x18018e2a4
cmp dword [rsp + 0x230], 5
je 0x18018e2c5
jmp 0x18018e2e6
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 0x20
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x18018e305
jmp 0x18018e305
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 0x30
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x18018e305
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 0x10
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x18018e305
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 8
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x18018e326
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.180197e90
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x50]
call fcn.180198b90
mov eax, dword [rsp + 0x278]
and eax, 1
test eax, eax
jne 0x18018e388
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x40]
movzx eax, word [rax + 2]
cmp eax, 0x18
jge 0x18018e388
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, [0x1802791e0]
call fcn.180225a10
mov rax, rdi
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.180225d60
add rsp, 0x248
pop rdi
pop rsi
ret