Function at 0x564b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x778
movaps xmmword [rsp + 0x760], xmm6
xor edi, edi
mov eax, dword [rsp + 0x7e0]
lea r14d, [rax*4]
mov rbp, rdx
mov edx, eax
lea rax, [rsp + 0x360]
mov r15, rcx
shl edx, 6
mov rcx, rax
mov dword [rsp + 0x20], r14d
mov rbx, r8
mov qword [rsp + 0x50], rax
mov rsi, r9
call fcn.005a29d0
test eax, eax
jle 0x565142
lea rax, [rsp + 0x760]
mov edi, esi
and rax, 0xffffffffffffffe0
lea r12, [rax - 0x5e0]
mov eax, dword [rsp + 0x7e0]
lea ecx, [rax + 1]
shr edi, cl
mov eax, edi
add esi, edi
mov dword [rsp + 0x24], edi
shl eax, cl
sub esi, eax
mov dword [rsp + 0x28], esi
cmp edi, esi
jb 0x565161
mov edi, dword [rsp + 0x24]
mov edx, dword [rsp + 0x28]
lea rcx, [rbp + 0x15]
mov qword [rsp + 0x60], rbx
mov r8, qword [rsp + 0x360]
mov r9, qword [rsp + 0x368]
mov qword [rsp + 0x220], rbx
lea eax, [rdi + 0x24]
mov qword [rsp + 0x228], rcx
and eax, 0xfffffff0
mov qword [rbp + 5], r8
add eax, 0x15
cmp edi, edx
mov qword [rbp + 0xd], r9
cmovbe edx, edi
mov qword [rsp + 0x238], r8
mov qword [rsp + 0x240], r9
lea esi, [rdx - 0x33]
mov dword [rsp + 0x58], esi
mov esi, dword [rsp + 0x20]
cmp esi, 1
jle 0x565d5f
movdqa xmm5, xmmword [rsp + 0x370]
mov edx, edi
add rcx, rax
add rbx, rdx
mov qword [rsp + 0x250], rcx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x248], rbx
movups xmmword [rcx - 0x10], xmm5
mov rcx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x250]
movdqa xmm5, xmmword [rsp + 0x370]
add rcx, rdx
add r8, rax
movaps xmmword [rsp + 0x260], xmm5
movq xmm0, rcx
movq xmm5, r8
punpcklqdq xmm0, xmm5
mov qword [rsp + 0x80], rcx
movdqa xmm5, xmmword [rsp + 0x380]
movaps xmmword [rsp + 0x270], xmm0
movups xmmword [r8 - 0x10], xmm5
mov rcx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x278]
movdqa xmm1, xmmword [rsp + 0x380]
movdqa xmm3, xmmword [rsp + 0x390]
add rcx, rdx
add r8, rax
movq xmm0, rcx
movq xmm2, r8
mov qword [rsp + 0x90], rcx
punpcklqdq xmm0, xmm2
movups xmmword [rsp + 0x288], xmm1
movups xmmword [rsp + 0x298], xmm0
movups xmmword [r8 - 0x10], xmm3
movdqa xmm4, xmmword [rsp + 0x390]
movaps xmmword [rsp + 0x2b0], xmm4
cmp esi, 4
je 0x564e4f
mov rcx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x2a0]
movdqa xmm1, xmmword [rsp + 0x3a0]
add rcx, rdx
add r8, rax
movq xmm5, r8
movq xmm0, rcx
mov qword [rsp + 0xa0], rcx
punpcklqdq xmm0, xmm5
movaps xmmword [rsp + 0x2c0], xmm0
movups xmmword [r8 - 0x10], xmm1
mov rcx, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x2c8]
movdqa xmm2, xmmword [rsp + 0x3a0]
movdqa xmm4, xmmword [rsp + 0x3b0]
add rcx, rdx
add r8, rax
movq xmm3, r8
movq xmm0, rcx
mov qword [rsp + 0xb0], rcx
punpcklqdq xmm0, xmm3
movups xmmword [rsp + 0x2d8], xmm2
movups xmmword [rsp + 0x2e8], xmm0
movups xmmword [r8 - 0x10], xmm4
mov rcx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x2f0]
movdqa xmm5, xmmword [rsp + 0x3b0]
movdqa xmm2, xmmword [rsp + 0x3c0]
add rcx, rdx
add r8, rax
movq xmm1, r8
movq xmm0, rcx
mov qword [rsp + 0xc0], rcx
punpcklqdq xmm0, xmm1
movaps xmmword [rsp + 0x300], xmm5
movaps xmmword [rsp + 0x310], xmm0
movups xmmword [r8 - 0x10], xmm2
add rdx, qword [rsp + 0xc0]
add rax, qword [rsp + 0x318]
movdqa xmm3, xmmword [rsp + 0x3c0]
movq xmm0, rdx
movdqa xmm5, xmmword [rsp + 0x3d0]
movq xmm4, rax
punpcklqdq xmm0, xmm4
mov qword [rsp + 0xd0], rdx
movups xmmword [rsp + 0x328], xmm3
movups xmmword [rsp + 0x338], xmm0
movups xmmword [rax - 0x10], xmm5
movdqa xmm1, xmmword [rsp + 0x3d0]
movaps xmmword [rsp + 0x350], xmm1
mov r11, qword [r15 + 0x1d0]
mov qword [rsp + 0x360], r11
bswap r11
mov eax, dword [rsp + 0x20]
lea rbx, [rsp + 0x60]
mov qword [rsp + 0x48], r11
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r8, rbx
lea rbx, [rsp + 0xe0]
movzx ecx, byte [r15 + 0x1d9]
sub eax, 1
mov qword [rsp + 0x30], rbx
movzx r9d, byte [r15 + 0x1da]
mov r10, rbx
mov dword [rsp + 0x2c], eax
mov eax, dword [r15 + 0x1b4]
mov qword [rsp + 0x7c0], r15
mov r14d, dword [r15 + 0x1b8]
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 0x1c0]
mov qword [rsp + 0x7c8], rbp
mov r13d, dword [r15 + 0x1bc]
mov ebp, ecx
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x50]
mov edi, dword [r15 + 0x1c4]
movzx esi, byte [r15 + 0x1d8]
mov r15d, r9d
nop dword [rax]
mov ecx, dword [rsp + 0x40]
cmp dword [rsp + 0x2c], edx
mov dword [r12 + rdx*4 + 0x20], r14d
mov ebx, dword [rsp + 0x28]
cmovne ebx, dword [rsp + 0x24]
mov byte [rax + 8], sil
add r8, 0x10
mov dword [r12 + rdx*4], ecx
mov ecx, dword [rsp + 0x44]
add r10, 0x10
mov byte [rax + 0xb], bh
mov dword [r12 + rdx*4 + 0x60], ecx
mov rcx, qword [rsp + 0x48]
mov byte [rax + 0xc], bl
sub ebx, 0x33
add rcx, rdx
mov dword [r12 + rdx*4 + 0x40], r13d
shr ebx, 6
bswap rcx
mov qword [rax], rcx
mov rcx, qword [r8 - 0x10]
mov dword [r12 + rdx*4 + 0x80], edi
add rdx, 1
mov byte [rax + 9], bpl
add rcx, 0x33
mov byte [rax + 0xa], r15b
movdqu xmm1, xmmword [rcx - 0x33]
movups xmmword [rax + 0xd], xmm1
movdqu xmm2, xmmword [rcx - 0x23]
movups xmmword [rax + 0x1d], xmm2
movdqu xmm3, xmmword [rcx - 0x13]
movups xmmword [rax + 0x2d], xmm3
movzx r11d, word [rcx - 3]
mov word [rax + 0x3d], r11w
movzx r11d, byte [rcx - 1]
mov qword [r10 - 0x10], rax
sub rax, 0xffffffffffffff80
mov byte [rax - 0x41], r11b
mov qword [r8 - 0x10], rcx
mov dword [r8 - 8], ebx
mov dword [r10 - 8], 1
cmp dword [rsp + 0x20], edx
ja 0x564ef0
mov r8d, dword [rsp + 0x7e0]
mov rdx, qword [rsp + 0x30]
mov rcx, r12
mov r15, qword [rsp + 0x7c0]
mov rbp, qword [rsp + 0x7c8]
call fcn.005b2800
cmp dword [rsp + 0x58], 0x83f
ja 0x56518b
lea rax, [rsp + 0x220]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x58], rax
mov r8d, dword [rsp + 0x7e0]
mov rdx, qword [rsp + 0x38]
mov rcx, r12
call fcn.005b2800
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosq qword [rdi], rax
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x565de7
sub eax, 1
mov edi, 0xffffffcd
mov rcx, qword [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x2c], eax
mov eax, edi
sub eax, dword [rsp + 0x40]
xor esi, esi
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0xe8]
lea rdi, [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x7c8], rbp
jmp 0x56508d
mov dword [rcx + 0x3c], eax
mov rax, qword [rsp + 0x48]
mov dword [rax + rbx], 1
mov rax, qword [rsp + 0x30]
add esi, 1
mov qword [rax + rbx], rcx
sub rcx, 0xffffffffffffff80
add rbx, 0x10
cmp dword [rsp + 0x20], esi
je 0x5656a0
mov edx, dword [rdi + rbx]
mov r13d, dword [rsp + 0x44]
cmp esi, dword [rsp + 0x2c]
mov r14d, dword [rsp + 0x24]
cmove r14d, dword [rsp + 0x28]
shl edx, 6
mov rax, qword [rsp + 0x38]
sub r13d, edx
lea ebp, [r13 + r14]
add rdx, qword [rax + rbx]
mov r8, rbp
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x760]
mov rcx, rax
mov eax, esi
shl rax, 7
add rax, rdx
mov byte [rbp + rax - 0x400], pe_nt_image_headers64
lea eax, [r14*8 + 0x268]
bswap eax
cmp ebp, 0x37
jbe 0x565060
mov dword [rcx + 0x7c], eax
mov rax, qword [rsp + 0x48]
mov dword [rax + rbx], 2
jmp 0x56506f
mov rdi, r12
mov r12, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x7e0]
mov rcx, qword [rsp + 0x58]
mov rdx, r15
call fcn.00603600
mov rcx, qword [rsp + 0x50]
mov edx, 0x400
call fcn.005fddf0
mov edx, 0xa0
mov rcx, r12
call fcn.005fddf0
nop
movaps xmm6, xmmword [rsp + 0x760]
mov rax, rdi
add rsp, 0x778
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rsi + 0x16]
lea edx, [r14 - 1]
and eax, 0x3f
cmp eax, edx
jae 0x564bb8
mov eax, esi
add edi, 1
sub eax, r14d
mov dword [rsp + 0x24], edi
add eax, 1
mov dword [rsp + 0x28], eax
jmp 0x564bb8
mov rax, qword [rsp + 0x60]
mov edi, dword [rsp + 0x20]
mov dword [rsp + 0xe8], 0x20
mov dword [rsp + 0x230], pe_nt_image_headers64
mov qword [rsp + 0xe0], rax
cmp edi, 1
jbe 0x5652d0
mov dword [rsp + 0xf8], 0x20
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x258], pe_nt_image_headers64
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x80]
mov dword [rsp + 0x108], 0x20
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x90]
mov dword [rsp + 0x280], pe_nt_image_headers64
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x118], 0x20
mov dword [rsp + 0x2a8], pe_nt_image_headers64
cmp edi, 4
je 0x5652d0
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x128], 0x20
mov dword [rsp + 0x2d0], pe_nt_image_headers64
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0xb0]
mov dword [rsp + 0x138], 0x20
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0xc0]
mov dword [rsp + 0x2f8], pe_nt_image_headers64
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x148], 0x20
mov dword [rsp + 0x320], pe_nt_image_headers64
cmp edi, 8
jne 0x5652d0
mov rax, qword [rsp + 0xd0]
mov dword [rsp + 0x158], 0x20
mov dword [rsp + 0x348], pe_nt_image_headers64
mov qword [rsp + 0x150], rax
mov ebx, dword [rsp + 0x58]
lea rax, [rsp + 0x220]
xor esi, esi
movdqa xmm6, xmmword [0x008faf60]
mov r13d, dword [rsp + 0x20]
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
shr ebx, 6
mov edi, dword [rsp + 0x7e0]
mov qword [rsp + 0x7c8], rbp
mov ebp, ebx
mov rbx, rax
nop dword [rax]
mov r8d, edi
mov rdx, r14
mov rcx, r12
call fcn.005b2800
mov r8d, edi
mov rdx, r15
mov rcx, rbx
call fcn.00603600
test r13d, r13d
je 0x565675
mov rax, qword [rsp + 0x60]
sub dword [rsp + 0x68], 0x20
movdqa xmm0, xmmword [rsp + 0x220]
sub dword [rsp + 0x78], 0x20
add rax, 0x800
sub dword [rsp + 0x88], 0x20
mov qword [rsp + 0x60], rax
paddq xmm0, xmm6
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x228]
movaps xmmword [rsp + 0x220], xmm0
movdqu xmm0, xmmword [rsp + 0x248]
movdqu xmm4, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0xe8], 0x20
mov dword [rsp + 0x230], pe_nt_image_headers64
paddq xmm0, xmm6
add rax, 0x800
movups xmmword [rsp + 0x238], xmm4
mov qword [rsp + 0x70], rax
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x250]
movups xmmword [rsp + 0x248], xmm0
movdqa xmm0, xmmword [rsp + 0x270]
movdqu xmm5, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0x80]
mov dword [rsp + 0xf8], 0x20
mov dword [rsp + 0x258], pe_nt_image_headers64
paddq xmm0, xmm6
add rax, 0x800
movaps xmmword [rsp + 0x260], xmm5
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x278]
mov dword [rsp + 0x108], 0x20
movaps xmmword [rsp + 0x270], xmm0
movdqu xmm4, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0x90]
movdqu xmm0, xmmword [rsp + 0x298]
sub dword [rsp + 0x98], 0x20
add rax, 0x800
mov dword [rsp + 0x280], pe_nt_image_headers64
mov qword [rsp + 0x90], rax
paddq xmm0, xmm6
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x2a0]
mov dword [rsp + 0x118], 0x20
movdqu xmm5, xmmword [rax + 0x7f0]
movups xmmword [rsp + 0x288], xmm4
mov dword [rsp + 0x2a8], pe_nt_image_headers64
movups xmmword [rsp + 0x298], xmm0
movaps xmmword [rsp + 0x2b0], xmm5
cmp r13d, 4
je 0x565675
mov rax, qword [rsp + 0xa0]
sub dword [rsp + 0xa8], 0x20
movdqa xmm0, xmmword [rsp + 0x2c0]
sub dword [rsp + 0xb8], 0x20
add rax, 0x800
sub dword [rsp + 0xc8], 0x20
mov qword [rsp + 0xa0], rax
paddq xmm0, xmm6
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x2c8]
movaps xmmword [rsp + 0x2c0], xmm0
movdqu xmm0, xmmword [rsp + 0x2e8]
movdqu xmm1, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0xb0]
mov dword [rsp + 0x128], 0x20
mov dword [rsp + 0x2d0], pe_nt_image_headers64
paddq xmm0, xmm6
add rax, 0x800
mov dword [rsp + 0x138], 0x20
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x2f0]
movups xmmword [rsp + 0x2e8], xmm0
movdqa xmm0, xmmword [rsp + 0x310]
movdqu xmm2, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0xc0]
mov dword [rsp + 0x2f8], pe_nt_image_headers64
paddq xmm0, xmm6
movups xmmword [rsp + 0x2d8], xmm1
add rax, 0x800
movaps xmmword [rsp + 0x300], xmm2
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x318]
mov dword [rsp + 0x148], 0x20
movaps xmmword [rsp + 0x310], xmm0
movdqu xmm3, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0xd0]
movdqu xmm0, xmmword [rsp + 0x338]
sub dword [rsp + 0xd8], 0x20
add rax, 0x800
mov dword [rsp + 0x320], pe_nt_image_headers64
mov qword [rsp + 0xd0], rax
paddq xmm0, xmm6
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x340]
mov dword [rsp + 0x158], 0x20
movdqu xmm4, xmmword [rax + 0x7f0]
movups xmmword [rsp + 0x328], xmm3
mov dword [rsp + 0x348], pe_nt_image_headers64
movups xmmword [rsp + 0x338], xmm0
movaps xmmword [rsp + 0x350], xmm4
sub ebp, 0x20
add esi, 0x800
cmp ebp, 0x20
ja 0x565310
mov dword [rsp + 0x40], esi
mov rbp, qword [rsp + 0x7c8]
jmp 0x564ff2
mov r8d, dword [rsp + 0x7e0]
mov rdx, rax
mov rcx, r12
mov rbp, qword [rsp + 0x7c8]
call fcn.005b2800
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov ecx, pe_nt_image_headers64
mov r9d, dword [r15 + 0x154]
mov r8d, dword [r15 + 0x158]
rep stosq qword [rdi], rax
mov edx, dword [r15 + 0x160]
mov eax, dword [r12]
mov byte [rsp + 0x374], pe_nt_image_headers64
mov r11d, dword [r15 + 0x164]
mov ecx, dword [r15 + 0x15c]
mov dword [r12], r9d
mov r10d, dword [r12 + 4]
mov dword [r12 + 4], r9d
bswap eax
bswap r10d
mov dword [rsp + 0x360], eax
mov eax, dword [r12 + 0x20]
mov dword [rsp + 0x3e0], r10d
mov r10d, dword [r12 + 0x24]
bswap eax
bswap r10d
mov dword [rsp + 0x364], eax
mov eax, dword [r12 + 0x40]
mov dword [rsp + 0x3e4], r10d
mov r10d, dword [r12 + 0x44]
bswap eax
bswap r10d
mov dword [rsp + 0x368], eax
mov eax, dword [r12 + 0x60]
mov dword [rsp + 0x3e8], r10d
bswap eax
mov dword [r12 + 0x20], r8d
mov dword [rsp + 0x36c], eax
mov eax, dword [r12 + 0x80]
mov dword [r12 + 0x40], ecx
bswap eax
mov dword [r12 + 0x60], edx
mov dword [rsp + 0x370], eax
mov eax, 0x2a0
mov dword [r12 + 0x80], r11d
bswap eax
mov dword [r12 + 0x24], r8d
mov dword [rsp + 0x39c], eax
mov dword [r12 + 0x44], ecx
mov r10d, dword [r12 + 0x64]
mov byte [rsp + 0x3f4], 0x80
bswap r10d
mov dword [r12 + 0x64], edx
mov dword [rsp + 0x3ec], r10d
mov r10d, dword [r12 + 0x84]
mov dword [rsp + 0x41c], eax
bswap r10d
mov dword [r12 + 0x84], r11d
mov dword [rsp + 0x3f0], r10d
mov r10d, dword [r12 + 8]
mov byte [rsp + 0x474], 0x80
bswap r10d
mov dword [r12 + 8], r9d
mov dword [rsp + 0x460], r10d
mov r10d, dword [r12 + 0x28]
mov dword [rsp + 0x49c], eax
bswap r10d
mov dword [r12 + 0x28], r8d
mov dword [rsp + 0x464], r10d
mov r10d, dword [r12 + 0x48]
mov dword [r12 + 0x48], ecx
bswap r10d
mov dword [rsp + 0x468], r10d
mov r10d, dword [r12 + 0x68]
mov dword [r12 + 0x68], edx
bswap r10d
mov dword [rsp + 0x46c], r10d
mov r10d, dword [r12 + 0x88]
mov dword [r12 + 0x88], r11d
bswap r10d
mov dword [rsp + 0x470], r10d
mov r10d, dword [r12 + 0xc]
mov dword [r12 + 0xc], r9d
bswap r10d
mov dword [rsp + 0x4e0], r10d
mov r10d, dword [r12 + 0x2c]
mov dword [r12 + 0x2c], r8d
bswap r10d
mov dword [rsp + 0x4e4], r10d
mov r10d, dword [r12 + 0x4c]
bswap r10d
mov dword [rsp + 0x4e8], r10d
mov r10d, dword [r12 + 0x6c]
bswap r10d
mov dword [rsp + 0x4ec], r10d
mov r10d, dword [r12 + 0x8c]
bswap r10d
cmp dword [rsp + 0x20], 4
mov dword [r12 + 0x4c], ecx
mov dword [r12 + 0x6c], edx
mov dword [rsp + 0x4f0], r10d
mov dword [r12 + 0x8c], r11d
mov byte [rsp + 0x4f4], 0x80
mov dword [rsp + 0x51c], eax
je 0x565adf
mov r10d, dword [r12 + 0x10]
mov byte [rsp + 0x574], 0x80
mov dword [r12 + 0x10], r9d
bswap r10d
mov dword [rsp + 0x59c], eax
mov dword [rsp + 0x560], r10d
mov r10d, dword [r12 + 0x30]
mov dword [r12 + 0x30], r8d
bswap r10d
mov dword [rsp + 0x564], r10d
mov r10d, dword [r12 + 0x50]
mov dword [r12 + 0x50], ecx
bswap r10d
mov dword [rsp + 0x568], r10d
mov r10d, dword [r12 + 0x70]
mov dword [r12 + 0x70], edx
bswap r10d
mov dword [rsp + 0x56c], r10d
mov r10d, dword [r12 + 0x90]
mov dword [r12 + 0x90], r11d
bswap r10d
mov dword [rsp + 0x570], r10d
mov r10d, dword [r12 + 0x14]
mov dword [r12 + 0x14], r9d
bswap r10d
mov dword [rsp + 0x5e0], r10d
mov r10d, dword [r12 + 0x34]
mov dword [r12 + 0x34], r8d
bswap r10d
mov dword [rsp + 0x5e4], r10d
mov r10d, dword [r12 + 0x54]
mov dword [r12 + 0x54], ecx
bswap r10d
mov dword [rsp + 0x5e8], r10d
mov r10d, dword [r12 + 0x74]
mov dword [r12 + 0x74], edx
bswap r10d
mov dword [rsp + 0x5ec], r10d
mov r10d, dword [r12 + 0x94]
mov dword [r12 + 0x94], r11d
bswap r10d
mov dword [rsp + 0x5f0], r10d
mov byte [rsp + 0x5f4], 0x80
mov r10d, dword [r12 + 0x18]
mov dword [rsp + 0x61c], eax
mov dword [r12 + 0x18], r9d
bswap r10d
mov byte [rsp + 0x674], 0x80
mov dword [rsp + 0x660], r10d
mov r10d, dword [r12 + 0x38]
mov dword [rsp + 0x69c], eax
mov dword [r12 + 0x38], r8d
bswap r10d
mov dword [rsp + 0x664], r10d
mov r10d, dword [r12 + 0x58]
mov dword [r12 + 0x58], ecx
bswap r10d
mov dword [rsp + 0x668], r10d
mov r10d, dword [r12 + 0x78]
mov dword [r12 + 0x78], edx
bswap r10d
mov dword [rsp + 0x66c], r10d
mov r10d, dword [r12 + 0x98]
mov dword [r12 + 0x98], r11d
bswap r10d
mov dword [rsp + 0x670], r10d
mov r10d, dword [r12 + 0x1c]
mov dword [r12 + 0x1c], r9d
mov r9d, dword [r12 + 0x3c]
bswap r10d
mov dword [r12 + 0x3c], r8d
mov r8d, dword [r12 + 0x5c]
mov dword [rsp + 0x6e0], r10d
mov dword [r12 + 0x5c], ecx
mov ecx, dword [r12 + 0x7c]
bswap r9d
mov dword [r12 + 0x7c], edx
mov edx, dword [r12 + 0x9c]
mov dword [rsp + 0x6e4], r9d
bswap r8d
bswap ecx
mov dword [rsp + 0x6e8], r8d
mov dword [rsp + 0x6ec], ecx
bswap edx
mov dword [rsp + 0x6f0], edx
mov dword [r12 + 0x9c], r11d
mov byte [rsp + 0x6f4], 0x80
mov dword [rsp + 0x71c], eax
mov dword [rsp + 0xe8], 1
cmp dword [rsp + 0x20], 4
mov dword [rsp + 0xf8], 1
mov dword [rsp + 0x108], 1
mov dword [rsp + 0x118], 1
je 0x565b3e
mov dword [rsp + 0x128], 1
mov dword [rsp + 0x138], 1
mov dword [rsp + 0x148], 1
mov dword [rsp + 0x158], 1
mov rax, qword [rsp + 0x50]
cmp dword [rsp + 0x20], 4
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x3e0]
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x460]
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x4e0]
mov qword [rsp + 0x110], rax
je 0x565bc2
lea rax, [rsp + 0x560]
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0x5e0]
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x660]
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x6e0]
mov qword [rsp + 0x150], rax
mov r8d, dword [rsp + 0x7e0]
mov rcx, r12
mov rbx, r12
xor edi, edi
mov rdx, qword [rsp + 0x30]
call fcn.005b2800
mov eax, 1
sub eax, dword [rsp + 0x40]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], eax
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov r12, rax
jmp 0x565c78
test r11b, 4
jne 0x565d46
test r11d, r11d
je 0x565c1c
and ecx, 2
mov byte [rax + 0x14], r9b
jne 0x565d54
mov eax, dword [rsp + 0x30]
add edx, r8d
add r11, r13
add edi, 1
add rsi, 0x28
add rbx, 4
add eax, edx
shr eax, 4
mov dword [rsi - 0x18], eax
movzx eax, byte [r15 + 0x1d8]
mov byte [rbp], al
movzx eax, byte [r15 + 0x1d9]
mov byte [rbp + 1], al
movzx eax, byte [r15 + 0x1da]
mov byte [rbp + 2], al
lea eax, [rdx + 0x11]
rol ax, 8
mov word [rbp + 3], ax
lea eax, [rdx + 0x16]
add r12, rax
cmp dword [rsp + 0x20], edi
je 0x565108
mov rbp, r11
cmp edi, dword [rsp + 0x2c]
mov r14d, dword [rsp + 0x24]
cmove r14d, dword [rsp + 0x28]
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi]
mov r8d, r14d
sub r8d, dword [rsp + 0x40]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi + 8]
lea r8d, [r14 + 0x14]
mov edx, dword [rbx]
bswap edx
movabs r10, 0x101010101010101
mov qword [rsi], rax
lea eax, [r14 + 0x15]
add rax, rbp
mov dword [rax], edx
mov edx, dword [rbx + 0x20]
lea r13, [rax + 0x14]
bswap edx
mov dword [rax + 4], edx
mov edx, dword [rbx + 0x40]
bswap edx
mov dword [rax + 8], edx
mov edx, dword [rbx + 0x60]
bswap edx
mov dword [rax + 0xc], edx
mov edx, dword [rbx + 0x80]
bswap edx
mov dword [rax + 0x10], edx
mov edx, r8d
not edx
and edx, 0xf
lea r11d, [rdx + 1]
movzx r9d, dl
imul r9, r10
mov rcx, r11
cmp r11d, 8
jb 0x565c00
mov qword [rax + 0x14], r9
add rax, 0x1c
mov r10, r13
and rax, 0xfffffffffffffff8
mov qword [r13 + r11 - 8], r9
sub r10, rax
add ecx, r10d
and ecx, 0xfffffff8
cmp ecx, 8
jb 0x565c1c
and ecx, 0xfffffff8
xor r10d, r10d
mov r14d, r10d
add r10d, 8
mov qword [rax + r14], r9
cmp r10d, ecx
jb 0x565d31
jmp 0x565c1c
mov dword [rax + 0x14], r9d
mov dword [r13 + r11 - 4], r9d
jmp 0x565c1c
mov word [r13 + r11 - 2], r9w
jmp 0x565c1c
mov r11, qword [r15 + 0x1d0]
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x360], r11
bswap r11
test eax, eax
jne 0x564e61
lea rax, [rsp + 0xe0]
mov r8d, dword [rsp + 0x7e0]
mov rcx, r12
mov rdx, rax
mov qword [rsp + 0x30], rax
call fcn.005b2800
cmp dword [rsp + 0x58], 0x83f
jbe 0x565db6
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
jmp 0x5652d0
mov r8d, dword [rsp + 0x7e0]
mov rcx, r12
lea rdx, [rsp + 0x60]
call fcn.005b2800
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosq qword [rdi], rax
lea rax, [rsp + 0x220]
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x7e0]
mov rcx, r12
mov rdx, rsi
call fcn.005b2800
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rdx, rsi
mov ecx, pe_nt_image_headers64
mov r8d, dword [rsp + 0x7e0]
rep stosq qword [rdi], rax
mov rcx, r12
xor edi, edi
call fcn.005b2800
jmp 0x565110