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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1f0
mov eax, 0x3278
mov word [rsp + 0x130], ax
movzx eax, byte [0x180146c5f]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x8c], 0x19b1
mov byte [rsp + 0x32], 0x5c
mov qword [rsp + 0x150], 0xa0
movzx eax, byte [0x180146c5e]
mov qword [rsp + 0x78], rax
movzx eax, byte [0x180146c5f]
mov byte [rsp + 0x44], al
mov dword [rsp + 0x84], 0xa6
mov eax, 0x199
mov word [rsp + 0x34], ax
mov eax, 0xab
mov word [rsp + 0x54], ax
mov dword [rsp + 0x88], 0x6d24
mov eax, 0xc496
mov word [rsp + 0x48], ax
mov dword [rsp + 0x138], 0x9c
mov eax, dword [0x180146d38]
mov dword [rsp + 0x58], eax
mov byte [rsp + 0x30], 0x9a
mov eax, 0xffff8fd7
mov word [rsp + 0x4c], ax
movsx ax, byte [0x180146caf]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x180146c03]
movzx eax, al
mov qword [rsp + 0x120], rax
movzx eax, byte [0x180146c87]
mov byte [rsp + 0x31], al
mov eax, 0xcc
mov word [rsp + 0x40], ax
mov dword [rsp + 0x5c], 0x7b56dbe2
movzx eax, byte [0x180146d60]
mov byte [rsp + 0x60], al
mov eax, 0xd0
mov word [rsp + 0x38], ax
movabs rax, 0x8c7ea32f88259
mov qword [rsp + 0x1b8], rax
mov qword [rsp + 0x1c0], 0x2780
movzx eax, word [0x180146d0c]
movzx eax, ax
mov dword [rsp + 0x190], eax
mov qword [rsp + 0x1c8], 0xefd8
mov qword [rsp + 0x1d0], 0x3210e6cf
movzx eax, word [0x180146d10]
mov word [rsp + 0x134], ax
mov qword [rsp + 0x1d8], 0xfe2
movzx eax, byte [0x180146c86]
mov byte [rsp + 0x80], al
mov qword [rsp + 0x1e0], 0x7ed7
movzx eax, word [0x180146d58]
mov byte [rsp + 0x81], al
movzx eax, word [0x180146d60]
mov dword [rsp + 0x194], eax
movzx eax, word [0x180146d58]
mov word [rsp + 0x14c], ax
mov dword [rsp + 0x198], 0x1c
movzx eax, byte [0x180146c2e]
mov byte [rsp + 0x82], al
mov eax, 0x8910
mov word [rsp + 0x148], ax
movzx eax, byte [0x180146c5e]
mov word [rsp + 0x144], ax
mov r9d, 0x30
xor r8d, r8d
mov edx, 0x3d
mov ecx, dword [0x180146d64]
call fcn.180094760
mov eax, eax
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
test rax, rax
jb 0x1800cac44
mov dword [rsp + 0xa4], 1
jmp 0x1800cac4f
mov dword [rsp + 0xa4], 0
mov rax, qword [rsp + 0x78]
cmp rax, 4
jb 0x1800cac67
mov dword [rsp + 0xa0], 1
jmp 0x1800cac72
mov dword [rsp + 0xa0], 0
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0xa4], eax
jne 0x1800cac94
movzx eax, word [rsp + 0x38]
test eax, eax
je 0x1800cac92
mov byte [0x180146c5f], 0xe6
jmp 0x1800cad0c
mov eax, dword [rsp + 0x88]
test eax, eax
jne 0x1800cacb5
cmp dword [0x180146c44], 0
jne 0x1800cacb5
mov dword [rsp + 0xa8], 0
jmp 0x1800cacc0
mov dword [rsp + 0xa8], 1
movzx eax, byte [str.U_This_legacy_API_is]
movsx eax, al
mov ecx, dword [0x180146d48]
cmp eax, ecx
jbe 0x1800cace1
mov dword [rsp + 0xac], 1
jmp 0x1800cacec
mov dword [rsp + 0xac], 0
mov eax, dword [rsp + 0xa8]
not eax
cmp eax, dword [rsp + 0xac]
jl 0x1800cad0c
mov eax, dword [0x180146c04]
dec eax
mov dword [0x180146c04], eax
movzx eax, byte [0x180146c87]
movzx eax, al
movabs rcx, 0x16572fad83ce5
sub rax, rcx
mov byte [rsp + 0x32], al
mov rax, qword [0x180146d68]
mov byte [0x180146c5b], al
mov dword [rsp + 0x110], 0
movzx eax, word [rsp + 0x38]
movzx ecx, word [rsp + 0x48]
movzx ecx, cx
cmp eax, ecx
jle 0x1800cae93
mov r8d, 0xe2
mov edx, 0x3c
mov ecx, 0x7e
call fcn.1800953a0
mov byte [0x180146c2e], al
movzx eax, byte [0x180146c2e]
test eax, eax
jge 0x1800cad87
mov dword [rsp + 0xb4], 1
jmp 0x1800cad92
mov dword [rsp + 0xb4], 0
movzx eax, byte [0x180146c2e]
cmp eax, 0x23
jge 0x1800cadab
mov dword [rsp + 0xb0], 1
jmp 0x1800cadb6
mov dword [rsp + 0xb0], 0
mov eax, dword [rsp + 0xb0]
cmp dword [rsp + 0xb4], eax
jne 0x1800cae91
movzx eax, byte [0x180146bef]
movzx eax, al
movzx ecx, byte [0x180146c5f]
movzx edx, word [0x180146d0c]
movzx edx, dx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
mov r9d, ecx
mov r8d, edx
xor edx, edx
mov ecx, 0x7d
call fcn.180094460
cdqe
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1800cae21
mov dword [rsp + 0xbc], 1
jmp 0x1800cae2c
mov dword [rsp + 0xbc], 0
mov rax, qword [rsp + 0x70]
cmp rax, 0x5b
je 0x1800cae44
mov dword [rsp + 0xb8], 1
jmp 0x1800cae4f
mov dword [rsp + 0xb8], 0
mov eax, dword [rsp + 0xb8]
cmp dword [rsp + 0xbc], eax
jge 0x1800cae6d
mov eax, 0xffffe381
mov word [0x180146d3c], ax
jmp 0x1800cae91
xor eax, eax
test eax, eax
je 0x1800cae91
movzx eax, byte [rsp + 0x30]
movsx eax, al
mov ecx, 4
imul rcx, rcx, 0x7e67
lea rdx, [0x1811a0a10]
mov dword [rdx + rcx], eax
jmp 0x1800caed4
movsx eax, word [0x180146c5c]
mov ecx, dword [0x180146d38]
add ecx, eax
mov eax, ecx
test eax, eax
jne 0x1800caed4
movzx eax, byte [rsp + 0x30]
movsx eax, al
movsx ecx, word [0x180146d30]
add eax, ecx
movzx ecx, byte [rsp + 0x30]
movsx ecx, cl
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x30], al
movsx eax, word [rsp + 0x40]
mov dword [0x180146d2c], eax
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x1a0], rax
movsx eax, word [0x180146d08]
mov ecx, dword [0x180146d14]
xor ecx, eax
mov eax, ecx
mov dword [0x180146d14], eax
movsx rax, byte [rsp + 0x31]
mov rcx, qword [rsp + 0x150]
sub rax, rcx
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x1a0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x158], rax
xor eax, eax
cmp eax, 0xc2cfc785
je 0x1800caf7f
movzx eax, byte [0x180146c2f]
movsx eax, al
test eax, eax
je 0x1800caf6f
movsx eax, word [0x180146d5c]
sub eax, 0xe
cdqe
mov qword [rsp + 0x150], rax
movzx eax, word [rsp + 0x38]
add eax, 0x5a1a5ce2
mov dword [0x180146d14], eax
jmp 0x1800caf7d
mov eax, dword [rsp + 0x5c]
add eax, 0x84eb
mov word [rsp + 0x34], ax
jmp 0x1800cafe2
mov eax, dword [rsp + 0x8c]
test eax, eax
jne 0x1800caf97
mov dword [rsp + 0xc0], 1
jmp 0x1800cafa2
mov dword [rsp + 0xc0], 0
mov eax, dword [0x180146d38]
cmp dword [rsp + 0xc0], eax
jne 0x1800cafbe
mov dword [rsp + 0xc4], 1
jmp 0x1800cafc9
mov dword [rsp + 0xc4], 0
mov eax, dword [rsp + 0xc4]
not eax
test eax, eax
je 0x1800cafe2
mov eax, 0x1000
mov word [0x180146d3c], ax
mov eax, dword [0x181001ff0]
mov qword [0x180146d20], rax
movzx eax, byte [0x180146c03]
movzx eax, al
movzx ecx, word [rsp + 0x34]
movsx ecx, cx
sub eax, ecx
movzx ecx, byte [0x180146c03]
movzx ecx, cl
sub ecx, eax
mov eax, ecx
mov byte [0x180146c03], al
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x178], 0
mov rax, qword [0x180146d40]
add rax, 0xe41f
mov qword [rsp + 0x78], rax
movzx eax, word [0x180146d0c]
movzx eax, ax
add eax, 0xd6
mov byte [0x180146bc7], al
mov qword [rsp + 0x128], 0
cmp dword [rsp + 0x5c], 0
je 0x1800cb284
movzx eax, byte [rsp + 0x30]
movsx eax, al
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, eax
mov edx, 0xa8
xor ecx, ecx
call fcn.1800950a0
mov dword [0x180146d48], eax
movsx eax, byte [rsp + 0x32]
test eax, eax
je 0x1800cb1b2
movzx eax, word [rsp + 0x54]
movzx eax, ax
movzx ecx, word [rsp + 0x3c]
movzx ecx, cx
cmp eax, ecx
jge 0x1800cb0c3
mov dword [rsp + 0xcc], 1
jmp 0x1800cb0ce
mov dword [rsp + 0xcc], 0
movzx eax, word [rsp + 0x54]
movzx eax, ax
cmp eax, 0x2f
jge 0x1800cb0e8
mov dword [rsp + 0xc8], 1
jmp 0x1800cb0f3
mov dword [rsp + 0xc8], 0
mov eax, dword [rsp + 0xc8]
cmp dword [rsp + 0xcc], eax
jne 0x1800cb192
movzx eax, byte [0x180146c41]
movzx eax, al
movzx ecx, byte [str.U_This_legacy_API_is]
movsx ecx, cl
not ecx
add eax, ecx
test eax, eax
jne 0x1800cb130
mov dword [rsp + 0xd0], 1
jmp 0x1800cb13b
mov dword [rsp + 0xd0], 0
movzx eax, word [rsp + 0x3c]
movzx eax, ax
mov ecx, dword [rsp + 0xd0]
sub ecx, eax
mov eax, ecx
cdqe
movzx ecx, byte [0x180146c5e]
movzx edx, byte [0x180146c03]
movzx edx, dl
add ecx, edx
movsxd rcx, ecx
movsx rdx, word [0x180146d3c]
mov r8, qword [rsp + 0x70]
imul rdx, r8
and rcx, rdx
xor rax, rcx
mov byte [0x180146c5f], al
movzx eax, byte [0x180146c44]
mov byte [0x180146c41], al
jmp 0x1800cb1ad
movzx eax, word [rsp + 0x34]
movsx rax, ax
movabs rcx, 0x4593ff536ec28
add rax, rcx
mov word [rsp + 0x40], ax
jmp 0x1800cb27f
movabs rax, 0x46a876d5e9c83
xor ecx, ecx
cmp rcx, rax
je 0x1800cb242
mov eax, dword [0x180146d14]
mov eax, eax
movabs rcx, 0x4853d420171e5
add rax, rcx
mov word [0x180146d5c], ax
cmp dword [rsp + 0x5c], 0
jne 0x1800cb1f4
mov qword [rsp + 0x168], 1
jmp 0x1800cb200
mov qword [rsp + 0x168], 0
movabs rax, 0x8d811a74c6961
mov rcx, qword [0x180146cf0]
sub rcx, rax
mov rax, rcx
not rax
mov ecx, dword [0x180146d64]
not ecx
mov edx, dword [0x180146d2c]
sub edx, ecx
mov ecx, edx
mov ecx, ecx
and rax, rcx
add rax, qword [rsp + 0x168]
mov word [0x180146d10], ax
jmp 0x1800cb27f
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1800cb25c
movsx eax, byte [rsp + 0x31]
shl eax, 4
mov byte [0x180146c5e], al
jmp 0x1800cb27f
movzx eax, byte [0x180146c5f]
movsx ecx, word [0x180146d08]
cmp eax, ecx
jg 0x1800cb27f
mov rax, qword [rsp + 0x78]
sub rax, 0x50da
mov dword [0x180146d64], eax
jmp 0x1800cb31b
movsx eax, word [0x180146d10]
test eax, eax
je 0x1800cb2ba
movzx eax, word [0x180146d28]
cwde
sub eax, 0xb7
mov dword [rsp + 0x5c], eax
movzx eax, byte [0x180146bc7]
movsx eax, al
movzx ecx, word [0x180146d60]
sub eax, ecx
mov word [rsp + 0x54], ax
jmp 0x1800cb31b
movsx eax, byte [rsp + 0x44]
not eax
test eax, eax
je 0x1800cb2e9
movzx eax, word [rsp + 0x3c]
movzx eax, ax
movsx ecx, word [0x180146d10]
add eax, ecx
movzx ecx, word [rsp + 0x3c]
movzx ecx, cx
sub ecx, eax
mov eax, ecx
mov word [rsp + 0x3c], ax
jmp 0x1800cb31b
movzx eax, byte [rsp + 0x60]
movzx eax, al
test eax, eax
jne 0x1800cb31b
movzx eax, byte [str.U_This_legacy_API_is]
movsx eax, al
movzx ecx, byte [0x180146bef]
movzx ecx, cl
sub eax, ecx
mov byte [str.U_This_legacy_API_is], al
mov eax, 0x5e6f
mov word [rsp + 0x48], ax
mov qword [rsp + 0x160], 0
mov eax, dword [0x180146d64]
movzx ecx, byte [0x180146c43]
cmp eax, ecx
je 0x1800cb345
mov dword [rsp + 0xd8], 1
jmp 0x1800cb350
mov dword [rsp + 0xd8], 0
mov eax, dword [0x180146d64]
cmp eax, 0x2e
je 0x1800cb368
mov dword [rsp + 0xd4], 1
jmp 0x1800cb373
mov dword [rsp + 0xd4], 0
mov eax, dword [rsp + 0xd4]
cmp dword [rsp + 0xd8], eax
jne 0x1800cb3e0
mov qword [0x180146d68], 0
movzx eax, byte [0x180146c5f]
movzx ecx, word [0x180146d28]
movsx ecx, cx
add eax, ecx
movzx ecx, byte [0x180146c5f]
sub ecx, eax
mov eax, ecx
mov byte [0x180146c5f], al
mov rax, qword [0x180146d68]
mov qword [rsp + 0x1a8], rax
cmp qword [rsp + 0x1a8], 0
je 0x1800cb3ce
jmp 0x1800cb3db
movzx eax, word [rsp + 0x3c]
dec ax
mov word [rsp + 0x3c], ax
jmp 0x1800cb543
movzx eax, byte [0x180146c42]
movsx rax, al
mov rcx, qword [rsp + 0x150]
cmp rax, rcx
jle 0x1800cb405
mov dword [rsp + 0xdc], 1
jmp 0x1800cb410
mov dword [rsp + 0xdc], 0
mov rax, qword [rsp + 0x120]
test rax, rax
jne 0x1800cb436
mov rax, qword [0x180146d40]
test rax, rax
jne 0x1800cb436
mov dword [rsp + 0xe0], 0
jmp 0x1800cb441
mov dword [rsp + 0xe0], 1
mov eax, dword [rsp + 0xdc]
not eax
cmp eax, dword [rsp + 0xe0]
jle 0x1800cb4b4
movzx eax, word [rsp + 0x48]
movzx eax, ax
add rax, qword [0x180146d00]
mov word [rsp + 0x48], ax
mov eax, dword [rsp + 0x5c]
mov ecx, dword [0x180146c04]
sub ecx, eax
mov eax, ecx
movsx ecx, word [0x180146d30]
sub ecx, dword [rsp + 0x5c]
add eax, ecx
test eax, eax
jne 0x1800cb494
mov qword [rsp + 0x170], 1
jmp 0x1800cb4a0
mov qword [rsp + 0x170], 0
mov rax, qword [rsp + 0x170]
mov qword [0x180146d40], rax
jmp 0x1800cb543
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x70]
not rcx
cmp rax, rcx
jbe 0x1800cb4d6
mov dword [rsp + 0xe8], 1
jmp 0x1800cb4e1
mov dword [rsp + 0xe8], 0
mov eax, dword [rsp + 0x84]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jg 0x1800cb4fe
mov dword [rsp + 0xe4], 1
jmp 0x1800cb509
mov dword [rsp + 0xe4], 0
mov eax, dword [rsp + 0xe4]
cmp dword [rsp + 0xe8], eax
jle 0x1800cb543
movzx eax, word [rsp + 0x3c]
movzx eax, ax
mov rcx, qword [0x180146cf0]
imul rcx, rax
mov rax, rcx
mov rcx, qword [0x180146cf0]
and rcx, rax
mov rax, rcx
mov qword [0x180146cf0], rax
mov dword [rsp + 0x140], 0x20
mov qword [rsp + 0x1b0], 0x28
movzx eax, word [rsp + 0x4c]
cwde
test eax, eax
je 0x1800cb71a
mov byte [str.U_This_legacy_API_is], 4
movsx eax, word [0x180146d30]
movzx ecx, word [rsp + 0x4c]
movsx ecx, cx
sub eax, ecx
movsx ecx, word [0x180146d30]
and ecx, eax
mov eax, ecx
mov word [0x180146d30], ax
movzx eax, byte [str.U_This_legacy_API_is]
mov byte [rsp + 0x64], al
cmp byte [rsp + 0x64], 0
je 0x1800cb5d1
cmp byte [rsp + 0x64], 1
je 0x1800cb621
cmp byte [rsp + 0x64], 2
je 0x1800cb663
cmp byte [rsp + 0x64], 3
je 0x1800cb6c9
cmp byte [rsp + 0x64], 4
je 0x1800cb6df
jmp 0x1800cb718
movzx eax, word [rsp + 0x4c]
cwde
movzx ecx, byte [str.U_This_legacy_API_is]
movsx ecx, cl
add eax, ecx
mov word [rsp + 0x4c], ax
mov eax, dword [rsp + 0x8c]
test eax, eax
je 0x1800cb601
movzx eax, word [rsp + 0x38]
mov dword [rsp + 0xec], eax
jmp 0x1800cb60e
mov eax, dword [0x180146d48]
mov dword [rsp + 0xec], eax
mov eax, dword [rsp + 0xec]
mov dword [rsp + 0x8c], eax
jmp 0x1800cb718
movzx eax, byte [0x180146c2f]
movsx eax, al
movsx ecx, word [rsp + 0x40]
movzx edx, word [0x180146d60]
sub ecx, edx
not ecx
or eax, ecx
movsx ecx, byte [rsp + 0x32]
or eax, ecx
mov byte [0x180146c86], al
movzx eax, word [rsp + 0x48]
movzx eax, ax
add eax, 0x5c5491fb
mov word [0x180146d60], ax
jmp 0x1800cb718
cmp dword [0x180146d2c], 0
jne 0x1800cb679
mov dword [rsp + 0xf0], 1
jmp 0x1800cb684
mov dword [rsp + 0xf0], 0
movzx eax, byte [0x180146bc7]
movsx eax, al
xor eax, dword [rsp + 0xf0]
cdqe
mov ecx, dword [rsp + 0x138]
mov ecx, ecx
movabs rdx, 0x5b2cba5e38a2d
sub rdx, rcx
mov rcx, rdx
not rcx
add rax, rcx
mov ecx, dword [0x180146d14]
mov ecx, ecx
sub rax, rcx
mov byte [0x180146c87], al
jmp 0x1800cb718
movzx eax, word [rsp + 0x48]
movzx eax, ax
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
jmp 0x1800cb718
movzx eax, byte [0x180146c86]
mov ecx, dword [0x180146d38]
and ecx, eax
mov eax, ecx
mov ecx, dword [0x180146c04]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x32], al
mov eax, dword [rsp + 0x58]
cdqe
mov rcx, qword [0x180146d68]
add rcx, rax
mov rax, rcx
mov qword [0x180146d68], rax
jmp 0x1800cb783
xor eax, eax
cmp eax, 0xf4d4
je 0x1800cb783
mov byte [0x180146c86], 0
movzx eax, byte [str.U_This_legacy_API_is]
movsx eax, al
not eax
cdqe
mov rcx, qword [rsp + 0x78]
or rcx, rax
mov rax, rcx
not rax
movzx ecx, byte [0x180146c86]
xor rax, rcx
movzx ecx, byte [0x180146c5e]
not ecx
movzx edx, byte [0x180146c5e]
not edx
mov r8d, dword [0x180146c04]
add r8d, ecx
mov ecx, r8d
add edx, ecx
mov ecx, edx
movsxd rcx, ecx
or rax, rcx
not rax
mov word [0x180146d60], ax
mov dword [rsp + 0x13c], 0x40
movsx eax, byte [rsp + 0x44]
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
jne 0x1800cb7b6
movzx eax, byte [0x180146c5e]
mov ecx, dword [rsp + 0x58]
add eax, ecx
mov word [rsp + 0x34], ax
mov dword [rsp + 0x58], 0x91
xor eax, eax
mov word [rsp + 0x50], ax
jmp 0x1800cb7cc
movzx eax, word [rsp + 0x50]
inc ax
mov word [rsp + 0x50], ax
movzx eax, word [rsp + 0x50]
mov rcx, qword [rsp + 0x158]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x1800cbeb2
movsx eax, word [0x180146c5c]
movsx ecx, word [rsp + 0x40]
lea eax, [rcx + rax - 0xfa]
mov word [rsp + 0x40], ax
movsx eax, word [0x180146d3c]
mov rax, qword [rsp + 0x158]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x158]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rsp + 0x1b0]
imul rdx, rcx
mov rcx, rdx
add rax, rcx
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x61]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x61]
call fcn.1800cbed0
mov rcx, rax
call fcn.1800cbfc0
mov rcx, qword [rsp + 0x90]
mov rdx, rax
call fcn.180032090
test eax, eax
jne 0x1800cbead
movsx rax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x120]
sub rax, rcx
mov word [rsp + 0x40], ax
movzx eax, byte [0x180146bef]
movzx eax, al
mov rcx, qword [rsp + 0x78]
and rax, rcx
mov byte [0x180146bef], al
mov rax, qword [0x180146d18]
mov ecx, dword [0x180146d64]
mov ecx, ecx
cmp rax, rcx
jle 0x1800cb8d1
movsx eax, word [0x180146c5c]
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
jmp 0x1800cb99d
movzx eax, byte [0x180146c43]
test eax, eax
jne 0x1800cb8e9
mov dword [rsp + 0xf4], 1
jmp 0x1800cb8f4
mov dword [rsp + 0xf4], 0
movzx eax, word [rsp + 0x34]
cwde
cmp dword [rsp + 0xf4], eax
jne 0x1800cb910
mov dword [rsp + 0xfc], 1
jmp 0x1800cb91b
mov dword [rsp + 0xfc], 0
mov eax, dword [0x180146d4c]
test eax, eax
jne 0x1800cb932
mov dword [rsp + 0xf8], 1
jmp 0x1800cb93d
mov dword [rsp + 0xf8], 0
mov eax, dword [rsp + 0xf8]
cmp dword [rsp + 0xfc], eax
jne 0x1800cb99d
movsx eax, byte [rsp + 0x31]
mov ecx, dword [0x180146d48]
sub ecx, eax
mov eax, ecx
movsx ecx, word [0x180146d3c]
mov edx, dword [rsp + 0x88]
not edx
sub ecx, edx
sub eax, ecx
mov dword [rsp + 0x84], eax
movzx eax, word [0x180146d0c]
movzx eax, ax
movsx ecx, word [rsp + 0x40]
add eax, ecx
movzx ecx, word [0x180146d0c]
movzx ecx, cx
or ecx, eax
mov eax, ecx
mov word [0x180146d0c], ax
mov qword [rsp + 0x188], 0
mov r9d, 0x3c
mov r8d, 9
xor edx, edx
xor ecx, ecx
call fcn.180094760
mov byte [rsp + 0x44], al
movzx eax, word [rsp + 0x34]
cwde
movzx ecx, word [rsp + 0x54]
movzx ecx, cx
cmp eax, ecx
jg 0x1800cb9d6
jmp 0x1800cba03
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x1800cb9ee
movzx eax, byte [str.U_This_legacy_API_is]
movsx eax, al
test eax, eax
je 0x1800cba03
movzx eax, word [rsp + 0x38]
movzx ecx, word [rsp + 0x34]
movsx ecx, cx
imul eax, ecx
mov word [rsp + 0x38], ax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
mov qword [rsp + 0x178], rax
movsx rax, word [0x180146c5c]
mov rcx, qword [0x180146d20]
imul rax, rcx
not rax
movzx ecx, word [rsp + 0x38]
movzx edx, byte [0x180146c5b]
movsx edx, dl
not edx
add ecx, edx
not ecx
movsxd rcx, ecx
sub rax, rcx
mov byte [rsp + 0x32], al
mov eax, 0xb022ee53
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x208]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x210]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x13c]
lea r8, [rsp + 0x178]
lea rdx, [rsp + 0x128]
mov rcx, qword [rsp + 0x200]
call fcn.1800027c3
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800cbc68
xor r8d, r8d
mov edx, 0xe
xor ecx, ecx
call fcn.1800953a0
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
movsx eax, al
test eax, eax
jg 0x1800cbbfd
movzx eax, byte [0x180146c42]
movsx rax, al
mov rcx, qword [0x180146d20]
imul rcx, rax
mov rax, rcx
mov qword [0x180146d20], rax
mov rax, qword [0x180146d40]
test rax, rax
jne 0x1800cbb37
mov dword [rsp + 0x100], 1
jmp 0x1800cbb42
mov dword [rsp + 0x100], 0
mov eax, dword [rsp + 0x100]
xor eax, 0x1b5a1790
test eax, eax
jne 0x1800cbb5f
mov dword [rsp + 0x104], 1
jmp 0x1800cbb6a
mov dword [rsp + 0x104], 0
movsx eax, byte [rsp + 0x31]
mov ecx, dword [0x180146d14]
add eax, dword [rsp + 0x104]
add eax, ecx
test eax, eax
jne 0x1800cbb8f
mov dword [rsp + 0x10c], 1
jmp 0x1800cbb9a
mov dword [rsp + 0x10c], 0
movzx eax, word [rsp + 0x34]
cwde
not eax
cdqe
mov rcx, qword [0x180146d50]
not rcx
sub rax, rcx
test rax, rax
jne 0x1800cbbc3
mov dword [rsp + 0x108], 1
jmp 0x1800cbbce
mov dword [rsp + 0x108], 0
movzx eax, byte [0x180146c43]
movzx ecx, word [rsp + 0x34]
movsx ecx, cx
add eax, ecx
imul eax, dword [rsp + 0x108]
mov ecx, dword [rsp + 0x10c]
add ecx, eax
mov eax, ecx
not eax
mov word [0x180146d60], ax
jmp 0x1800cbc5e
mov eax, dword [0x180146d4c]
test eax, eax
jne 0x1800cbc1f
movzx eax, word [rsp + 0x34]
cwde
not eax
movzx ecx, byte [0x180146c41]
movzx ecx, cl
sub eax, ecx
test eax, eax
je 0x1800cbc5e
movzx eax, byte [0x180146c86]
add eax, 0x8f
mov byte [0x180146caf], al
movzx eax, byte [0x180146c5e]
movsx ecx, word [0x180146d30]
xor eax, ecx
movzx ecx, byte [0x180146bc7]
movsx ecx, cl
mov edx, dword [rsp + 0x58]
imul edx, ecx
mov ecx, edx
imul eax, ecx
mov dword [rsp + 0x84], eax
mov eax, 0xa
jmp 0x1800cbeb7
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
lea rcx, [rsp + 0x188]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x160]
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x200]
call fcn.180002125
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800cbd01
movsx rax, word [0x180146d10]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
test rax, rax
jne 0x1800cbcd1
mov qword [rsp + 0x180], 1
jmp 0x1800cbcdd
mov qword [rsp + 0x180], 0
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x70], rax
movzx eax, byte [0x181001ff0]
mov byte [0x180146c43], al
mov eax, 0xc
jmp 0x1800cbeb7
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x140]
lea r8, [rsp + 0x188]
lea rdx, [rsp + 0x128]
mov rcx, qword [rsp + 0x200]
call fcn.1800027c3
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1800cbea9
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rsp + 0x5c]
cmp rax, rcx
jb 0x1800cbd5e
mov dword [rsp + 0x118], 1
jmp 0x1800cbd69
mov dword [rsp + 0x118], 0
mov rax, qword [rsp + 0x70]
cmp rax, 0x2b
jb 0x1800cbd81
mov dword [rsp + 0x114], 1
jmp 0x1800cbd8c
mov dword [rsp + 0x114], 0
mov eax, dword [rsp + 0x114]
cmp dword [rsp + 0x118], eax
je 0x1800cbe88
movzx eax, byte [0x180146c5b]
movsx eax, al
imul eax, eax, 0x3f69
test eax, eax
je 0x1800cbdd3
mov eax, dword [0x180146d14]
movzx ecx, byte [rsp + 0x30]
movsx ecx, cl
cmp eax, ecx
jbe 0x1800cbdd3
mov dword [rsp + 0x9c], 1
jmp 0x1800cbdde
mov dword [rsp + 0x9c], 0
movzx eax, byte [0x180146c87]
movzx eax, al
not eax
test eax, eax
jne 0x1800cbe08
mov eax, dword [rsp + 0x88]
not eax
test eax, eax
jne 0x1800cbe08
mov dword [rsp + 0x11c], 0
jmp 0x1800cbe13
mov dword [rsp + 0x11c], 1
movzx eax, word [rsp + 0x48]
movzx eax, ax
not eax
movzx ecx, byte [0x180146c41]
movzx ecx, cl
cmp eax, ecx
jne 0x1800cbe38
mov dword [rsp + 0x98], 1
jmp 0x1800cbe43
mov dword [rsp + 0x98], 0
mov eax, dword [rsp + 0x11c]
imul eax, dword [rsp + 0x98]
cmp dword [rsp + 0x9c], eax
jg 0x1800cbe86
movzx eax, byte [0x180146bef]
movzx eax, al
mov rcx, qword [0x180146d68]
add rcx, rax
mov rax, rcx
mov rcx, qword [0x180146d68]
add rcx, rax
mov rax, rcx
mov qword [0x180146d68], rax
jmp 0x1800cbea2
movsx ax, byte [rsp + 0x31]
mov ecx, 2
imul rcx, rcx, 0x4e
lea rdx, [0x181133ad0]
mov word [rdx + rcx], ax
mov eax, 0xb
jmp 0x1800cbeb7
xor eax, eax
jmp 0x1800cbeb7
jmp 0x1800cb7bf
mov eax, 0xd
add rsp, 0x1f0
pop rdi
ret