Function at 0x520f60
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x700]
cmp r12, qword [r14 + 0x10]
jbe 0x52180e
push rbp
mov rbp, rsp
sub rsp, 0x778
mov r10, qword [rdi]
mov rsi, qword [r10 + 8]
mov rdx, qword [rbx + 0x10]
mov r11, qword [r10 + 0x10]
cmp rdx, rsi
jb 0x521805
mov r12, qword [rcx + 0x10]
nop dword [rax]
cmp r12, rsi
jb 0x5217f7
mov qword [rsp + 0x788], rax
mov qword [rsp + 0x7a0], rdi
mov r10, qword [r10]
mov qword [rsp + 0x750], r10
mov r12, qword [rbx]
mov qword [rsp + 0x758], r12
mov r13, qword [rcx]
mov qword [rsp + 0x770], r13
nop word [rax + rax]
cmp rsi, 0x10
jne 0x521020
mov rcx, rdi
lea rdi, [rsp + 0x438]
nop word [rax + rax]
nop word [rax + rax]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.0047a394
mov rbp, qword [rbp]
xor edx, edx
xor ebx, ebx
jmp 0x521787
cmp rsi, 0x18
jne 0x521060
mov rcx, rdi
lea rdi, [rsp + 0x2b8]
nop word [rax + rax]
nop word [rax + rax]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.0047a366
mov rbp, qword [rbp]
xor edx, edx
xor ebx, ebx
jmp 0x521610
cmp rsi, 0x20
jne 0x52109c
mov rcx, rdi
lea rdi, [rsp + 0xb8]
nop word [rax + rax]
nop word [rax + rax]
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.0047a338
mov rbp, qword [rbp]
xor edx, edx
xor ebx, ebx
jmp 0x5214a4
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rdx
mov rcx, rdi
lea rdi, [rsp + 0x538]
nop word [rax + rax]
nop
mov qword [rsp - 0x10], rbp
lea rbp, [rsp - 0x10]
call fcn.0047a338
mov rbp, qword [rbp]
mov rbx, rsi
shl rsi, 1
mov qword [rsp + 0x748], rsi
cmp rsi, 0x40
jg 0x5210f6
mov edi, 0x40
lea r8, [rsp + 0x538]
jmp 0x52114c
lea rax, [0x006699c0]
xor ebx, ebx
mov rcx, rsi
call fcn.00473a60
mov rcx, qword [rsp + 0x7a0]
mov rdx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x748]
mov r10, qword [rsp + 0x750]
mov r11, qword [rsp + 0x40]
mov r12, qword [rsp + 0x758]
mov r13, qword [rsp + 0x770]
mov rdi, rsi
mov r8, rax
mov rax, qword [rsp + 0x788]
cmp rdi, rsi
jb 0x5213a5
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0x760], r8
xor r9d, r9d
xor r15d, r15d
jmp 0x5212b6
mov qword [rsp + 0x88], r9
mov qword [rsp + 0x740], rax
mov r10, r9
shl r9, 3
mov rcx, rdi
sub rcx, r10
mov qword [rsp + 0x738], rcx
mov r11, rcx
neg r11
sar r11, 0x3f
and r9, r11
lea rax, [r8 + r9]
mov qword [rsp + 0x768], rax
mov rsi, rbx
mov r9, r13
mov rdi, r12
mov r8, rdx
call fcn.00521860
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x88]
mov r10, qword [rsp + 0x760]
mov r9, qword [r10 + rdx*8]
mov r11, qword [rsp + 0x7a0]
mov r12, qword [r11 + 0x10]
imul r9, r12
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x738]
mov rdi, qword [rsp + 0x750]
mov rsi, rbx
mov r8, qword [rsp + 0x40]
mov rax, qword [rsp + 0x768]
call fcn.00521860
mov r9, qword [rsp + 0x88]
inc r9
mov rdx, qword [rsp + 0xa8]
neg edx
mov rdx, qword [rsp + 0x68]
adc rax, rdx
mov rdx, qword [rsp + 0x740]
mov r8, qword [rsp + 0x760]
mov qword [r8 + rdx*8], rax
sbb r15, r15
neg r15
mov rdx, qword [rsp + 0x748]
mov r10, qword [rsp + 0x770]
mov r11, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0x758]
mov rax, qword [rsp + 0x788]
mov rcx, qword [rsp + 0x7a0]
mov rdx, r11
mov rbx, rsi
mov rsi, qword [rsp + 0x748]
mov rdi, qword [rsp + 0xb0]
mov r10, qword [rsp + 0x750]
mov r11, qword [rsp + 0x40]
mov r12, qword [rsp + 0x758]
mov r13, qword [rsp + 0x770]
mov qword [rsp + 0xa8], r15
nop
cmp r9, rbx
jge 0x5212ee
lea rax, [r9 + rbx]
cmp rsi, rax
jbe 0x521398
mov r13, qword [r13 + r9*8]
nop word [rax + rax]
cmp r9, rax
jbe 0x521170
jmp 0x52138d
call fcn.0051fec0
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x748]
cmp rcx, rdx
ja 0x521382
mov rsi, qword [rax]
mov rdi, qword [rax + 8]
sub rdx, rcx
mov r8, qword [rsp + 0xb0]
mov r9, rcx
sub rcx, r8
shl r9, 3
sar rcx, 0x3f
and r9, rcx
mov r8, qword [rsp + 0x760]
lea rbx, [r8 + r9]
cmp rdi, rdx
cmovg rdi, rdx
nop dword [rax + rax]
cmp rsi, rbx
je 0x521354
shl rdi, 3
mov rax, rsi
mov rcx, rdi
call fcn.0047aaa0
mov rax, qword [rsp + 0x788]
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x7a0]
call fcn.00520da0
mov rax, qword [rsp + 0x788]
add rsp, 0x778
pop rbp
ret
mov rax, rcx
mov rcx, rdx
call fcn.0047a1a0
mov rcx, rax
mov rax, r9
call fcn.0047a1a0
mov rcx, rsi
nop dword [rax + rax]
call fcn.0047a0e0
mov rcx, rsi
mov rdx, rdi
call fcn.0047a160
mov qword [rsp + 0x70], rdx
mov rax, qword [r13 + rdx*8]
lea rcx, [rsp + rdx*8 + 0xb8]
mov qword [rsp + 0x768], rcx
mov qword [rsp], rcx
mov qword [rsp + 8], r12
mov qword [rsp + 0x10], rax
call fcn.005228e0
xorps xmm15, xmm15
mov r14, qword [0x00998b70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + rcx*8 + 0xb8]
mov rbx, qword [rsp + 0x7a0]
mov rsi, qword [rbx + 0x10]
mov rdi, qword [rsp + 0x768]
mov qword [rsp], rdi
mov rdi, qword [rsp + 0x750]
mov qword [rsp + 8], rdi
imul rdx, rsi
mov qword [rsp + 0x10], rdx
call fcn.005228e0
xorps xmm15, xmm15
mov r14, qword [0x00998b70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x70]
lea rcx, [rdx + 1]
mov rbx, qword [rsp + 0x90]
neg ebx
mov rbx, qword [rsp + 0x50]
adc rax, rbx
mov qword [rsp + rdx*8 + 0x1b8], rax
sbb rbx, rbx
neg rbx
mov rax, qword [rsp + 0x788]
mov r10, qword [rsp + 0x750]
mov r12, qword [rsp + 0x758]
mov r13, qword [rsp + 0x770]
mov rdx, rcx
mov rcx, qword [rsp + 0x7a0]
mov qword [rsp + 0x90], rbx
cmp rdx, 0x20
jl 0x5213b0
mov ebx, 0x20
nop dword [rax + rax]
call fcn.0051fec0
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
cmp rdx, 0x20
mov esi, 0x20
cmovg rdx, rsi
lea rbx, [rsp + 0x1b8]
cmp rcx, rbx
je 0x5214f5
shl rdx, 3
mov rax, rcx
mov rcx, rdx
call fcn.0047aaa0
mov rax, qword [rsp + 0x788]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x7a0]
call fcn.00520da0
jmp 0x521371
mov qword [rsp + 0x78], rdx
mov rax, qword [r13 + rdx*8]
lea rcx, [rsp + rdx*8 + 0x2b8]
mov qword [rsp + 0x768], rcx
mov qword [rsp], rcx
mov qword [rsp + 8], r12
mov qword [rsp + 0x10], rax
nop
call fcn.00522320
xorps xmm15, xmm15
mov r14, qword [0x00998b70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + rcx*8 + 0x2b8]
mov rbx, qword [rsp + 0x7a0]
mov rsi, qword [rbx + 0x10]
mov rdi, qword [rsp + 0x768]
mov qword [rsp], rdi
mov rdi, qword [rsp + 0x750]
mov qword [rsp + 8], rdi
imul rdx, rsi
mov qword [rsp + 0x10], rdx
nop dword [rax]
call fcn.00522320
xorps xmm15, xmm15
mov r14, qword [0x00998b70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x78]
lea rcx, [rdx + 1]
mov rbx, qword [rsp + 0x98]
neg ebx
mov rbx, qword [rsp + 0x58]
adc rax, rbx
mov qword [rsp + rdx*8 + 0x378], rax
sbb rbx, rbx
neg rbx
mov rax, qword [rsp + 0x788]
mov r10, qword [rsp + 0x750]
mov r12, qword [rsp + 0x758]
mov r13, qword [rsp + 0x770]
mov rdx, rcx
mov rcx, qword [rsp + 0x7a0]
mov qword [rsp + 0x98], rbx
nop dword [rax + rax]
cmp rdx, 0x18
jl 0x521517
mov ebx, 0x18
call fcn.0051fec0
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
cmp rdx, 0x18
mov esi, 0x18
cmovg rdx, rsi
lea rbx, [rsp + 0x378]
cmp rcx, rbx
je 0x521665
shl rdx, 3
mov rax, rcx
mov rcx, rdx
nop
call fcn.0047aaa0
mov rax, qword [rsp + 0x788]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x7a0]
nop dword [rax]
call fcn.00520da0
jmp 0x521371
mov qword [rsp + 0x80], rdx
mov rax, qword [r13 + rdx*8]
lea rcx, [rsp + rdx*8 + 0x438]
mov qword [rsp + 0x768], rcx
mov qword [rsp], rcx
mov qword [rsp + 8], r12
mov qword [rsp + 0x10], rax
call fcn.00521f80
xorps xmm15, xmm15
mov r14, qword [0x00998b70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + rcx*8 + 0x438]
mov rbx, qword [rsp + 0x7a0]
mov rsi, qword [rbx + 0x10]
mov rdi, qword [rsp + 0x768]
mov qword [rsp], rdi
mov rdi, qword [rsp + 0x750]
mov qword [rsp + 8], rdi
imul rdx, rsi
mov qword [rsp + 0x10], rdx
call fcn.00521f80
xorps xmm15, xmm15
mov r14, qword [0x00998b70]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x80]
lea rcx, [rdx + 1]
mov rbx, qword [rsp + 0xa0]
neg ebx
mov rbx, qword [rsp + 0x60]
adc rax, rbx
mov qword [rsp + rdx*8 + 0x4b8], rax
sbb rbx, rbx
neg rbx
mov rax, qword [rsp + 0x788]
mov r10, qword [rsp + 0x750]
mov r12, qword [rsp + 0x758]
mov r13, qword [rsp + 0x770]
mov rdx, rcx
mov rcx, qword [rsp + 0x7a0]
mov qword [rsp + 0xa0], rbx
cmp rdx, 0x10
jl 0x52168a
mov ebx, 0x10
nop
call fcn.0051fec0
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
cmp rdx, 0x10
mov esi, 0x10
cmovg rdx, rsi
lea rbx, [rsp + 0x4b8]
cmp rcx, rbx
je 0x5217d5
shl rdx, 3
mov rax, rcx
mov rcx, rdx
call fcn.0047aaa0
mov rax, qword [rsp + 0x788]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x7a0]
call fcn.00520da0
jmp 0x521371
mov rcx, rsi
mov rdx, r12
nop dword [rax]
call fcn.0047a160
mov rcx, rsi
call fcn.0047a160
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00477e00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax + rax]
jmp fcn.00520f60