Function at 0x4a2d40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a3254
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x78], rbp
lea rbp, [rsp + 0x78]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x98], rcx
test rdi, rdi
je 0x4a2ea7
cmp rdi, 1
je 0x4a2e95
nop dword [rax + rax]
cmp rdi, rbx
je 0x4a2e66
jg 0x4a2e55
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x98], rcx
cmp qword [0x005e6660], rdi
jge 0x4a2de7
movzx edx, byte [rcx]
mov byte [rsp + 0x2e], dl
movzx esi, byte [rcx + 1]
mov byte [rsp + 0x2c], sil
mov r8, rbx
sub rbx, rdi
mov qword [rsp + 0x70], rbx
lea r9, [rbx + 1]
mov qword [rsp + 0x30], r9
xor r10d, r10d
xor r11d, r11d
jmp 0x4a30ab
cmp rbx, 0x40
jle 0x4a2e1c
movzx edx, byte [rcx]
mov byte [rsp + 0x2f], dl
movzx esi, byte [rcx + 1]
mov byte [rsp + 0x2d], sil
mov r8, rbx
sub rbx, rdi
mov qword [rsp + 0x70], rbx
lea r9, [rbx + 1]
mov qword [rsp + 0x38], r9
xor r10d, r10d
xor r11d, r11d
jmp 0x4a2eef
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
call fcn.00403420
xorps xmm15, xmm15
mov r14, qword [0x005e67d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rbx, rax
mov rax, rcx
mov rcx, rdi
call fcn.004030e0
test al, al
je 0x4a2e84
xor eax, eax
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
movzx ecx, byte [rcx]
call fcn.004a1ba0
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
xor eax, eax
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rax, qword [rsp + 0x88]
movzx edx, byte [rsp + 0x2f]
mov rbx, qword [rsp + 0x70]
movzx esi, byte [rsp + 0x2d]
mov rdi, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x60]
mov r11, rcx
mov rcx, qword [rsp + 0x98]
cmp r10, r9
jge 0x4a3097
mov qword [rsp + 0x58], r11
movzx r12d, byte [rax + r10]
cmp r12b, dl
je 0x4a2f80
mov qword [rsp + 0x48], r10
sub rbx, r10
mov rdi, rbx
neg rbx
sar rbx, 0x3f
lea r8, [r10 + 1]
and rbx, r8
lea r8, [rax + rbx]
mov rbx, rdi
mov ecx, edx
mov rax, r8
call fcn.004a1ba0
test rax, rax
jl 0x4a3086
mov rdx, qword [rsp + 0x48]
lea r10, [rax + rdx]
lea r10, [r10 + 1]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
movzx edx, byte [rsp + 0x2f]
mov rbx, qword [rsp + 0x70]
movzx esi, byte [rsp + 0x2d]
mov rdi, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x38]
mov r11, qword [rsp + 0x58]
mov qword [rsp + 0x68], r10
movzx r12d, byte [rax + r10 + 1]
cmp r12b, sil
jne 0x4a2fbc
mov rdx, rdi
neg rdi
sar rdi, 0x3f
and rdi, r10
lea rsi, [rax + rdi]
mov rbx, rcx
mov rcx, rdx
mov rax, rsi
call fcn.004030e0
test al, al
jne 0x4a3077
mov r10, qword [rsp + 0x68]
lea rax, [r10 + 1]
mov qword [rsp + 0x60], rax
call fcn.00402b60
mov rcx, qword [rsp + 0x58]
inc rcx
cmp rax, rcx
jge 0x4a2eb3
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
sub rax, rcx
dec rax
mov rdx, rax
neg rax
sar rax, 0x3f
mov rbx, qword [rsp + 0x60]
and rbx, rax
mov rax, qword [rsp + 0x88]
add rax, rbx
mov qword [rsp], rax
mov qword [rsp + 8], rdx
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x18], rax
call fcn.00403420
xorps xmm15, xmm15
mov r14, qword [0x005e67d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
test rax, rax
jl 0x4a3066
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax]
lea rax, [rax + 1]
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rax, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov r10, r13
cmp r10, r9
jge 0x4a3243
mov qword [rsp + 0x50], r11
movzx r12d, byte [r10 + rax]
nop
cmp r12b, dl
je 0x4a313e
mov qword [rsp + 0x40], r10
sub rbx, r10
mov rdi, rbx
neg rbx
sar rbx, 0x3f
lea r8, [r10 + 1]
and rbx, r8
lea r8, [rbx + rax]
mov rbx, rdi
mov ecx, edx
mov rax, r8
call fcn.004a1ba0
test rax, rax
jl 0x4a3232
mov rdx, qword [rsp + 0x40]
lea r10, [rax + rdx]
lea r10, [r10 + 1]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
movzx edx, byte [rsp + 0x2e]
mov rbx, qword [rsp + 0x70]
movzx esi, byte [rsp + 0x2c]
mov rdi, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x30]
mov r11, qword [rsp + 0x50]
mov qword [rsp + 0x68], r10
movzx r12d, byte [r10 + rax + 1]
cmp r12b, sil
jne 0x4a31b3
mov rdx, rdi
neg rdi
sar rdi, 0x3f
and rdi, r10
lea rsi, [rdi + rax]
mov rbx, rcx
mov rcx, rdx
mov rax, rsi
call fcn.004030e0
test al, al
jne 0x4a3223
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
movzx edx, byte [rsp + 0x2e]
mov rbx, qword [rsp + 0x70]
movzx esi, byte [rsp + 0x2c]
mov rdi, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x30]
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x50]
lea r12, [r10 + 1]
inc r11
mov r13, r12
sar r12, 4
add r12, 4
cmp r12, r11
jg 0x4a30a8
cmp r13, r9
jge 0x4a30a8
sub r8, r10
lea rbx, [r8 - 1]
mov rdx, rbx
neg rbx
sar rbx, 0x3f
and r13, rbx
add rax, r13
mov rbx, rdx
call fcn.00402920
test rax, rax
jge 0x4a320c
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rcx, qword [rsp + 0x68]
lea rax, [rax + rcx]
lea rax, [rax + 1]
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rax, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.004628c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.004a2d40