Function at 0x4a0960
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x10]
cmp r12, qword [r14 + 0x10]
jbe 0x4a107d
push rbp
mov rbp, rsp
sub rsp, 0x88
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb0], rdi
test rsi, rsi
je 0x4a0b14
cmp rsi, 1
je 0x4a0ada
nop dword [rax]
cmp rbx, rsi
je 0x4a0aab
jl 0x4a0a9b
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x98], rax
nop
cmp qword [0x005f8e70], rsi
jl 0x4a0a67
cmp rbx, 0x40
jle 0x4a0a25
mov r9, rbx
sub rbx, rsi
mov qword [rsp + 0x80], rbx
movzx r10d, byte [rdi]
mov byte [rsp + 0x3f], r10b
movzx r11d, byte [rdi + 1]
mov byte [rsp + 0x3d], r11b
lea r12, [rbx + 1]
mov qword [rsp + 0x48], r12
xor edx, edx
xor r13d, r13d
nop
jmp 0x4a0da9
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
call fcn.00403940
xorps xmm15, xmm15
mov r14, qword [0x005f8e78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x30]
add rsp, 0x88
pop rbp
ret
mov r9, rbx
sub r9, rsi
mov qword [rsp + 0x80], r9
movzx r10d, byte [rdi]
mov byte [rsp + 0x3e], r10b
movzx r11d, byte [rdi + 1]
mov byte [rsp + 0x3c], r11b
lea r12, [r9 + 1]
mov qword [rsp + 0x40], r12
xor edx, edx
xor r13d, r13d
jmp 0x4a0b2d
mov rax, 0xffffffffffffffff
add rsp, 0x88
pop rbp
ret
jne 0x4a0abf
mov rbx, rax
mov rcx, rsi
mov rax, rdi
call fcn.00403600
test al, al
jne 0x4a0acf
mov rax, 0xffffffffffffffff
add rsp, 0x88
pop rbp
ret
xor eax, eax
add rsp, 0x88
pop rbp
ret
movzx edx, byte [rdi]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov byte [rsp + 0x18], dl
call fcn.00403ae0
xorps xmm15, xmm15
mov r14, qword [0x005f8e78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
add rsp, 0x88
pop rbp
ret
xor eax, eax
add rsp, 0x88
pop rbp
ret
mov rdx, r13
mov r13, r9
mov r9, qword [rsp + 0x80]
cmp rdx, r12
jge 0x4a0d4c
cmp rbx, rdx
jbe 0x4a0d93
mov qword [rsp + 0x50], r13
movzx r15d, byte [rax + rdx]
cmp r15b, r10b
je 0x4a0c1a
cmp rcx, r12
jb 0x4a0d88
lea r15, [rdx + 1]
nop
cmp r15, r12
ja 0x4a0d7d
mov qword [rsp + 0x60], rdx
sub r9, rdx
sub rcx, rdx
dec rcx
mov rdi, rcx
neg rcx
sar rcx, 0x3f
and rcx, r15
add rcx, rax
mov qword [rsp], rcx
mov qword [rsp + 8], r9
mov qword [rsp + 0x10], rdi
mov byte [rsp + 0x18], r10b
call fcn.00403ae0
xorps xmm15, xmm15
mov r14, qword [0x005f8e78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
test rax, rax
jl 0x4a0d4c
mov r9, qword [rsp + 0x60]
lea rdx, [rax + r9]
lea rdx, [rdx + 1]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xc0]
mov r9, qword [rsp + 0x80]
movzx r10d, byte [rsp + 0x3e]
movzx r11d, byte [rsp + 0x3c]
mov r12, qword [rsp + 0x40]
mov r13, qword [rsp + 0x50]
lea r15, [rdx + 1]
nop
cmp rbx, r15
jbe 0x4a0d72
mov qword [rsp + 0x78], rdx
movzx r9d, byte [rax + rdx + 1]
cmp r9b, r11b
jne 0x4a0cce
lea r9, [rdx + rsi]
cmp rcx, r9
jb 0x4a0d67
cmp rdx, r9
ja 0x4a0d5c
mov qword [rsp + 0x70], r15
mov r8, rdx
sub rdx, rcx
sar rdx, 0x3f
and rdx, r8
add rdx, rax
mov rbx, rdi
mov rax, rdx
mov rcx, rsi
call fcn.00403600
test al, al
jne 0x4a0d3e
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xc0]
movzx r10d, byte [rsp + 0x3e]
movzx r11d, byte [rsp + 0x3c]
mov r12, qword [rsp + 0x40]
mov r13, qword [rsp + 0x50]
mov r15, qword [rsp + 0x70]
lea r9, [r13 + 1]
mov r13, r15
sar r15, 4
add r15, 4
nop dword [rax]
cmp r15, r9
jg 0x4a0b1f
cmp r13, r12
jge 0x4a0b1f
sub rcx, rdx
sub rbx, rdx
dec rcx
mov r9, rcx
neg r9
sar r9, 0x3f
and r13, r9
add rax, r13
dec rbx
call fcn.00402b40
test rax, rax
jge 0x4a0d28
mov rax, 0xffffffffffffffff
add rsp, 0x88
pop rbp
ret
mov rcx, qword [rsp + 0x78]
lea rax, [rax + rcx]
lea rax, [rax + 1]
add rsp, 0x88
pop rbp
ret
mov rax, qword [rsp + 0x78]
add rsp, 0x88
pop rbp
ret
mov rax, 0xffffffffffffffff
add rsp, 0x88
pop rbp
ret
mov rax, rdx
mov rcx, r9
call fcn.00463f80
mov rdx, rcx
mov rcx, r9
call fcn.00463f40
mov rax, r15
mov rcx, rbx
call fcn.00463ec0
mov rax, r15
mov rcx, r12
call fcn.00463f80
mov rdx, rcx
mov rcx, r12
call fcn.00463f40
mov rax, rdx
mov rcx, rbx
call fcn.00463ec0
mov rbx, qword [rsp + 0x80]
mov rdx, r15
cmp rdx, r12
jge 0x4a1029
cmp r9, rdx
jbe 0x4a1071
mov qword [rsp + 0x58], r13
movzx r15d, byte [rax + rdx]
cmp r15b, r10b
je 0x4a0ea4
cmp rcx, r12
jb 0x4a1066
lea r15, [rdx + 1]
nop dword [rax + rax]
cmp r15, r12
ja 0x4a105b
mov qword [rsp + 0x68], rdx
sub rbx, rdx
sub rcx, rdx
dec rcx
mov r8, rcx
neg rcx
sar rcx, 0x3f
and r15, rcx
lea rcx, [rax + r15]
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r8
mov byte [rsp + 0x18], r10b
nop dword [rax + rax]
call fcn.00403ae0
xorps xmm15, xmm15
mov r14, qword [0x005f8e78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
nop dword [rax]
test rax, rax
jl 0x4a1019
mov rsi, qword [rsp + 0x68]
lea rdx, [rsi + rax]
lea rdx, [rdx + 1]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xc0]
mov r9, qword [rsp + 0xa0]
movzx r10d, byte [rsp + 0x3f]
movzx r11d, byte [rsp + 0x3d]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x58]
lea r15, [rdx + 1]
cmp r9, r15
jbe 0x4a1050
mov qword [rsp + 0x78], rdx
movzx ebx, byte [rax + rdx + 1]
nop dword [rax + rax]
cmp bl, r11b
jne 0x4a0f5d
lea rbx, [rdx + rsi]
cmp rcx, rbx
jb 0x4a1045
cmp rdx, rbx
ja 0x4a1039
mov qword [rsp + 0x70], r15
mov r8, rdx
sub rdx, rcx
sar rdx, 0x3f
and rdx, r8
add rdx, rax
mov rbx, rdi
mov rax, rdx
mov rcx, rsi
nop dword [rax]
call fcn.00403600
test al, al
jne 0x4a100b
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xc0]
mov r9, qword [rsp + 0xa0]
movzx r10d, byte [rsp + 0x3f]
movzx r11d, byte [rsp + 0x3d]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x58]
mov r15, qword [rsp + 0x70]
inc r13
lea rbx, [rdx + 0x11]
sar rbx, 0x3f
shr rbx, 0x3d
lea rbx, [rbx + rdx]
lea rbx, [rbx + 0x11]
sar rbx, 3
nop
nop dword [rax]
cmp rbx, r13
jge 0x4a0d9e
sub rcx, rdx
sub r9, rdx
dec rcx
mov rbx, rcx
neg rcx
sar rcx, 0x3f
and r15, rcx
add rax, r15
mov qword [rsp], rax
lea rax, [r9 - 1]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
call fcn.00403940
xorps xmm15, xmm15
mov r14, qword [0x005f8e78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x30]
nop
test rax, rax
jl 0x4a0ffb
mov rcx, qword [rsp + 0x78]
lea rax, [rcx + rax]
lea rax, [rax + 1]
add rsp, 0x88
pop rbp
ret
mov rax, 0xffffffffffffffff
add rsp, 0x88
pop rbp
ret
mov rax, qword [rsp + 0x78]
add rsp, 0x88
pop rbp
ret
mov rax, 0xffffffffffffffff
add rsp, 0x88
pop rbp
ret
mov rax, 0xffffffffffffffff
add rsp, 0x88
pop rbp
ret
mov rax, rdx
mov rcx, rbx
nop
call fcn.00463f80
mov rdx, rcx
mov rcx, rbx
call fcn.00463f40
mov rax, r15
mov rcx, r9
call fcn.00463ec0
mov rax, r15
mov rcx, r12
call fcn.00463f80
mov rdx, rcx
mov rcx, r12
call fcn.00463f40
mov rax, rdx
mov rcx, r9
call fcn.00463ec0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
nop dword [rax + rax]
call fcn.00461c40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
jmp fcn.004a0960