Function at 0x100461d8
Capabilities:
Inspect section memory permissions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5d8
mov qword [rsp + 0x180], 0xfffffffffffffffe
mov rbp, rcx
call fcn.10045e68
mov edi, 0x200
mov r8, rdi
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rbp + 0x20]
call fcn.1000c5a4
xor r13d, r13d
cmp eax, r13d
jne 0x10047131
lea rdx, [rsp + 0x1d0]
lea rcx, [rbp + 0x28]
call fcn.10041d34
cmp al, r13b
jne 0x10046245
mov eax, 1
jmp 0x10047131
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
lea r9, [rsp + 0x620]
xor edx, edx
lea r8d, [rdx + 2]
call qword [rax + 0x20]
cmp eax, r13d
jne 0x10047131
mov cl, byte [rbp + 0x2c]
mov rax, qword [rbp + 0x40]
shl rax, cl
mov qword [rbp + 0x68], rax
cmp qword [rsp + 0x620], rax
jae 0x10046288
mov eax, 1
jmp 0x10047131
mov rbx, qword [rbp + 0x38]
mov r12d, 1
add rbx, r12
mov cl, byte [rbp + 0x28]
shl rbx, cl
cmp qword [rsp + 0x620], rbx
jb 0x10046303
mov rax, qword [rbp + 0x20]
mov r10, qword [rax]
mov rdx, qword [rbp + 0x38]
shl rdx, cl
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [r10 + 0x20]
cmp eax, r13d
jne 0x10047131
mov r8, rdi
lea rdx, [rsp + 0x3d0]
mov rcx, qword [rbp + 0x20]
call fcn.1000c5a4
cmp eax, r13d
jne 0x10046303
mov r8, rdi
lea rdx, [rsp + 0x3d0]
lea rcx, [rsp + 0x1d0]
call sub.msvcrt.dll_memcmp
cmp eax, r13d
jne 0x10046303
mov qword [rbp + 0x68], rbx
mov rdx, qword [rbp + 0x48]
mov r10, qword [rbp + 0x20]
mov rax, qword [r10]
mov cl, byte [rbp + 0x2c]
shl rdx, cl
xor r9d, r9d
xor r8d, r8d
mov rcx, r10
call qword [rax + 0x20]
mov dword [rsp + 0x90], r13d
mov rdi, 0xffffffffffffffff
mov dword [rsp + 0x94], edi
mov qword [rsp + 0x98], r13
mov dword [rsp + 0xa0], r13d
mov dword [rsp + 0xa4], r13d
mov qword [rsp + 0xa8], r13
mov dword [rsp + 0xb0], r13d
mov dword [rsp + 0xb4], r13d
mov qword [rsp + 0xb8], r13
mov dword [rsp + 0xc0], r13d
mov dword [rsp + 0xc4], r13d
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xf8], r13
mov qword [rsp + 0x628], r13
mov ebx, 0x1000
cmp qword [rbp + 0x80], rbx
je 0x100463d0
mov rcx, qword [rbp + 0x78]
cmp rcx, r13
je 0x100463b6
call sub.msvcrt.dll_free
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov rcx, rbx
call fcn.10003f74
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], rbx
mov r8, rbx
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x20]
call fcn.1000c5a4
mov ebx, eax
cmp eax, r13d
je 0x100463ec
jmp 0x10046d74
mov rdx, qword [rbp + 0x78]
mov ecx, r13d
mov eax, r12d
shl eax, cl
cmp eax, dword [rdx + 0x1c]
je 0x10046407
add ecx, r12d
cmp ecx, 0x1f
jl 0x100463f3
mov ecx, edi
cmp ecx, dword [rbp + 0x28]
jge 0x10046414
mov ebx, r12d
jmp 0x10046d74
mov dword [rbp + 0x60], ecx
cmp ecx, 0xf
jbe 0x10046424
mov ebx, r12d
jmp 0x10046d74
sub ecx, dword [rbp + 0x28]
mov eax, r12d
shl eax, cl
mov dword [rsp + 0x620], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9d, eax
mov r8d, dword [rbp + 0x28]
lea rcx, [rsp + 0x80]
call fcn.100457f8
cmp al, r13b
jne 0x1004645e
mov ebx, r12d
jmp 0x10046d74
cmp dword [rsp + 0x80], 0x454c4946
je 0x10046473
mov ebx, r12d
jmp 0x10046d74
lea rcx, [rsp + 0x80]
call fcn.10043fd0
cmp dword [rsp + 0xc0], r13d
jne 0x10046492
mov ebx, r12d
jmp 0x10046d74
lea rax, [rsp + 0x628]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x2c]
xor r8d, r8d
mov rdx, qword [rbp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.10044074
mov ebx, eax
cmp eax, r13d
je 0x100464e0
mov rcx, qword [rsp + 0x628]
cmp rcx, r13
je 0x100464db
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
jmp 0x10046d74
mov rbx, qword [rsp + 0x628]
cmp rbx, r13
jne 0x100464f5
mov ebx, r12d
jmp 0x10046d74
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax]
mov rdi, qword [rcx + 0x40]
mov qword [rsp + 0x70], rdi
mov cl, byte [rbp + 0x2c]
mov rdx, qword [rbp + 0x40]
shl rdx, cl
mov rax, rdi
shr rax, 4
cmp rax, rdx
jbe 0x10046531
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov ebx, r12d
jmp 0x10046d74
mov ecx, dword [rbp + 0x60]
mov r14, r12
shl r14, cl
mov qword [rsp + 0x630], r14
mov r15d, 0x8000
cmp r14, r15
jbe 0x1004655f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov ebx, r12d
jmp 0x10046d74
shr rdi, cl
mov qword [rsp + 0x638], rdi
cmp rdi, 0x40000000
jbe 0x10046585
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov ebx, r12d
jmp 0x10046d74
mov rcx, qword [rbp + 0x70]
cmp rcx, r13
je 0x100465c1
mov rax, qword [rcx]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x638]
call qword [rax + 0x18]
mov edi, eax
cmp eax, r13d
je 0x100465b9
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
nop
mov ebx, edi
jmp 0x10046d74
mov rdi, qword [rsp + 0x638]
cmp qword [rbp + 0x80], r15
je 0x100465fe
mov rcx, qword [rbp + 0x78]
cmp rcx, r13
je 0x100465dc
call sub.msvcrt.dll_free
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov rcx, r15
call fcn.10003f74
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], r15
mov rdi, qword [rsp + 0x638]
lea rcx, [rbp + 0x10]
movsxd r13, dword [rcx + 8]
mov r15, r13
test r13d, r13d
je 0x10046647
shl r15, 3
add r13d, 0xffffffff
sub r15, 8
mov rax, qword [rcx]
mov r14, qword [r15 + rax]
test r14, r14
je 0x1004663a
mov rcx, r14
call fcn.10044558
mov rcx, r14
call sub.msvcrt.dll_free
lea rcx, [rbp + 0x10]
test r13d, r13d
jne 0x10046612
mov r14, qword [rsp + 0x630]
xor r13d, r13d
mov dword [rcx + 8], r13d
mov edx, edi
call fcn.10071b88
mov qword [rsp + 0x630], r13
mov r15d, dword [rsp + 0x620]
mov rcx, qword [rbp + 0x70]
cmp rcx, r13
je 0x1004669c
mov eax, dword [rbp + 0x18]
mov qword [rsp + 0x30], rax
test rax, 0x3ff
jne 0x1004669c
mov rax, qword [rcx]
lea r8, [rsp + 0x630]
lea rdx, [rsp + 0x30]
call qword [rax + 0x20]
mov edi, eax
cmp eax, r13d
jne 0x100467ff
mov rax, qword [rsp + 0x70]
sub rax, qword [rsp + 0x630]
mov ecx, 0x8000
mov rdi, rcx
cmp rax, rcx
cmovb rdi, rax
cmp rdi, r14
jb 0x10046810
mov r8, rdi
mov rdx, qword [rbp + 0x78]
mov rcx, rbx
call fcn.1000c5a4
mov r13d, eax
xor ecx, ecx
cmp eax, ecx
jne 0x100470f7
add qword [rsp + 0x630], rdi
mov r13, rcx
mov rdx, qword [rbp + 0x78]
add rdx, r13
mov dword [rsp + 0x110], ecx
mov dword [rsp + 0x114], 0xffffffff
mov qword [rsp + 0x118], rcx
mov dword [rsp + 0x120], ecx
mov dword [rsp + 0x124], ecx
mov qword [rsp + 0x128], rcx
mov dword [rsp + 0x130], ecx
mov dword [rsp + 0x134], ecx
mov qword [rsp + 0x138], rcx
mov dword [rsp + 0x140], ecx
mov dword [rsp + 0x144], ecx
mov qword [rsp + 0x170], rcx
mov qword [rsp + 0x178], rcx
mov rax, rcx
mov ecx, dword [rbp + 0x18]
cmp ecx, 3
jne 0x10046765
lea rax, [rbp + 0x88]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov r9d, r15d
mov r8d, dword [rbp + 0x28]
lea rcx, [rsp + 0x100]
call fcn.100457f8
test al, al
je 0x10047109
lea rcx, [rbp + 0x10]
call fcn.100034ac
mov ecx, 0x80
call fcn.10003f74
mov qword [rsp + 0x620], rax
test rax, rax
je 0x100467bf
lea rdx, [rsp + 0x100]
mov rcx, rax
call fcn.1004569c
mov r11, rax
jmp 0x100467c2
xor r11d, r11d
lea rdx, [rbp + 0x10]
mov ecx, dword [rdx + 8]
lea eax, [rcx + 1]
mov dword [rdx + 8], eax
mov rax, qword [rdx]
mov qword [rax + rcx*8], r11
lea rcx, [rsp + 0x100]
call fcn.10044558
add r13, r14
sub rdi, r14
cmp rdi, r14
mov ecx, 0
jae 0x100466e8
xor r13d, r13d
jmp 0x10046665
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov ebx, edi
jmp 0x10046d74
mov r15d, r13d
movabs r8, 0xffffffffffff
cmp dword [rbp + 0x18], r13d
jbe 0x10046933
mov r14, r13
lea rax, [rbp + 0x10]
mov r13, qword [rax]
mov rdi, qword [r14 + r13]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x100468f9
mov rdx, rcx
and rdx, r8
mov eax, dword [rbp + 0x18]
cmp rdx, rax
ja 0x1004690f
mov eax, edx
mov r13, qword [r13 + rax*8]
shr rcx, 0x30
cmp word [r13 + 4], cx
jne 0x10046872
cmp qword [r13 + 8], 0
jne 0x10046872
mov al, r12b
jmp 0x10046874
xor al, al
mov cl, byte [rdi + 6]
and cl, r12b
je 0x1004688c
test byte [r13 + 6], r12b
je 0x1004688c
test al, al
je 0x10046921
jmp 0x10046898
test cl, cl
jne 0x10046896
test byte [r13 + 6], r12b
je 0x10046898
xor al, al
test al, al
je 0x100468f0
lea rcx, [r13 + 0x18]
lea rdx, [rdi + 0x18]
call fcn.10045540
lea rcx, [r13 + 0x28]
lea rdx, [rdi + 0x28]
call fcn.10043a98
lea rcx, [rdi + 0x18]
call fcn.10042f10
mov rcx, qword [rdi + 0x18]
call sub.msvcrt.dll_free
xor r13d, r13d
mov qword [rdi + 0x18], r13
mov dword [rdi + 0x20], r13d
mov dword [rdi + 0x24], r13d
lea rcx, [rdi + 0x28]
call fcn.10042d3c
lea rax, [rbp + 0x10]
movabs r8, 0xffffffffffff
jmp 0x100468fc
lea rax, [rbp + 0x10]
xor r13d, r13d
jmp 0x100468fc
xor r13d, r13d
add r15d, r12d
add r14, 8
cmp r15d, dword [rbp + 0x18]
jb 0x1004682e
jmp 0x10046933
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov ebx, r12d
jmp 0x10046d74
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov ebx, r12d
jmp 0x10046d74
mov esi, r13d
cmp dword [rbp + 0x18], r13d
jbe 0x1004695d
mov rdi, r13
lea r15, [rbp + 0x10]
mov rax, qword [r15]
mov rcx, qword [rdi + rax]
call fcn.10043fd0
add esi, r12d
add rdi, 8
cmp esi, dword [rbp + 0x18]
jb 0x10046943
jmp 0x10046961
lea r15, [rbp + 0x10]
mov esi, 0xfffffffe
cmp dword [rbp + 0x18], r13d
jbe 0x10046cc5
mov r11, r13
mov qword [rsp + 0x40], r13
mov ebx, r11d
mov rax, qword [r15]
mov rdi, qword [r11 + rax]
cmp dword [rdi], 0x454c4946
jne 0x10046ca3
cmp qword [rdi + 8], r13
jne 0x10046ca3
cmp ebx, 0x10
jae 0x100469aa
cmp byte [rbp + 0xb8], r13b
je 0x10046ca3
test byte [rdi + 6], r12b
jne 0x100469bd
cmp byte [rbp + 0xb9], r13b
je 0x10046ca3
mov r9d, dword [rdi + 0x30]
mov dword [rdi + 0x10], r9d
mov r14, 0xffffffffffffffff
mov dword [rsp + 0x620], r14d
mov al, byte [rdi + 6]
shr al, 1
test r12b, al
jne 0x10046a11
mov edx, r13d
cmp dword [rdi + 0x40], r13d
jbe 0x10046a11
mov r10, qword [rdi + 0x18]
mov r8, qword [rdi + 0x38]
mov eax, dword [r8]
mov rcx, qword [r10 + rax*8]
cmp dword [rcx + 0x10], r13d
je 0x10046a0a
add edx, r12d
add r8, 8
cmp edx, dword [rdi + 0x40]
jb 0x100469ef
jmp 0x10046a11
mov dword [rsp + 0x620], edx
cmp r9d, r13d
jne 0x10046aff
mov dl, r12b
cmp ebx, 0x10
jae 0x10046a64
mov dl, r13b
mov r9d, r13d
cmp dword [rdi + 0x40], r13d
jbe 0x10046a64
mov r10, qword [rdi + 0x18]
mov r8, qword [rdi + 0x38]
mov eax, dword [r8]
mov rcx, qword [r10 + rax*8]
cmp byte [rcx + 4], r13b
je 0x10046a49
mov rax, qword [rcx + 0x40]
jmp 0x10046a4d
mov rax, qword [rcx + 0x20]
cmp rax, r13
jne 0x10046a61
add r9d, r12d
add r8, 8
cmp r9d, dword [rdi + 0x40]
jb 0x10046a36
jmp 0x10046a64
mov dl, r12b
cmp dl, r13b
je 0x10046aff
lea rcx, [rdi + 0x28]
call fcn.100034ac
mov ecx, 0x20
call fcn.10003f74
mov rsi, rax
test rax, rax
je 0x10046a99
mov qword [rax + 8], 0
mov dword [rax + 0x10], 0
jmp 0x10046a9b
xor esi, esi
mov ecx, dword [rdi + 0x30]
lea eax, [rcx + 1]
mov dword [rdi + 0x30], eax
mov rax, qword [rdi + 0x28]
mov qword [rax + rcx*8], rsi
mov qword [rsi], r14
lea rdx, [rsp + 0x48]
mov byte [rsp + 0x48], 0x5b
lea rcx, str._NONAME__
lea rax, [rsp + 0x48]
sub rcx, rax
xor r13d, r13d
add rdx, r12
mov al, byte [rdx + rcx]
mov byte [rdx], al
cmp al, r13b
jne 0x10046acb
mov ecx, ebx
call fcn.10001188
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x48]
call fcn.10002f90
mov byte [rsi + 0x1c], 3
mov dword [rsi + 0x18], r13d
mov r11, qword [rsp + 0x40]
mov esi, 0xfffffffe
mov r14d, r13d
cmp dword [rdi + 0x30], r13d
jbe 0x10046ca3
mov r15, r13
mov qword [rsp + 0x68], r13
mov rdx, qword [rdi + 0x28]
mov r8, qword [r15 + rdx]
cmp byte [r8 + 0x1c], 2
jne 0x10046b54
mov ecx, r13d
cmp dword [rdi + 0x30], r13d
jbe 0x10046b54
mov rax, qword [rdx]
cmp byte [rax + 0x1c], r12b
jne 0x10046b3d
mov rax, qword [rax]
cmp qword [r8], rax
je 0x10046b4b
add ecx, r12d
add rdx, 8
cmp ecx, dword [rdi + 0x30]
jb 0x10046b2c
jmp 0x10046b54
mov r8, 0xffffffffffffffff
jmp 0x10046b5e
mov r8, 0xffffffffffffffff
mov ecx, r8d
cmp ecx, r13d
jl 0x10046b6c
add dword [rdi + 0x10], 0xffffffff
jmp 0x10046c7f
mov dword [rsp + 0x54], r8d
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x4c], r14d
mov dword [rsp + 0x48], ebx
mov cl, byte [rdi + 6]
shr cl, 1
and cl, r12b
mov edx, dword [rsp + 0x620]
mov eax, edx
cmp edx, r13d
cmovl eax, r8d
cmp cl, r13b
cmovne eax, esi
mov dword [rsp + 0x50], eax
cmp dword [rdi + 0x14], r13d
jge 0x10046bad
mov eax, dword [rbp + 8]
mov dword [rdi + 0x14], eax
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x48]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov eax, dword [rcx + 0x10]
mov dword [rdx + 0x10], eax
lea rdx, [rsp + 0x1b0]
mov rcx, rbp
call fcn.10045618
mov dword [rsp + 0x58], eax
mov esi, r13d
cmp dword [rdi + 0x40], r13d
jbe 0x10046c7f
mov r15d, dword [rsp + 0x620]
mov al, byte [rdi + 6]
shr al, 1
test r12b, al
jne 0x10046c06
cmp esi, r15d
je 0x10046c6b
mov rax, qword [rdi + 0x38]
mov ecx, dword [rax + r13]
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax + rcx*8]
add rcx, 8
cmp ebx, 8
jne 0x10046c2f
lea rdx, str._Bad
call fcn.1000303c
test al, al
jne 0x10046c6b
mov byte [rbp + 0xec], r12b
mov dword [rsp + 0x50], esi
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x48]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov eax, dword [rcx + 0x10]
mov dword [rdx + 0x10], eax
lea rdx, [rsp + 0x190]
mov rcx, rbp
call fcn.10045618
add esi, r12d
add r13, 8
cmp esi, dword [rdi + 0x40]
jb 0x10046bf7
mov r15, qword [rsp + 0x68]
xor r13d, r13d
add r14d, r12d
add r15, 8
mov qword [rsp + 0x68], r15
cmp r14d, dword [rdi + 0x30]
mov esi, 0xfffffffe
jb 0x10046b14
mov r11, qword [rsp + 0x40]
lea r15, [rbp + 0x10]
add ebx, r12d
add r11, 8
mov qword [rsp + 0x40], r11
cmp ebx, dword [rbp + 0x18]
mov esi, 0xfffffffe
jb 0x1004697b
mov rbx, qword [rsp + 0x628]
cmp dword [rbp + 0x18], 9
jbe 0x10046e83
mov rax, qword [r15]
mov rdi, qword [rax + 0x48]
cmp dword [rdi + 0x40], 0
jbe 0x10046e83
xor r14d, r14d
mov rax, qword [rdi + 0x38]
mov ecx, dword [rax + r14]
mov rax, qword [rdi + 0x18]
mov rsi, qword [rax + rcx*8]
lea rcx, [rsi + 8]
lea rdx, str._SDS
call fcn.1000303c
test al, al
jne 0x10046d19
add r13d, r12d
add r14, 8
cmp r13d, dword [rdi + 0x40]
jb 0x10046ce3
jmp 0x10046e83
mov qword [rsp + 0x620], 0
lea rax, [rsp + 0x620]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x2c]
mov r8d, r13d
mov rdx, qword [rbp + 0x20]
mov rcx, rdi
call fcn.10044074
mov edi, eax
test eax, eax
je 0x10046d88
mov rcx, qword [rsp + 0x620]
test rcx, rcx
je 0x10046d68
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov ebx, edi
lea rcx, [rsp + 0x80]
call fcn.10044558
mov eax, ebx
jmp 0x10047131
mov rdi, qword [rsp + 0x620]
test rdi, rdi
je 0x10046e75
cmp byte [rsi + 4], 0
je 0x10046da5
mov rsi, qword [rsi + 0x40]
jmp 0x10046da9
mov rsi, qword [rsi + 0x20]
cmp rsi, 0x20000000
jae 0x10046e75
lea rax, [rsi + 1]
bt rax, 0x12
jae 0x10046e75
add rsi, 0xfffffffffffc0000
cmp rsi, qword [rbp + 0xa0]
je 0x10046e17
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x10046df1
call sub.msvcrt.dll_free
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa0], 0
test rsi, rsi
je 0x10046e17
mov rcx, rsi
call fcn.10003f74
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], rsi
mov r8, rsi
mov rdx, qword [rbp + 0x98]
mov rcx, rdi
call fcn.1000c5a4
test eax, eax
jne 0x10046e75
mov rcx, rbp
call fcn.10044454
test eax, eax
je 0x10046e6a
mov dword [rbp + 0xb0], 0
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x10046e5f
call sub.msvcrt.dll_free
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa0], 0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
jmp 0x10046e83
test rdi, rdi
je 0x10046e83
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
xor r13b, r13b
xor r14b, r14b
xor r10d, r10d
cmp dword [rbp + 8], r10d
jbe 0x10046f48
xor edx, edx
movabs rbx, 0xffffffffffff
mov r9, qword [rbp]
mov rdi, qword [r15]
mov eax, dword [r9 + rdx]
mov rsi, qword [rdi + rax*8]
mov ecx, dword [r9 + rdx + 4]
mov rax, qword [rsi + 0x28]
mov rcx, qword [rax + rcx*8]
mov r11, qword [rcx]
mov rcx, r11
and rcx, rbx
cmp rcx, 5
jne 0x10046ed8
lea rax, [rcx - 6]
mov dword [r9 + rdx + 0xc], eax
jmp 0x10046f2f
mov eax, dword [rbp + 0x18]
cmp rcx, rax
jae 0x10046f10
mov eax, ecx
mov rcx, qword [rdi + rax*8]
mov al, byte [rcx + 6]
shr al, 1
test r12b, al
je 0x10046f10
mov r8d, dword [rcx + 0x14]
test r8d, r8d
js 0x10046f10
lea rcx, [r8 + r8*4]
mov eax, dword [r9 + rcx*4]
mov rcx, qword [rdi + rax*8]
shr r11, 0x30
cmp word [rcx + 4], r11w
je 0x10046f2a
test byte [rsi + 6], r12b
je 0x10046f21
mov r13b, r12b
mov r8d, 0xfffffffe
jmp 0x10046f2a
mov r14b, r12b
mov r8d, 0xfffffffd
mov dword [r9 + rdx + 0xc], r8d
add r10d, r12d
add rdx, 0x14
cmp r10d, dword [rbp + 8]
jb 0x10046ea2
mov rbx, qword [rsp + 0x628]
mov edi, dword [rbp + 8]
cmp byte [rbp + 0xb8], 0
je 0x10046fda
mov dword [rbp + 0xe0], edi
add edi, r12d
lea rdx, str._SYSTEM_
lea rcx, [rsp + 0x30]
call fcn.10002f04
nop
lea rcx, [rbp + 0xc0]
call fcn.100034ac
mov r15d, 0x10
mov rcx, r15
call fcn.10003f74
mov qword [rsp + 0x620], rax
test rax, rax
je 0x10046fac
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.10002f4c
mov r11, rax
jmp 0x10046faf
xor r11d, r11d
mov ecx, dword [rbp + 0xc8]
lea eax, [rcx + 1]
mov dword [rbp + 0xc8], eax
mov rax, qword [rbp + 0xc0]
mov qword [rax + rcx*8], r11
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10046fe0
call sub.msvcrt.dll_free
jmp 0x10046fe0
mov r15d, 0x10
test r13b, r13b
je 0x1004705f
mov dword [rbp + 0xe4], edi
add edi, r12d
lea rdx, str._LOST_
lea rcx, [rsp + 0x30]
call fcn.10002f04
nop
lea rcx, [rbp + 0xc0]
call fcn.100034ac
mov rcx, r15
call fcn.10003f74
mov qword [rsp + 0x620], rax
test rax, rax
je 0x10047033
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.10002f4c
mov r11, rax
jmp 0x10047036
xor r11d, r11d
mov ecx, dword [rbp + 0xc8]
lea eax, [rcx + 1]
mov dword [rbp + 0xc8], eax
mov rax, qword [rbp + 0xc0]
mov qword [rax + rcx*8], r11
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1004705f
call sub.msvcrt.dll_free
test r14b, r14b
je 0x100470dc
mov dword [rbp + 0xe8], edi
lea rdx, str._UNKNOWN_
lea rcx, [rsp + 0x30]
call fcn.10002f04
nop
lea rcx, [rbp + 0xc0]
call fcn.100034ac
mov rcx, r15
call fcn.10003f74
mov qword [rsp + 0x620], rax
test rax, rax
je 0x100470af
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.10002f4c
mov r11, rax
jmp 0x100470b2
xor r11d, r11d
mov ecx, dword [rbp + 0xc8]
lea eax, [rcx + 1]
mov dword [rbp + 0xc8], eax
mov rax, qword [rbp + 0xc0]
mov qword [rax + rcx*8], r11
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x100470dc
call sub.msvcrt.dll_free
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x80]
call fcn.10044558
xor eax, eax
jmp 0x10047131
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov ebx, r13d
jmp 0x10046d74
lea rcx, [rsp + 0x100]
call fcn.10044558
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x80]
call fcn.10044558
mov eax, r12d
add rsp, 0x5d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret