Function at 0x52f920
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, 0x788
movaps xmmword [rsp + 0x770], xmm6
xor edi, edi
mov eax, dword [rsp + 0x7f0]
lea r14d, [rax*4]
mov r12, rdx
mov edx, eax
lea rax, [rsp + 0x370]
mov r15, rcx
shl edx, 6
mov rcx, rax
mov rsi, r8
mov rbp, r9
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x48], rax
call fcn.0056b270
test eax, eax
jle 0x52ff7a
lea rax, [rsp + 0x170]
mov edi, ebp
and rax, 0xffffffffffffffe0
lea rbx, [rax + 0x20]
mov eax, dword [rsp + 0x7f0]
lea ecx, [rax + 1]
shr edi, cl
lea eax, [rdi + rbp]
mov edx, edi
mov dword [rsp + 0x2c], edi
shl edx, cl
mov ecx, eax
sub ecx, edx
mov dword [rsp + 0x38], ecx
cmp edi, ecx
jb 0x52ff99
mov edi, dword [rsp + 0x2c]
mov edx, dword [rsp + 0x38]
lea rcx, [r12 + 0x15]
mov qword [rsp + 0x70], rsi
mov r10, qword [rsp + 0x378]
mov r9, qword [rsp + 0x370]
mov qword [rsp + 0x230], rsi
lea eax, [rdi + 0x24]
mov qword [rsp + 0x238], rcx
and eax, 0xfffffff0
mov qword [r12 + 0xd], r10
add eax, 0x15
cmp edi, edx
mov qword [rsp + 0x250], r10
mov r10d, dword [rsp + 0x28]
cmovbe edx, edi
mov qword [r12 + 5], r9
mov qword [rsp + 0x248], r9
sub edx, 0x33
mov dword [rsp + 0x58], edx
cmp r10d, 1
jle 0x530b37
movdqa xmm5, xmmword [rsp + 0x380]
mov edx, edi
add rcx, rax
add rsi, rdx
mov qword [rsp + 0x30], rsi
movq xmm0, qword [rsp + 0x30]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x80], rsi
movhps xmm0, qword [rsp + 0x30]
movups xmmword [rsp + 0x258], xmm0
movups xmmword [rcx - 0x10], xmm5
mov rcx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x260]
movdqa xmm5, xmmword [rsp + 0x380]
add rcx, rdx
add r8, rax
mov qword [rsp + 0x30], rcx
movq xmm0, qword [rsp + 0x30]
mov qword [rsp + 0x30], r8
movaps xmmword [rsp + 0x270], xmm5
movdqa xmm5, xmmword [rsp + 0x390]
mov qword [rsp + 0x90], rcx
movhps xmm0, qword [rsp + 0x30]
movaps xmmword [rsp + 0x280], xmm0
movups xmmword [r8 - 0x10], xmm5
mov rcx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x288]
movdqa xmm5, xmmword [rsp + 0x390]
movdqa xmm1, xmmword [rsp + 0x3a0]
add rcx, rdx
add r8, rax
mov qword [rsp + 0x30], rcx
movq xmm0, qword [rsp + 0x30]
mov qword [rsp + 0x30], r8
movups xmmword [rsp + 0x298], xmm5
mov qword [rsp + 0xa0], rcx
movhps xmm0, qword [rsp + 0x30]
movups xmmword [rsp + 0x2a8], xmm0
movups xmmword [r8 - 0x10], xmm1
movdqa xmm2, xmmword [rsp + 0x3a0]
movaps xmmword [rsp + 0x2c0], xmm2
cmp r10d, 4
je 0x52fc92
mov rcx, qword [rsp + 0xa0]
mov r8, qword [rsp + 0x2b0]
movdqa xmm3, xmmword [rsp + 0x3b0]
add rcx, rdx
add r8, rax
mov qword [rsp + 0x30], rcx
movq xmm0, qword [rsp + 0x30]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0xb0], rcx
movhps xmm0, qword [rsp + 0x30]
movaps xmmword [rsp + 0x2d0], xmm0
movups xmmword [r8 - 0x10], xmm3
mov rcx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0x2d8]
movdqa xmm4, xmmword [rsp + 0x3b0]
movdqa xmm3, xmmword [rsp + 0x3c0]
add rcx, rdx
add r8, rax
mov qword [rsp + 0x30], rcx
movq xmm0, qword [rsp + 0x30]
mov qword [rsp + 0x30], r8
movups xmmword [rsp + 0x2e8], xmm4
mov qword [rsp + 0xc0], rcx
movhps xmm0, qword [rsp + 0x30]
movups xmmword [rsp + 0x2f8], xmm0
movups xmmword [r8 - 0x10], xmm3
mov rcx, qword [rsp + 0xc0]
mov r8, qword [rsp + 0x300]
movdqa xmm4, xmmword [rsp + 0x3c0]
add rcx, rdx
add r8, rax
mov qword [rsp + 0x30], rcx
movq xmm0, qword [rsp + 0x30]
mov qword [rsp + 0x30], r8
movaps xmmword [rsp + 0x310], xmm4
mov qword [rsp + 0xd0], rcx
movhps xmm0, qword [rsp + 0x30]
movaps xmmword [rsp + 0x320], xmm0
movdqa xmm5, xmmword [rsp + 0x3d0]
movups xmmword [r8 - 0x10], xmm5
add rdx, qword [rsp + 0xd0]
add rax, qword [rsp + 0x328]
movdqa xmm1, xmmword [rsp + 0x3d0]
mov qword [rsp + 0x30], rdx
movq xmm0, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
movdqa xmm2, xmmword [rsp + 0x3e0]
movups xmmword [rsp + 0x338], xmm1
mov qword [rsp + 0xe0], rdx
movhps xmm0, qword [rsp + 0x30]
movups xmmword [rsp + 0x348], xmm0
movups xmmword [rax - 0x10], xmm2
movdqa xmm3, xmmword [rsp + 0x3e0]
movaps xmmword [rsp + 0x360], xmm3
mov rsi, qword [r15 + 0x1d0]
mov qword [rsp + 0x370], rsi
bswap rsi
mov eax, dword [rsp + 0x28]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
xor edx, edx
mov qword [rsp + 0x60], rcx
mov r9, rcx
lea rcx, [rsp + 0xf0]
movzx r10d, byte [r15 + 0x1d9]
sub eax, 1
mov r14d, dword [r15 + 0x1b8]
mov r11, rcx
mov r8, rbx
mov dword [rsp + 0x30], eax
mov eax, dword [r15 + 0x1b4]
mov qword [rsp + 0x50], rcx
mov r13d, dword [r15 + 0x1bc]
mov dword [rsp + 0x3c], eax
mov eax, dword [r15 + 0x1c0]
mov ebp, dword [r15 + 0x1c4]
movzx edi, byte [r15 + 0x1d8]
mov qword [rsp + 0x7d0], r15
mov dword [rsp + 0x68], eax
movzx eax, byte [r15 + 0x1da]
mov qword [rsp + 0x7d8], r12
mov r12d, r10d
mov byte [rsp + 0x6f], al
mov rax, qword [rsp + 0x48]
movzx r15d, byte [rsp + 0x6f]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x3c]
mov rsi, qword [rsp + 0x40]
mov dword [r8 + rdx*4 + 0x20], r14d
cmp dword [rsp + 0x30], edx
mov ebx, dword [rsp + 0x38]
mov byte [rax + 8], dil
mov dword [r8 + rdx*4], ecx
mov ecx, dword [rsp + 0x68]
cmovne ebx, dword [rsp + 0x2c]
mov byte [rax + 9], r12b
add r9, 0x10
add r11, 0x10
mov dword [r8 + rdx*4 + 0x60], ecx
lea rcx, [rsi + rdx]
bswap rcx
mov qword [rax], rcx
mov rcx, qword [r9 - 0x10]
mov byte [rax + 0xb], bh
mov byte [rax + 0xc], bl
sub ebx, 0x33
add rcx, 0x33
mov dword [r8 + rdx*4 + 0x40], r13d
shr ebx, 6
mov dword [r8 + rdx*4 + 0x80], ebp
add rdx, 1
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 esi, word [rcx - 3]
mov word [rax + 0x3d], si
movzx esi, byte [rcx - 1]
mov qword [r11 - 0x10], rax
sub rax, 0xffffffffffffff80
mov byte [rax - 0x41], sil
mov qword [r9 - 0x10], rcx
mov dword [r9 - 8], ebx
mov dword [r11 - 8], 1
cmp dword [rsp + 0x28], edx
ja 0x52fd40
mov rbx, r8
mov rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x7f0]
mov rcx, rbx
mov r15, qword [rsp + 0x7d0]
mov r12, qword [rsp + 0x7d8]
call fcn.0057bd00
cmp dword [rsp + 0x58], 0x83f
ja 0x52ffc3
lea rax, [rsp + 0x230]
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x7f0]
mov rcx, rbx
mov rdx, rbp
call fcn.0057bd00
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosq qword [rdi], rax
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x530bbf
sub eax, 1
mov r13, qword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
xor esi, esi
mov dword [rsp + 0x30], eax
mov eax, 0xffffffcd
sub eax, dword [rsp + 0x3c]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x58], rbx
jmp 0x52fec9
mov dword [r9 + 0x3c], eax
mov dword [r13 + 8], 1
mov qword [r13], r9
add esi, 1
add r13, 0x10
sub r9, 0xffffffffffffff80
add rbp, 0x10
cmp dword [rsp + 0x28], esi
je 0x5304e0
mov edx, dword [rbp + 8]
mov edi, dword [rsp + 0x68]
mov rcx, r9
cmp esi, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x2c]
cmove r14d, dword [rsp + 0x38]
shl edx, 6
sub edi, edx
add rdx, qword [rbp]
lea ebx, [rdi + r14]
mov r8, rbx
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x770]
mov r9, rax
mov eax, esi
shl rax, 7
add rax, rcx
mov byte [rbx + rax - 0x400], 0x80
lea eax, [r14*8 + 0x268]
bswap eax
cmp ebx, 0x37
jbe 0x52fea0
mov dword [r9 + 0x7c], eax
mov dword [r13 + 8], 2
jmp 0x52feac
mov rdi, rbx
mov rbx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x7f0]
mov rcx, qword [rsp + 0x40]
mov rdx, r15
call fcn.005cb900
mov rcx, qword [rsp + 0x48]
mov edx, 0x400
call fcn.005c46c0
mov edx, 0xa0
mov rcx, rbx
call fcn.005c46c0
nop
movaps xmm6, xmmword [rsp + 0x770]
mov rax, rdi
add rsp, 0x788
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rcx + 0x16]
lea edx, [r14 - 1]
and eax, 0x3f
cmp eax, edx
jae 0x52f9b8
mov eax, ecx
add edi, 1
sub eax, r14d
mov dword [rsp + 0x2c], edi
add eax, 1
mov dword [rsp + 0x38], eax
jmp 0x52f9b8
mov rax, qword [rsp + 0x70]
mov edi, dword [rsp + 0x28]
mov dword [rsp + 0xf8], 0x20
mov dword [rsp + 0x240], pe_nt_image_headers64
mov qword [rsp + 0xf0], rax
cmp edi, 1
jbe 0x53010b
mov rax, qword [rsp + 0x80]
mov dword [rsp + 0x108], 0x20
mov dword [rsp + 0x268], pe_nt_image_headers64
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x90]
mov dword [rsp + 0x118], 0x20
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x290], pe_nt_image_headers64
mov qword [rsp + 0x120], rax
mov dword [rsp + 0x128], 0x20
mov dword [rsp + 0x2b8], pe_nt_image_headers64
cmp edi, 4
je 0x53010b
mov rax, qword [rsp + 0xb0]
mov dword [rsp + 0x138], 0x20
mov dword [rsp + 0x2e0], pe_nt_image_headers64
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0xc0]
mov dword [rsp + 0x148], 0x20
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0xd0]
mov dword [rsp + 0x308], pe_nt_image_headers64
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x158], 0x20
mov dword [rsp + 0x330], pe_nt_image_headers64
cmp edi, 8
jne 0x53010b
mov rax, qword [rsp + 0xe0]
mov dword [rsp + 0x168], 0x20
mov dword [rsp + 0x358], pe_nt_image_headers64
mov qword [rsp + 0x160], rax
mov esi, dword [rsp + 0x58]
mov r13d, dword [rsp + 0x28]
xor edi, edi
lea r14, [rsp + 0x230]
mov qword [rsp + 0x40], r14
movdqa xmm6, xmmword [0x008b32e0]
shr esi, 6
mov qword [rsp + 0x7d8], r12
mov ebp, dword [rsp + 0x7f0]
mov r12d, esi
mov rsi, qword [rsp + 0x50]
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
call fcn.0057bd00
mov r8d, ebp
mov rdx, r15
mov rcx, r14
call fcn.005cb900
test r13d, r13d
je 0x5304b3
mov rax, qword [rsp + 0x70]
sub dword [rsp + 0x78], 0x20
movdqa xmm0, xmmword [rsp + 0x230]
sub dword [rsp + 0x88], 0x20
add rax, 0x800
mov dword [rsp + 0xf8], 0x20
mov qword [rsp + 0x70], rax
paddq xmm0, xmm6
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x238]
movaps xmmword [rsp + 0x230], xmm0
movdqu xmm0, xmmword [rsp + 0x258]
movdqu xmm4, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0x80]
mov dword [rsp + 0x240], pe_nt_image_headers64
paddq xmm0, xmm6
sub dword [rsp + 0x98], 0x20
add rax, 0x800
movups xmmword [rsp + 0x248], xmm4
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x260]
movups xmmword [rsp + 0x258], xmm0
movdqa xmm0, xmmword [rsp + 0x280]
movdqu xmm5, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0x90]
mov dword [rsp + 0x108], 0x20
mov dword [rsp + 0x268], pe_nt_image_headers64
paddq xmm0, xmm6
add rax, 0x800
movaps xmmword [rsp + 0x270], xmm5
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x288]
mov dword [rsp + 0x118], 0x20
movaps xmmword [rsp + 0x280], xmm0
movdqu xmm4, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0xa0]
movdqu xmm0, xmmword [rsp + 0x2a8]
mov dword [rsp + 0x290], pe_nt_image_headers64
add rax, 0x800
movups xmmword [rsp + 0x298], xmm4
mov qword [rsp + 0xa0], rax
paddq xmm0, xmm6
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x2b0]
sub dword [rsp + 0xa8], 0x20
movdqu xmm5, xmmword [rax + 0x7f0]
mov dword [rsp + 0x128], 0x20
movups xmmword [rsp + 0x2a8], xmm0
mov dword [rsp + 0x2b8], pe_nt_image_headers64
movaps xmmword [rsp + 0x2c0], xmm5
cmp r13d, 4
je 0x5304b3
mov rax, qword [rsp + 0xb0]
movdqa xmm0, xmmword [rsp + 0x2d0]
mov dword [rsp + 0x138], 0x20
sub dword [rsp + 0xb8], 0x20
add rax, 0x800
paddq xmm0, xmm6
mov dword [rsp + 0x2e0], pe_nt_image_headers64
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x2d8]
movaps xmmword [rsp + 0x2d0], xmm0
movdqu xmm0, xmmword [rsp + 0x2f8]
movdqu xmm1, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0xc0]
mov dword [rsp + 0x148], 0x20
paddq xmm0, xmm6
sub dword [rsp + 0xc8], 0x20
add rax, 0x800
movups xmmword [rsp + 0x2e8], xmm1
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x300]
movups xmmword [rsp + 0x2f8], xmm0
movdqa xmm0, xmmword [rsp + 0x320]
movdqu xmm2, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0xd0]
mov dword [rsp + 0x308], pe_nt_image_headers64
paddq xmm0, xmm6
sub dword [rsp + 0xd8], 0x20
add rax, 0x800
movaps xmmword [rsp + 0x310], xmm2
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x328]
mov dword [rsp + 0x158], 0x20
movaps xmmword [rsp + 0x320], xmm0
movdqu xmm3, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0xe0]
movdqu xmm0, xmmword [rsp + 0x348]
sub dword [rsp + 0xe8], 0x20
add rax, 0x800
mov dword [rsp + 0x330], pe_nt_image_headers64
mov qword [rsp + 0xe0], rax
paddq xmm0, xmm6
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x350]
mov dword [rsp + 0x168], 0x20
movdqu xmm4, xmmword [rax + 0x7f0]
movups xmmword [rsp + 0x338], xmm3
mov dword [rsp + 0x358], pe_nt_image_headers64
movups xmmword [rsp + 0x348], xmm0
movaps xmmword [rsp + 0x360], xmm4
sub r12d, 0x20
add edi, 0x800
cmp r12d, 0x20
ja 0x530145
mov dword [rsp + 0x3c], edi
mov r12, qword [rsp + 0x7d8]
jmp 0x52fe43
mov rbx, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x7f0]
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.0057bd00
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov r11d, dword [rbx + 4]
mov ecx, pe_nt_image_headers64
mov r10d, dword [r15 + 0x154]
mov r9d, dword [r15 + 0x158]
rep stosq qword [rdi], rax
mov edx, dword [r15 + 0x164]
mov ecx, dword [r15 + 0x160]
mov byte [rsp + 0x384], pe_nt_image_headers64
mov r8d, dword [r15 + 0x15c]
mov eax, dword [rbx]
mov dword [rbx + 4], r10d
bswap eax
bswap r11d
mov dword [rsp + 0x370], eax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x3f0], r11d
mov r11d, dword [rbx + 0x24]
bswap eax
bswap r11d
mov dword [rsp + 0x374], eax
mov eax, dword [rbx + 0x40]
mov dword [rsp + 0x3f4], r11d
mov r11d, dword [rbx + 0x44]
bswap eax
bswap r11d
mov dword [rsp + 0x378], eax
mov eax, dword [rbx + 0x60]
mov dword [rsp + 0x3f8], r11d
bswap eax
mov dword [rbx], r10d
mov dword [rsp + 0x37c], eax
mov eax, dword [rbx + 0x80]
mov dword [rbx + 0x20], r9d
bswap eax
mov dword [rbx + 0x40], r8d
mov dword [rsp + 0x380], eax
mov eax, 0x2a0
mov dword [rbx + 0x60], ecx
bswap eax
mov dword [rbx + 0x80], edx
mov dword [rsp + 0x3ac], eax
mov dword [rbx + 0x24], r9d
mov dword [rbx + 0x44], r8d
mov r11d, dword [rbx + 0x64]
mov byte [rsp + 0x404], 0x80
bswap r11d
mov dword [rbx + 0x64], ecx
mov dword [rsp + 0x3fc], r11d
mov r11d, dword [rbx + 0x84]
mov dword [rsp + 0x42c], eax
bswap r11d
mov dword [rbx + 0x84], edx
mov dword [rsp + 0x400], r11d
mov r11d, dword [rbx + 8]
mov byte [rsp + 0x484], 0x80
bswap r11d
mov dword [rbx + 8], r10d
mov dword [rsp + 0x470], r11d
mov r11d, dword [rbx + 0x28]
mov dword [rsp + 0x4ac], eax
bswap r11d
mov dword [rbx + 0x28], r9d
mov dword [rsp + 0x474], r11d
mov r11d, dword [rbx + 0x48]
mov dword [rbx + 0x48], r8d
bswap r11d
mov dword [rsp + 0x478], r11d
mov r11d, dword [rbx + 0x68]
mov dword [rbx + 0x68], ecx
bswap r11d
mov dword [rsp + 0x47c], r11d
mov r11d, dword [rbx + 0x88]
mov dword [rbx + 0x88], edx
bswap r11d
mov dword [rsp + 0x480], r11d
mov r11d, dword [rbx + 0xc]
mov dword [rbx + 0xc], r10d
bswap r11d
mov dword [rsp + 0x4f0], r11d
mov r11d, dword [rbx + 0x2c]
mov dword [rbx + 0x2c], r9d
bswap r11d
mov dword [rsp + 0x4f4], r11d
mov r11d, dword [rbx + 0x4c]
bswap r11d
mov dword [rsp + 0x4f8], r11d
mov r11d, dword [rbx + 0x6c]
bswap r11d
mov dword [rsp + 0x4fc], r11d
mov r11d, dword [rbx + 0x8c]
bswap r11d
cmp dword [rsp + 0x28], 4
mov dword [rbx + 0x4c], r8d
mov dword [rbx + 0x6c], ecx
mov dword [rsp + 0x500], r11d
mov dword [rbx + 0x8c], edx
mov byte [rsp + 0x504], 0x80
mov dword [rsp + 0x52c], eax
je 0x5308ba
mov r11d, dword [rbx + 0x10]
mov byte [rsp + 0x584], 0x80
bswap r11d
mov dword [rbx + 0x10], r10d
mov dword [rsp + 0x570], r11d
mov r11d, dword [rbx + 0x30]
mov dword [rsp + 0x5ac], eax
bswap r11d
mov dword [rbx + 0x30], r9d
mov dword [rsp + 0x574], r11d
mov r11d, dword [rbx + 0x50]
mov dword [rbx + 0x50], r8d
bswap r11d
mov dword [rsp + 0x578], r11d
mov r11d, dword [rbx + 0x70]
mov dword [rbx + 0x70], ecx
bswap r11d
mov dword [rsp + 0x57c], r11d
mov r11d, dword [rbx + 0x90]
mov dword [rbx + 0x90], edx
bswap r11d
mov dword [rsp + 0x580], r11d
mov r11d, dword [rbx + 0x14]
mov dword [rbx + 0x14], r10d
bswap r11d
mov dword [rsp + 0x5f0], r11d
mov r11d, dword [rbx + 0x34]
mov dword [rbx + 0x34], r9d
bswap r11d
mov dword [rsp + 0x5f4], r11d
mov r11d, dword [rbx + 0x54]
mov dword [rbx + 0x54], r8d
bswap r11d
mov dword [rsp + 0x5f8], r11d
mov r11d, dword [rbx + 0x74]
mov dword [rbx + 0x74], ecx
bswap r11d
mov dword [rsp + 0x5fc], r11d
mov r11d, dword [rbx + 0x94]
mov dword [rbx + 0x94], edx
bswap r11d
mov dword [rsp + 0x600], r11d
mov byte [rsp + 0x604], 0x80
mov r11d, dword [rbx + 0x18]
mov dword [rsp + 0x62c], eax
bswap r11d
mov dword [rbx + 0x18], r10d
mov dword [rsp + 0x670], r11d
mov r11d, dword [rbx + 0x38]
mov byte [rsp + 0x684], 0x80
bswap r11d
mov dword [rbx + 0x38], r9d
mov dword [rsp + 0x674], r11d
mov r11d, dword [rbx + 0x58]
mov dword [rsp + 0x6ac], eax
bswap r11d
mov dword [rbx + 0x58], r8d
mov dword [rsp + 0x678], r11d
mov r11d, dword [rbx + 0x78]
mov dword [rbx + 0x78], ecx
bswap r11d
mov dword [rsp + 0x67c], r11d
mov r11d, dword [rbx + 0x98]
mov dword [rbx + 0x98], edx
bswap r11d
mov dword [rsp + 0x680], r11d
mov r11d, dword [rbx + 0x1c]
mov dword [rbx + 0x1c], r10d
mov r10d, dword [rbx + 0x3c]
bswap r11d
mov dword [rbx + 0x3c], r9d
mov r9d, dword [rbx + 0x5c]
mov dword [rsp + 0x6f0], r11d
mov dword [rbx + 0x5c], r8d
mov r8d, dword [rbx + 0x7c]
bswap r10d
mov dword [rbx + 0x7c], ecx
mov ecx, dword [rbx + 0x9c]
mov dword [rsp + 0x6f4], r10d
bswap r9d
bswap r8d
mov dword [rsp + 0x6f8], r9d
mov dword [rsp + 0x6fc], r8d
bswap ecx
mov dword [rsp + 0x700], ecx
mov dword [rbx + 0x9c], edx
mov byte [rsp + 0x704], 0x80
mov dword [rsp + 0x72c], eax
mov dword [rsp + 0xf8], 1
cmp dword [rsp + 0x28], 4
mov dword [rsp + 0x108], 1
mov dword [rsp + 0x118], 1
mov dword [rsp + 0x128], 1
je 0x530919
mov dword [rsp + 0x138], 1
mov dword [rsp + 0x148], 1
mov dword [rsp + 0x158], 1
mov dword [rsp + 0x168], 1
mov rdi, qword [rsp + 0x48]
cmp dword [rsp + 0x28], 4
lea rax, [rdi + 0x80]
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0x100], rax
lea rax, [rdi + 0x100]
mov qword [rsp + 0x110], rax
lea rax, [rdi + 0x180]
mov qword [rsp + 0x120], rax
je 0x530996
lea rax, [rdi + 0x200]
mov qword [rsp + 0x130], rax
lea rax, [rdi + 0x280]
mov qword [rsp + 0x140], rax
lea rax, [rdi + 0x300]
mov qword [rsp + 0x150], rax
lea rax, [rdi + 0x380]
mov qword [rsp + 0x160], rax
mov r8d, dword [rsp + 0x7f0]
mov rcx, rbx
mov rsi, rbx
xor edi, edi
mov rdx, qword [rsp + 0x50]
call fcn.0057bd00
mov eax, 1
sub eax, dword [rsp + 0x3c]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x68], eax
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rbx, rax
jmp 0x530a4d
test cl, 4
jne 0x530b1e
test ecx, ecx
je 0x5309ea
mov byte [rax + 0x14], r9b
test cl, 2
jne 0x530b2c
mov eax, dword [rsp + 0x68]
add edx, r8d
add rcx, r13
add edi, 1
add rbp, 0x28
add rsi, 4
add eax, edx
shr eax, 4
mov dword [rbp - 0x18], eax
movzx eax, byte [r15 + 0x1d8]
mov byte [r12], al
movzx eax, byte [r15 + 0x1d9]
mov byte [r12 + 1], al
movzx eax, byte [r15 + 0x1da]
mov byte [r12 + 2], al
lea eax, [rdx + 0x11]
rol ax, 8
mov word [r12 + 3], ax
lea eax, [rdx + 0x16]
add rbx, rax
cmp dword [rsp + 0x28], edi
je 0x52ff40
mov r12, rcx
cmp edi, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x2c]
cmove r14d, dword [rsp + 0x38]
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp]
mov r8d, r14d
sub r8d, dword [rsp + 0x3c]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 8]
lea r8d, [r14 + 0x14]
mov edx, dword [rsi]
bswap edx
movabs r10, 0x101010101010101
mov qword [rbp], rax
lea eax, [r14 + 0x15]
add rax, r12
mov dword [rax], edx
mov edx, dword [rsi + 0x20]
lea r13, [rax + 0x14]
bswap edx
mov dword [rax + 4], edx
mov edx, dword [rsi + 0x40]
bswap edx
mov dword [rax + 8], edx
mov edx, dword [rsi + 0x60]
bswap edx
mov dword [rax + 0xc], edx
mov edx, dword [rsi + 0x80]
bswap edx
mov dword [rax + 0x10], edx
mov edx, r8d
not edx
and edx, 0xf
mov ecx, edx
movzx r9d, dl
add rcx, 1
imul r9, r10
cmp ecx, 8
jb 0x5309d0
mov qword [rax + 0x14], r9
add rax, 0x1c
mov r11, r13
and rax, 0xfffffffffffffff8
mov qword [r13 + rcx - 8], r9
sub r11, rax
add r11d, ecx
and r11d, 0xfffffff8
cmp r11d, 8
jb 0x5309ea
and r11d, 0xfffffff8
xor r10d, r10d
mov r14d, r10d
add r10d, 8
mov qword [rax + r14], r9
cmp r10d, r11d
jb 0x530b09
jmp 0x5309ea
mov dword [rax + 0x14], r9d
mov dword [r13 + rcx - 4], r9d
jmp 0x5309ea
mov word [r13 + rcx - 2], r9w
jmp 0x5309ea
mov rsi, qword [r15 + 0x1d0]
mov eax, dword [rsp + 0x28]
mov qword [rsp + 0x370], rsi
bswap rsi
test eax, eax
jne 0x52fca4
lea rax, [rsp + 0xf0]
mov r8d, dword [rsp + 0x7f0]
mov rcx, rbx
mov rdx, rax
mov qword [rsp + 0x50], rax
call fcn.0057bd00
cmp dword [rsp + 0x58], 0x83f
jbe 0x530b8e
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
jmp 0x53010b
mov r8d, dword [rsp + 0x7f0]
mov rcx, rbx
lea rdx, [rsp + 0x70]
call fcn.0057bd00
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosq qword [rdi], rax
lea rax, [rsp + 0x230]
mov qword [rsp + 0x40], rax
mov rsi, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x7f0]
mov rcx, rbx
mov rdx, rsi
call fcn.0057bd00
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rdx, rsi
mov ecx, pe_nt_image_headers64
mov r8d, dword [rsp + 0x7f0]
rep stosq qword [rdi], rax
mov rcx, rbx
xor edi, edi
call fcn.0057bd00
jmp 0x52ff48