Function at 0x18001f790
Capabilities:
Inspect section memory permissions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x3f8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rax, qword [rsp + 0x448]
mov rbp, r9
mov qword [rsp + 0x78], r9
mov rdi, r8
mov qword [rsp + 0xa8], r8
mov rbx, rdx
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x70], rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0xa0], 0xffffffffffffffff
test rdx, rdx
je 0x1800206a0
lea rax, [rsp + 0x80]
test rax, rax
je 0x1800206a0
lea rax, [rsp + 0x80]
test rax, rax
je 0x18001f824
mov rax, qword [rdx + 0x18]
sub rax, qword [rdx + 0x28]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x88]
lea r9, [rsp + 0xc0]
mov r8d, 0x200
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.180002c60
xor r9d, r9d
test eax, eax
je 0x180020682
mov eax, 0xaa55
test rbp, rbp
jne 0x18001f980
movzx r8d, byte [rsp + 0xc0]
cmp r8b, 0xeb
jne 0x18001f886
or dword [rsi + 0x317], 0x2000000
mov eax, 1
jmp 0x1800206a2
cmp ax, word [rsp + 0x2be]
jne 0x18001f89a
or dword [rsi + 0x317], 0x20000000
mov ecx, r9d
lea rax, [rsp + 0xc0]
mov edx, 0x1be
nop word [rax + rax]
cmp byte [rax], r9b
jne 0x18001f8b7
inc ecx
inc rax
sub rdx, 1
jne 0x18001f8b0
cmp ecx, 0x1be
jae 0x18001f8d0
mov eax, r9d
test r8b, r8b
jne 0x18001f8d5
mov eax, 1
and dword [rsi + 0x317], 0xf7ffffff
mov r9d, dword [rsp + 0x450]
and eax, 1
shl eax, 0x1b
mov r8, rdi
mov rdx, rbx
or dword [rsi + 0x317], eax
lea rax, [rsp + 0xc0]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.18001f210
test eax, eax
jne 0x18001f87c
cmp byte [rsp + 0x282], 0xee
jne 0x18001f945
mov r9d, dword [rsp + 0x450]
or dword [rsi + 0x317], 0x40000000
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.18001eb90
jmp 0x1800206a2
bt dword [rsi + 0x317], 0x1d
jb 0x18001f97d
mov r9d, dword [rsp + 0x450]
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.18001eb90
test eax, eax
je 0x18001f97d
or dword [rsi + 0x317], 0x50000000
mov eax, 1
jmp 0x1800206a2
xor r9d, r9d
mov edi, r9d
mov eax, edi
imul rax, rax, 0xc3
cmp byte [rax + rsi + 0x10103], 0
je 0x18001f99d
inc edi
cmp edi, 0x20
jb 0x18001f983
movsxd rax, edi
mov dword [rsp + 0x54], edi
mov r11d, edi
mov rdi, qword [rsp + 0x440]
mov qword [rsp + 0x80], rax
lea r8, [rsp + 0x286]
imul rax, rax, 0xc3
lea r9, [rax + rsi + 0x100e3]
xor esi, esi
mov r10d, 4
cmp byte [r8 - 4], sil
je 0x18001fa68
mov rdx, r9
inc r11d
add r9, 0xc3
and byte [rdx + 0x22], 0xf8
movzx eax, byte [r8 - 4]
movzx ecx, byte [rdx + 0x22]
and cl, 0x7f
mov byte [rdx + 0x21], al
mov byte [rdx + 0x20], al
mov byte [rdx + 0x22], cl
test rbp, rbp
jne 0x18001fa18
cmp byte [r8 - 8], 0x80
jne 0x18001fa18
or cl, 0x80
mov byte [rdx + 0x22], cl
mov qword [rdx + 0x18], rbp
mov eax, dword [rbx + 0x7f]
mov ecx, dword [r8]
imul rcx, rax
mov al, byte [rdx + 0x20]
mov qword [rdx + 0x10], rcx
mov qword [rdx], rcx
cmp al, 5
je 0x18001fa3c
cmp al, 0xf
lea rax, [rcx + rbp]
jne 0x18001fa40
lea rax, [rcx + rdi]
mov qword [rdx], rax
mov eax, dword [rbx + 0x7f]
mov ecx, dword [r8 + 4]
imul rcx, rax
xor eax, eax
mov qword [rdx + 8], rcx
mov qword [rdx + 0x23], rax
mov qword [rdx + 0x2b], rax
mov qword [rdx + 0x33], rax
mov qword [rdx + 0x3b], rax
mov word [rdx + 0x43], si
add r8, 0x10
sub r10, 1
jne 0x18001f9d6
mov ecx, dword [rsp + 0x54]
mov rsi, qword [rsp + 0x60]
mov dword [rsp + 0x48], r11d
inc ecx
mov dword [rsp + 0x58], ecx
nop word [rax + rax]
mov edx, 3
mov dword [rsp + 0x50], 1
mov ebp, ecx
mov qword [rsp + 0x60], rdx
mov ebx, ebp
imul rbx, rbx, 0xc3
cmp byte [rbx + rsi + 0x10103], 0
je 0x18001fb35
lea ecx, [rbp - 1]
imul rcx, rcx, 0xc3
cmp byte [rcx + rsi + 0x10103], 0
je 0x18001fadd
mov rax, qword [rbx + rsi + 0x100e3]
cmp qword [rcx + rsi + 0x100e3], rax
jbe 0x18001fb35
lea rdi, [rcx + rsi + 0x100e3]
xor eax, eax
lea rcx, [rsp + 0x2c0]
mov rdx, rdi
mov r8d, 0xc3
mov dword [rsp + 0x50], eax
call fcn.18002dae0
lea rbx, [rbx + rsi + 0x100e3]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0xc3
call fcn.18002dae0
lea rdx, [rsp + 0x2c0]
mov rcx, rbx
mov r8d, 0xc3
call fcn.18002dae0
mov rdx, qword [rsp + 0x60]
inc ebp
sub rdx, 1
mov qword [rsp + 0x60], rdx
jne 0x18001faa4
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
test eax, eax
je 0x18001fa90
mov edx, dword [rsp + 0x54]
mov r10, qword [rsp + 0x78]
mov ebx, dword [rsp + 0x48]
xor ecx, ecx
add r10, 0x4000
mov eax, edx
mov dword [rsp + 0x8c], ecx
mov dword [rsp + 0x4c], ecx
mov ecx, dword [rsp + 0x88]
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x58], ecx
nop dword [rax]
mov rbp, qword [rsp + 0x80]
imul rbp, rbp, 0xc3
cmp eax, ebx
mov rcx, qword [rsi + rbp + 0x100e3]
cmovae rcx, qword [rsp + 0xa8]
cmp dword [rsp + 0x450], 0
mov qword [rsp + 0x68], rcx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
je 0x18001fbe0
lea rax, [r10 + 0x200000]
cmp rcx, rax
cmovae rcx, rax
mov qword [rsp + 0x68], rcx
nop dword [rax]
cmp r10, rcx
jae 0x18001fc77
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0xb0]
lea r9, [rsp + 0xc0]
mov r8d, 0x200
mov rdx, r10
mov qword [rsp + 0x20], rax
call fcn.180002c60
test eax, eax
je 0x18001fc72
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsi + 0x24]
xor edx, edx
add rax, 0x200
mov qword [rsp + 0x40], rax
mov qword [rsi + 0x2bd], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18001fc6b
mov r10, qword [rsp + 0x40]
mov eax, 0xaa55
cmp word [rsp + 0x2be], ax
je 0x18001fc57
mov rcx, qword [rsp + 0x68]
jmp 0x18001fbe0
movzx eax, byte [rsp + 0xc0]
sub r10, 0x200
jmp 0x18001fd48
mov rax, qword [rsp + 0x40]
jmp 0x18001fc7f
mov rcx, qword [rsp + 0x68]
mov rax, rcx
mov qword [rsp + 0x40], rcx
movzx ecx, byte [rsi + rbp + 0x10103]
cmp cl, 5
je 0x18001fc95
cmp cl, 0xf
jne 0x18002013c
mov rbx, rdi
test rdi, rdi
je 0x180020138
mov rax, qword [rsp + 0x70]
mov edi, dword [rax + 0x7f]
add rdi, rbx
nop dword [rax]
cmp rbx, rdi
jae 0x18002012e
lea rcx, [rsp + 0x98]
lea r9, [rsp + 0xc0]
mov r8d, 0x200
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rdx, rbx
call fcn.180002c60
test eax, eax
je 0x18002012e
mov rcx, qword [rsi + 0x24]
add rbx, 0x200
xor edx, edx
mov qword [rsi + 0x2bd], rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18002012e
mov eax, 0xaa55
cmp word [rsp + 0x2be], ax
mov rax, qword [rsp + 0x70]
jne 0x18001fcb0
mov al, byte [rsp + 0xc0]
add rbx, 0xfffffffffffffe00
cmp al, 0xeb
jne 0x18002012e
mov r10, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x60]
test rbx, rbx
cmovne r10, rbx
mov ebx, dword [rsp + 0x48]
mov qword [rsp + 0x40], r10
cmp al, 0xeb
jne 0x18001ffd9
cmp dword [rsp + 0x8c], 0
jne 0x180020473
lea rdx, [rsp + 0xc3]
lea rcx, [rsp + 0x390]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rsp + 0xf6]
lea rcx, [rsp + 0x3b0]
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rsp + 0x112]
lea rcx, [rsp + 0x3d0]
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [rsp + 0xd0], 0
jne 0x18001fdea
lea rdx, str.NTFS
lea rcx, [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x18001fdea
mov rbx, qword [rsp + 0xe8]
mov r8b, 7
inc rbx
jmp 0x18001fe4d
lea rdx, [0x18003eda0]
lea rcx, [rsp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x18001fe08
mov r8b, 1
jmp 0x18001fe46
lea rdx, [0x18003edf0]
lea rcx, [rsp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x18001fe26
mov r8b, 4
jmp 0x18001fe46
lea rdx, [0x18003ee40]
lea rcx, [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x18001ffd2
mov r8b, 0xb
mov ebx, dword [rsp + 0xe0]
mov r10, qword [rsp + 0x40]
shl rbx, 9
movabs rax, 0x410410410410411
mov rcx, r10
movzx edi, r8b
mul r10
sub rcx, rdx
mov eax, 7
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
cmp r10, rcx
cmovne edi, eax
test rbx, rbx
je 0x18001ffa5
lea rax, [rbx + r10]
cmp rax, qword [rsp + 0xa0]
ja 0x18001ffa5
lea rdx, str.Found_partition__offset___I64u__size___I64u_n
mov r9, rbx
mov r8, r10
mov rcx, rsi
call fcn.180016b80
mov r10, qword [rsp + 0x40]
mov eax, 2
lea r8, [rbx + r10]
mov r11, r10
mov r9d, 4
sub r11, qword [rsp + 0x78]
cmp r8, qword [rsp + 0x60]
lea rcx, [rsi + 0x10103]
cmovbe r9d, eax
xor eax, eax
mov edx, eax
cmp byte [rcx], 0
je 0x18001fefe
inc edx
inc rax
add rcx, 0xc3
cmp edx, 0x20
jb 0x18001fee6
jmp 0x18001ff57
cmp edx, 0x20
jae 0x18001ff57
mov rcx, qword [rsp + 0x78]
imul rax, rax, 0xc3
and r9b, 7
and byte [rax + rsi + 0x10105], 0xf8
or byte [rax + rsi + 0x10105], r9b
mov byte [rax + rsi + 0x10104], dil
mov byte [rax + rsi + 0x10103], dil
mov qword [rax + rsi + 0x100fb], rcx
mov qword [rax + rsi + 0x100e3], r10
mov qword [rax + rsi + 0x100eb], rbx
mov qword [rax + rsi + 0x100f3], r11
mov dword [rsp + 0x54], edx
mov rdi, qword [rsp + 0x60]
xor eax, eax
cmp qword [rsp + 0x440], rax
mov r9d, eax
setne r9b
mov dword [rsp + 0x8c], r9d
cmp r8, rdi
ja 0x18001ff91
mov eax, dword [rsp + 0x4c]
mov r10, r8
mov qword [rsp + 0x40], r8
inc eax
mov dword [rsp + 0x4c], eax
jmp 0x180020450
mov rcx, qword [rsp + 0x68]
cmp r10, rcx
jae 0x18001ffba
mov rbx, qword [rsp + 0x70]
mov eax, dword [rbx + 0x7f]
jmp 0x18001ffb7
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rax + 0x7f]
add r10, rax
mov ebx, dword [rsp + 0x48]
mov rax, rdi
cmp r10, rdi
cmovb rax, r10
mov qword [rsp + 0x40], rax
jmp 0x180020141
mov r10, qword [rsp + 0x40]
jmp 0x18001ffaa
movabs rax, 0x410410410410411
mov rcx, r10
mul r10
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
cmp r10, rcx
jne 0x18001ffaa
lea rdx, str.Found_extended_partition__offset___I64u_n
xor ebx, ebx
mov r8, r10
mov rcx, rsi
mov qword [rsp + 0x60], rbx
call fcn.180016b80
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x440]
mov r8, r9
mov ecx, ebx
mov rax, rbx
sub r8, r10
lea rdx, [rsi + 0x10103]
cmp byte [rdx], bl
je 0x18002004e
inc ecx
inc rax
add rdx, 0xc3
cmp ecx, 0x20
jb 0x180020037
jmp 0x1800200a3
cmp ecx, 0x20
jae 0x1800200a3
mov rdx, qword [rsp + 0x78]
imul rax, rax, 0xc3
mov dword [rsp + 0x58], ecx
and byte [rax + rsi + 0x10105], 0xfa
or byte [rax + rsi + 0x10105], 2
mov byte [rax + rsi + 0x10104], 5
mov byte [rax + rsi + 0x10103], 5
mov qword [rax + rsi + 0x100fb], rdx
mov qword [rax + rsi + 0x100e3], r9
mov qword [rax + rsi + 0x100eb], rbx
mov qword [rax + rsi + 0x100f3], r8
mov ecx, dword [rsp + 0x450]
inc dword [rsp + 0x4c]
cmp qword [rsp + 0x78], rbx
mov rbx, qword [rsp + 0x70]
mov r8, qword [rsp + 0xa8]
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x60]
mov rax, r10
mov qword [rsp + 0x28], rcx
cmove rax, r9
mov rcx, rsi
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.18001f790
cmp qword [rsp + 0x78], 0
jne 0x180020101
mov rcx, qword [rsp + 0x60]
sub rcx, qword [rsp + 0x40]
jmp 0x18002010c
mov ecx, dword [rbx + 0x7f]
imul ecx, dword [rsp + 0x28a]
mov eax, dword [rsp + 0x58]
imul rax, rax, 0xc3
mov qword [rax + rsi + 0x100eb], rcx
mov r10, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
jmp 0x18001ffba
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
cmp rax, rcx
jb 0x18002042c
cmp rax, rdi
ja 0x18002042c
mov rax, rdi
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x50], ebx
jae 0x18002042c
mov rdx, rdi
mov rdi, qword [rsp + 0x70]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0xc0]
mov r8d, 0x200
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.180002c60
test eax, eax
je 0x18002041b
cmp dword [rsp + 0x88], 0x200
jne 0x18002041b
and byte [rsi + rbp + 0x10105], 0xfb
or byte [rsi + rbp + 0x10105], 3
movzx ecx, byte [rsi + rbp + 0x10105]
mov eax, 0xaa55
cmp word [rsp + 0x2be], ax
jne 0x18002041b
xor eax, eax
cmp byte [rsp + 0xc0], 0xeb
mov ebx, eax
movzx eax, byte [rsi + rbp + 0x10103]
sete bl
and eax, 0x7f
cmp eax, 5
je 0x18002035b
cmp eax, 0xf
je 0x18002035b
dec eax
cmp eax, 0x62
ja case.0x180020222.5
lea rdx, [0x180000000]
cdqe
movzx eax, byte [rdx + rax + 0x206c8]
mov ecx, dword [rdx + rax*4 + 0x206c0]
add rcx, rdx
jmp rcx
lea rdx, [rsp + 0xc3]
lea rcx, [rsp + 0x398]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rsp + 0xf6]
lea rcx, [rsp + 0x3a0]
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rsp + 0x112]
lea rcx, [rsp + 0x3c0]
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [rsp + 0xd0], 0
jne 0x18002029f
lea rdx, str.NTFS
lea rcx, [rsp + 0x398]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x18002029f
mov al, 7
jmp 0x1800202f4
lea rdx, [0x18003eda0]
lea rcx, [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1800202bc
mov al, 1
jmp 0x1800202f4
lea rdx, [0x18003edf0]
lea rcx, [rsp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1800202d9
mov al, 4
jmp 0x1800202f4
lea rdx, [0x18003ee40]
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne case.0x180020222.1
mov al, 0xb
cmp al, byte [rsi + rbp + 0x10104]
je case.0x180020222.1
mov byte [rsi + rbp + 0x10103], al
test ebx, ebx
je 0x18002033c
and byte [rsi + rbp + 0x10105], 0xf8
cmp dword [rsp + 0x458], 0
setne al
inc dword [rsp + 0x4c]
inc al
and al, 7
or byte [rsi + rbp + 0x10105], al
mov rax, qword [rsi + rbp + 0x100eb]
add qword [rsp + 0x40], rax
jmp 0x1800203d7
and byte [rsi + rbp + 0x10105], 0xfb
mov rax, qword [rsi + rbp + 0x100eb]
or byte [rsi + rbp + 0x10105], 3
add qword [rsp + 0x40], rax
jmp 0x1800203d7
mov edx, dword [rsp + 0x458]
test edx, edx
setne al
inc dword [rsp + 0x4c]
inc al
xor al, cl
and al, 7
xor al, cl
mov rcx, qword [rsp + 0x78]
mov byte [rsi + rbp + 0x10105], al
mov r9, qword [rsp + 0x40]
test rcx, rcx
jne 0x180020397
mov rax, qword [rsi + rbp + 0x100eb]
lea r8, [r9 + rax]
jmp 0x18002039f
mov r8, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x440]
test rcx, rcx
mov ecx, dword [rsp + 0x450]
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
cmove rax, r9
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.18001f790
movzx ecx, byte [rsi + rbp + 0x10105]
mov r9, qword [rsi + rbp + 0x100eb]
mov r8, qword [rsi + rbp + 0x100e3]
and cl, 7
lea rax, str.fail
lea rdx, str.Partition_at__I64x__size___I64u_check__s._n
cmp cl, 1
lea rcx, [0x180042364]
cmove rax, rcx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180016b80
inc dword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
inc qword [rsp + 0x80]
mov rcx, qword [rsi + 0x24]
xor edx, edx
mov qword [rsi + 0x2bd], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800206a0
mov r10, qword [rsp + 0x40]
mov eax, dword [rsp + 0x4c]
mov ebx, dword [rsp + 0x48]
cmp eax, 4
jae 0x180020473
mov eax, dword [rsp + 0x50]
cmp r10, qword [rsp + 0xa8]
jb 0x18001fb90
cmp eax, ebx
jb 0x18001fb90
mov r9d, dword [rsp + 0x54]
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x180020488
mov qword [rax], r10
test r9d, r9d
je 0x1800205be
lea rcx, [rsi + 0x100e3]
movsxd r8, r9d
mov eax, r9d
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x80], rax
nop word [rax + rax]
mov edx, r9d
mov dword [rsp + 0x58], edx
cmp r9d, ebx
jae 0x18002059d
mov rax, r8
imul rax, rax, 0xc3
lea rbp, [rax + rsi + 0x100eb]
mov rax, qword [rbp - 8]
cmp qword [rcx], rax
jne 0x180020573
mov rax, qword [rbp + 8]
cmp qword [rcx + 0x10], rax
jne 0x180020573
mov rax, qword [rbp]
cmp qword [rcx + 8], rax
jne 0x180020573
movzx edx, byte [rcx + 0x22]
movzx eax, dl
and al, 7
cmp al, 2
jne 0x180020522
movzx eax, byte [rbp + 0x1a]
and al, 7
cmp al, 1
jne 0x180020522
and dl, 0xf9
or dl, al
mov byte [rcx + 0x22], dl
dec ebx
lea rcx, [rbp - 8]
mov r8d, 0xc3
mov edi, ebx
mov dword [rsp + 0x48], ebx
imul rdi, rdi, 0xc3
lea rbx, [rdi + rsi + 0x100e3]
mov rdx, rbx
call fcn.18002dae0
xor edx, edx
mov r8d, 0xc3
mov rcx, rbx
call fcn.180035040
mov rcx, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x58]
mov ebx, dword [rsp + 0x48]
mov byte [rdi + rsi + 0x10103], 0
inc edx
add rbp, 0xc3
mov dword [rsp + 0x58], edx
cmp edx, ebx
jb 0x1800204e2
mov rax, qword [rsp + 0x80]
mov r8, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x54]
add rcx, 0xc3
sub rax, 1
mov qword [rsp + 0x80], rax
mov qword [rsp + 0xa0], rcx
jne 0x1800204c0
cmp qword [rsp + 0x78], 0
jne 0x18002067b
lea rax, [rsi + 0x101a6]
xor edx, edx
mov qword [rsp + 0x90], rax
nop dword [rax + rax]
mov ebp, 1
mov esi, edx
mov rdi, rax
nop word [rax + rax]
cmp byte [rdi + 0x20], 0
je 0x18002066b
mov rax, qword [rdi - 0xab]
mov rcx, qword [rdi + 0x18]
cmp rax, rcx
ja 0x180020614
jne 0x18002065d
mov rax, qword [rdi]
cmp qword [rdi - 0xc3], rax
jbe 0x18002065d
mov ebp, edx
lea rcx, [rsp + 0x2c0]
lea rdx, [rdi - 0xc3]
mov r8d, 0xc3
call fcn.18002dae0
lea rcx, [rdi - 0xc3]
mov rdx, rdi
mov r8d, 0xc3
call fcn.18002dae0
lea rdx, [rsp + 0x2c0]
mov rcx, rdi
mov r8d, 0xc3
call fcn.18002dae0
xor edx, edx
inc esi
add rdi, 0xc3
cmp esi, 0x1f
jb 0x1800205f0
mov rax, qword [rsp + 0x90]
test ebp, ebp
je 0x1800205e0
mov eax, 1
jmp 0x1800206a2
mov r9d, dword [rsp + 0x98]
mov ebx, dword [rsp + 0x98]
mov r10, qword [rsp + 0x40]
mov dword [rsp + 0x54], r9d
jmp 0x180020478
xor eax, eax
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.18002d590
add rsp, 0x3f8
pop rdi
pop rsi
pop rbp
pop rbx
ret