Function at 0x180187bf0
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 [0x1803dc740]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor eax, eax
test eax, eax
jne 0x180187c38
mov rax, qword [rsp + 0x260]
cmp dword [rax + 0x8c], 0xffffffff
je 0x180188022
mov eax, dword [rsp + 0x278]
and eax, 8
test eax, eax
jne 0x180188022
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 4]
and eax, 0x7fff0000
test eax, eax
jne 0x180188022
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 0x8000
test eax, eax
jne 0x180188022
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.1801922d0
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
and eax, 0xff
cmp eax, 0x9d
jne 0x180187eee
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
jne 0x180187ee9
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 0x180187d6e
mov eax, dword [rsp + 0x30]
jmp 0x18018831c
lea r9, [rsp + 0x1f4]
lea r8, [rsp + 0x1b4]
mov edx, dword [rsp + 0x270]
mov rcx, qword [rsp + 0x1a0]
call fcn.1801879f0
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.180187a50
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.180160af0
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.180160af0
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.180160af0
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.180160af0
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 0x18018831c
jmp 0x180188022
cmp dword [rsp + 0x30], 0
je 0x180187f19
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
jne 0x180187f14
mov eax, dword [rsp + 0x30]
jmp 0x18018831c
jmp 0x180188022
mov rax, qword [rsp + 0x268]
mov rax, qword [rax + 8]
mov eax, dword [rax + 8]
and eax, 1
test eax, eax
je 0x18018801b
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.180192510
mov r9b, 1
xor r8d, r8d
mov edx, dword [rsp + 0x270]
lea rcx, [rsp + 0x50]
call fcn.1801906c0
lea rcx, [rsp + 0x50]
call fcn.180192b20
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 0x180187fdd
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x50], 0
je 0x180187fdd
mov edx, dword [rsp + 0x194]
mov rax, qword [rsp + 0x268]
mov ecx, dword [rax + 0x50]
call fcn.180160af0
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0x40], eax
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x4c], 0
jne 0x18018801b
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x54], 0
je 0x18018801b
mov edx, dword [rsp + 0x198]
mov rax, qword [rsp + 0x268]
mov ecx, dword [rax + 0x54]
call fcn.180160af0
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0x4c], eax
xor eax, eax
jmp 0x18018831c
mov eax, dword [rsp + 0x278]
and eax, 1
test eax, eax
jne 0x180188050
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax + 0x88]
test eax, eax
jne 0x180188050
mov dword [rsp + 0x30], 0x24
jmp 0x180188318
mov eax, dword [rsp + 0x278]
and eax, 0x4000
test eax, eax
je 0x18018806d
mov dword [rsp + 0x30], 6
jmp 0x180188318
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.180192510
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1801880a4
jmp 0x180188318
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.1801906c0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1801882cb
mov rax, qword [rsp + 0x268]
cmp dword [rax + 0x60], 0x636f6d70
jne 0x18018813e
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 0x1801881a9
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 0x1801881a9
mov eax, dword [rsp + 0xa8]
neg eax
mov rcx, qword [rsp + 0x268]
add rcx, 0x98
xor r8d, r8d
mov edx, eax
call fcn.18016b190
mov eax, dword [rsp + 0x278]
and eax, 2
test eax, eax
jne 0x1801882b6
mov rax, qword [rsp + 0x138]
movzx eax, byte [rax + 0x1f5]
test eax, eax
je 0x180188297
mov rax, qword [rsp + 0x138]
mov eax, dword [rax + 0x1f8]
mov dword [rsp + 0x230], eax
cmp dword [rsp + 0x230], 0
je 0x180188211
cmp dword [rsp + 0x230], 1
je 0x180188232
cmp dword [rsp + 0x230], 4
je 0x180188234
cmp dword [rsp + 0x230], 5
je 0x180188255
jmp 0x180188276
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 0x20
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x180188295
jmp 0x180188295
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 0x30
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x180188295
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 0x10
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x180188295
mov rax, qword [rsp + 0x268]
mov eax, dword [rax + 0xb8]
or eax, 8
mov rcx, qword [rsp + 0x268]
mov dword [rcx + 0xb8], eax
jmp 0x1801882b6
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.180191e20
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x50]
call fcn.180192b20
mov eax, dword [rsp + 0x278]
and eax, 1
test eax, eax
jne 0x180188318
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x40]
movzx eax, word [rax + 2]
cmp eax, 0x18
jge 0x180188318
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, [0x1802d7860]
call fcn.180220850
mov rax, rdi
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.18021fab0
add rsp, 0x248
pop rdi
pop rsi
ret