Function at 0x540c60
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x100]
cmp r12, qword [r14 + 0x10]
jbe 0x5411db
push rbp
mov rbp, rsp
sub rsp, 0x178
mov byte [rsp + 0x188], al
mov byte [rsp + 0x189], bl
mov qword [rsp + 0x198], rdi
mov qword [rsp + 0x190], rcx
lea rax, [0x0055c4e0]
xor ebx, ebx
mov rcx, rdi
call fcn.004426a0
mov qword [rsp + 0xa8], rax
movups xmmword [rsp + 0xb0], xmm15
movups xmmword [rsp + 0xc0], xmm15
movups xmmword [rsp + 0xd0], xmm15
mov rbx, qword [rsp + 0x198]
cmp rbx, 8
jg 0x540d23
movups xmmword [rsp + 0xe0], xmm15
lea rdi, [rsp + 0xe8]
lea rdi, [rdi - 0x30]
nop word [rax + rax]
nop dword [rax + rax]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.00458179
mov rbp, qword [rbp]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0xc0], rdx
lea rax, [0x00566720]
lea rcx, [rsp + 0xb0]
call fcn.0040c660
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x198]
xor edx, edx
xor ebx, ebx
mov rsi, qword [rsp + 0xa8]
mov rdi, rcx
xor r8d, r8d
jmp 0x540d6e
mov rdi, rcx
mov r8, rbx
mov rcx, qword [rsp + 0x70]
mov rbx, rsi
mov rsi, rax
mov rax, qword [rsp + 0x78]
test rcx, rcx
jle 0x541110
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x50], rdx
lea r9, [rcx - 1]
mov qword [rsp + 0x70], r9
mov r10, r9
shl r9, 4
mov r11, qword [rsp + 0x190]
mov r12, qword [r11 + r9 + 8]
mov qword [rsp + 0x48], r12
mov r9, qword [r11 + r9]
mov qword [rsp + 0x88], r9
movzx r13d, byte [rsp + 0x189]
test r13b, r13b
je 0x540dd6
xor ecx, ecx
jmp 0x540e4d
mov qword [rsp], r9
mov qword [rsp + 8], r12
mov byte [rsp + 0x10], 0
call fcn.00403b00
xorps xmm15, xmm15
mov r14, qword [0x006b0ec0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
setne al
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x88]
mov r10, qword [rsp + 0x70]
mov r11, qword [rsp + 0x190]
mov r12, qword [rsp + 0x48]
movzx r13d, byte [rsp + 0x189]
mov ecx, eax
mov rax, qword [rsp + 0x78]
test cl, cl
je 0x540ec5
call fcn.00542b20
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x80], rax
nop
lea rax, [0x00569c00]
call fcn.0040bb60
mov rcx, qword [rsp + 0x40]
mov qword [rax + 8], rcx
cmp dword [0x006b0f20], 0
jne 0x540e8c
mov rdx, qword [rsp + 0x80]
jmp 0x540e9c
call fcn.00457b20
mov rdx, qword [rsp + 0x80]
mov qword [r11], rdx
mov qword [rax], rdx
lea rdx, [0x005aca68]
mov rsi, rax
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x98]
nop dword [rax + rax]
jmp 0x540d58
mov rax, r9
mov rbx, r12
lea rcx, [0x0058789d]
mov edi, 1
call fcn.00479380
nop dword [rax]
test rax, rax
jne 0x540f28
mov rbx, qword [rsp + 0x48]
cmp rbx, 1
jb 0x5411ce
lea rdx, [rbx - 1]
mov rsi, rdx
neg rdx
sar rdx, 0x3f
and edx, 1
mov r8, qword [rsp + 0x88]
lea rax, [r8 + rdx]
lea rcx, [0x0058789d]
mov edi, 1
mov rbx, rsi
call fcn.00479380
inc rax
test rax, rax
jge 0x540fd7
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x540fb3
mov rbx, qword [rsp + 0x58]
inc rbx
mov rcx, qword [rsp + 0x60]
cmp rcx, rbx
jb 0x540f57
mov rax, qword [rsp + 0x98]
jmp 0x540f75
mov rax, qword [rsp + 0x98]
mov edi, 1
lea rsi, [0x0055c4e0]
call fcn.00442780
mov rdx, qword [rsp + 0x48]
lea r8, [rbx - 1]
shl r8, 4
mov qword [rax + r8 + 8], rdx
cmp dword [0x006b0f20], 0
jne 0x540f95
mov rdx, qword [rsp + 0x88]
jmp 0x540fad
call fcn.00457b40
mov rdx, qword [rsp + 0x88]
mov qword [r11], rdx
mov r9, qword [r8 + rax]
mov qword [r11 + 8], r9
mov qword [rax + r8], rdx
jmp 0x540fc5
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x90]
jmp 0x540d58
mov rdx, qword [rsp + 0x48]
nop dword [rax]
cmp rax, rdx
ja 0x5411c6
movzx esi, byte [rsp + 0x188]
test sil, sil
jne 0x541002
mov rcx, qword [rsp + 0x88]
nop
jmp 0x541018
mov rbx, rax
mov rax, qword [rsp + 0x88]
call fcn.00478360
mov rcx, rax
mov rax, rbx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x68], rax
mov rbx, qword [rsp + 0x78]
mov rdi, rax
lea rax, [0x00566720]
call fcn.0040fd00
cmp byte [rax], 0
je 0x541065
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x98]
nop dword [rax]
jmp 0x540d58
lea rax, [0x00566720]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x68]
nop
call fcn.004104a0
mov byte [rax], 1
mov rbx, qword [rsp + 0x58]
inc rbx
mov rcx, qword [rsp + 0x60]
cmp rcx, rbx
jb 0x5410a4
mov rax, qword [rsp + 0x98]
jmp 0x5410bd
mov rax, qword [rsp + 0x98]
mov edi, 1
lea rsi, [0x0055c4e0]
call fcn.00442780
lea rdx, [rbx - 1]
shl rdx, 4
mov r8, qword [rsp + 0x48]
mov qword [rax + rdx + 8], r8
cmp dword [0x006b0f20], 0
jne 0x5410e2
mov r8, qword [rsp + 0x88]
jmp 0x5410fa
call fcn.00457b40
mov r8, qword [rsp + 0x88]
mov qword [r11], r8
mov r9, qword [rdx + rax]
mov qword [r11 + 8], r9
mov qword [rax + rdx], r8
mov rdx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x90]
jmp 0x540d58
xor eax, eax
jmp 0x54111f
mov qword [rsi + r8], r11
lea rax, [r9 + 1]
mov r8, rcx
mov rcx, r8
shr r8, 1
cmp rax, r8
jge 0x5411a6
mov r8, rcx
sub r8, rax
dec r8
mov r9, rax
shl rax, 4
mov r10, qword [rax + rsi + 8]
mov r11, qword [rax + rsi]
cmp rcx, r8
jbe 0x5411be
shl r8, 4
mov r12, qword [rsi + r8 + 8]
mov r13, qword [rsi + r8]
mov qword [rsi + rax + 8], r12
cmp dword [0x006b0f20], 0
je 0x541179
mov r12, r11
call fcn.00457b40
mov qword [r11], r13
mov r15, qword [rax + rsi]
mov qword [r11 + 8], r15
mov r11, r12
mov qword [rsi + rax], r13
mov qword [rsi + r8 + 8], r10
cmp dword [0x006b0f20], 0
je 0x541114
mov rax, r11
call fcn.00457b40
mov qword [r11], rax
mov r10, qword [rsi + r8]
mov qword [r11 + 8], r10
mov r11, rax
jmp 0x541114
mov rax, rsi
mov rsi, rbx
mov rbx, rcx
mov rcx, rdi
mov rdi, rdx
add rsp, 0x178
pop rbp
ret
mov rax, r8
call fcn.00457ea0
mov rcx, rax
call fcn.00457ee0
mov eax, 1
xor ecx, ecx
call fcn.00457f60
nop
mov byte [rsp + 8], al
mov byte [rsp + 9], bl
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
call fcn.00455c20
movzx eax, byte [rsp + 8]
movzx ebx, byte [rsp + 9]
mov rcx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
jmp fcn.00540c60