Function at 0x14002f490
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, 0x7f8
movaps xmmword [rsp + 0x7e0], xmm6
xor r13d, r13d
mov eax, dword [rsp + 0x860]
lea r14d, [rax*4]
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0xb8]
mov r8d, eax
lea rax, [rsp + 0x3e0]
mov rsi, r9
shl r8d, 6
xor r9d, r9d
mov qword [rsp + 0x848], rdx
mov rdx, rax
mov dword [rsp + 0x24], r14d
mov qword [rsp + 0x60], rax
call fcn.140217690
test eax, eax
jle 0x14002fb17
lea rax, [rsp + 0x7e0]
mov edi, esi
and rax, 0xffffffffffffffe0
lea r12, [rax - 0x640]
mov eax, dword [rsp + 0x860]
lea ecx, [rax + 1]
shr edi, cl
mov eax, edi
add esi, edi
mov dword [rsp + 0x28], edi
shl eax, cl
sub esi, eax
mov dword [rsp + 0x2c], esi
cmp edi, esi
jb 0x14002fb36
mov edi, dword [rsp + 0x28]
mov edx, dword [rsp + 0x2c]
movq xmm0, rbx
mov qword [rsp + 0x80], rbx
mov rsi, qword [rsp + 0x848]
mov r8, qword [rsp + 0x3e0]
lea eax, [rdi + 0x30]
mov r9, qword [rsp + 0x3e8]
and eax, 0xfffffff0
lea rcx, [rsi + 0x15]
mov qword [rsi + 5], r8
add eax, 0x15
cmp edi, edx
mov qword [rsi + 0xd], r9
movq xmm6, rcx
cmovbe edx, edi
punpcklqdq xmm0, xmm6
mov qword [rsp + 0x2b8], r8
mov qword [rsp + 0x2c0], r9
lea esi, [rdx - 0x33]
movaps xmmword [rsp + 0x2a0], xmm0
mov dword [rsp + 0x6c], esi
lea rsi, [rbp + 0xc0]
mov qword [rsp + 0x70], rsi
mov esi, dword [rsp + 0x24]
cmp esi, 1
jle 0x140030a24
movdqa xmm6, xmmword [rsp + 0x3f0]
mov edx, edi
add rcx, rax
add rbx, rdx
mov qword [rsp + 0x2d0], rcx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x2c8], rbx
movups xmmword [rcx - 0x10], xmm6
mov rcx, qword [rsp + 0x90]
movdqa xmm6, xmmword [rsp + 0x3f0]
add rcx, rdx
movaps xmmword [rsp + 0x2e0], xmm6
movdqa xmm6, xmmword [rsp + 0x400]
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x2f0], rcx
mov rcx, qword [rsp + 0x2d0]
add rcx, rax
mov qword [rsp + 0x2f8], rcx
movups xmmword [rcx - 0x10], xmm6
mov rcx, qword [rsp + 0xa0]
movdqa xmm6, xmmword [rsp + 0x400]
add rcx, rdx
movups xmmword [rsp + 0x308], xmm6
movdqa xmm6, xmmword [rsp + 0x410]
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0x318], rcx
mov rcx, qword [rsp + 0x2f8]
add rcx, rax
mov qword [rsp + 0x320], rcx
movups xmmword [rcx - 0x10], xmm6
movdqa xmm6, xmmword [rsp + 0x410]
movaps xmmword [rsp + 0x330], xmm6
cmp esi, 4
je 0x14002f7cb
mov rcx, qword [rsp + 0xb0]
movdqa xmm2, xmmword [rsp + 0x420]
add rcx, rdx
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0x340], rcx
mov rcx, qword [rsp + 0x320]
add rcx, rax
mov qword [rsp + 0x348], rcx
movups xmmword [rcx - 0x10], xmm2
mov rcx, qword [rsp + 0xc0]
movdqa xmm3, xmmword [rsp + 0x420]
movdqa xmm6, xmmword [rsp + 0x430]
add rcx, rdx
movups xmmword [rsp + 0x358], xmm3
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0x368], rcx
mov rcx, qword [rsp + 0x348]
add rcx, rax
mov qword [rsp + 0x370], rcx
movups xmmword [rcx - 0x10], xmm6
mov rcx, qword [rsp + 0xd0]
movdqa xmm2, xmmword [rsp + 0x430]
movdqa xmm3, xmmword [rsp + 0x440]
add rcx, rdx
movaps xmmword [rsp + 0x380], xmm2
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0x390], rcx
mov rcx, qword [rsp + 0x370]
add rcx, rax
mov qword [rsp + 0x398], rcx
movups xmmword [rcx - 0x10], xmm3
add rdx, qword [rsp + 0xe0]
movdqa xmm4, xmmword [rsp + 0x440]
add rax, qword [rsp + 0x398]
mov qword [rsp + 0xf0], rdx
mov qword [rsp + 0x3b8], rdx
mov qword [rsp + 0x3c0], rax
movups xmmword [rsp + 0x3a8], xmm4
movdqa xmm5, xmmword [rsp + 0x450]
movups xmmword [rax - 0x10], xmm5
movdqa xmm6, xmmword [rsp + 0x450]
movaps xmmword [rsp + 0x3d0], xmm6
mov r11, qword [rbp + 0x300]
mov qword [rsp + 0x3e0], r11
bswap r11
mov eax, dword [rsp + 0x24]
mov edx, dword [rbp + 0x2f0]
xor r8d, r8d
lea rbx, [rsp + 0x80]
movzx esi, byte [rbp + 0x30a]
mov qword [rsp + 0x40], rbx
mov r9, rbx
lea rbx, [rsp + 0x100]
sub eax, 1
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x60]
mov r10, rbx
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x2e0]
shl esi, 0x10
mov r15d, dword [rbp + 0x2f4]
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x3c], eax
mov eax, dword [rbp + 0x2e8]
mov qword [rsp + 0x78], r12
mov r14d, dword [rbp + 0x2d8]
mov dword [rsp + 0x58], eax
mov eax, dword [rbp + 0x2ec]
mov qword [rsp + 0x840], rbp
mov r13d, dword [rbp + 0x2dc]
mov dword [rsp + 0x48], eax
movzx eax, byte [rbp + 0x308]
mov edi, dword [rbp + 0x2e4]
mov byte [rsp + 0x50], al
movzx eax, byte [rbp + 0x309]
mov ebp, edx
mov byte [rsp + 0x5c], al
mov rax, r12
mov r12d, r15d
nop dword [rax + rax]
cmp dword [rsp + 0x38], r8d
mov esi, dword [rsp + 0x3c]
lea rdx, [r11 + r8]
mov dword [rax], r14d
mov ebx, dword [rsp + 0x2c]
cmovne ebx, dword [rsp + 0x28]
mov dword [rax + 0x20], r13d
add r8, 1
mov dword [rax + 0x40], esi
mov esi, dword [rsp + 0x58]
add rax, 4
add r9, 0x10
mov dword [rsp + 0x20], ebx
mov ebx, dword [rsp + 0x5c]
add r10, 0x10
bswap rdx
mov qword [rcx], rdx
xor edx, edx
mov dl, byte [rsp + 0x50]
mov dword [rax + 0x7c], esi
mov esi, dword [rsp + 0x48]
mov dh, bl
mov ebx, dword [rsp + 0x20]
mov dword [rax + 0x5c], edi
mov dword [rax + 0x9c], esi
movzx edx, dx
or edx, dword [rsp + 0x68]
movzx esi, bh
mov dword [rax + 0xbc], ebp
sub ebx, 0x33
mov r15d, esi
movzx esi, byte [rsp + 0x20]
mov dword [rax + 0xdc], r12d
shr ebx, 6
shl r15d, 0x18
or edx, r15d
mov byte [rcx + 0xc], sil
mov dword [rcx + 8], edx
mov rdx, qword [r9 - 0x10]
movdqu xmm2, xmmword [rdx]
add rdx, 0x33
movups xmmword [rcx + 0xd], xmm2
movdqu xmm3, xmmword [rdx - 0x23]
movups xmmword [rcx + 0x1d], xmm3
movdqu xmm4, xmmword [rdx - 0x13]
movups xmmword [rcx + 0x2d], xmm4
movzx esi, word [rdx - 3]
mov word [rcx + 0x3d], si
movzx esi, byte [rdx - 1]
mov qword [r10 - 0x10], rcx
sub rcx, 0xffffffffffffff80
mov byte [rcx - 0x41], sil
mov qword [r9 - 0x10], rdx
mov dword [r9 - 8], ebx
mov dword [r10 - 8], 1
cmp dword [rsp + 0x24], r8d
ja 0x14002f890
mov r12, qword [rsp + 0x78]
mov r8d, dword [rsp + 0x860]
mov rdx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x840]
mov rcx, r12
call fcn.140232400
cmp dword [rsp + 0x6c], 0x83f
ja 0x14002fb60
lea rax, [rsp + 0x2a0]
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x50], rax
mov r8d, dword [rsp + 0x860]
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call fcn.140232400
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosq qword [rdi], rax
mov eax, dword [rsp + 0x860]
test eax, eax
je 0x140030ab2
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
xor ebx, ebx
xor esi, esi
lea r15, [rsp + 0x88]
sub eax, 1
mov dword [rsp + 0x38], eax
mov eax, 0xffffffcd
sub eax, dword [rsp + 0x3c]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x48], rax
jmp 0x14002fa5d
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 + 0x24], esi
je 0x1400300b0
mov edx, dword [r15 + rbx]
mov edi, dword [rsp + 0x58]
cmp esi, dword [rsp + 0x38]
mov r13d, dword [rsp + 0x28]
cmove r13d, dword [rsp + 0x2c]
shl edx, 6
mov rax, qword [rsp + 0x40]
sub edi, edx
lea r14d, [rdi + r13]
add rdx, qword [rax + rbx]
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rcx, rax
mov eax, esi
shl rax, 7
add rax, 0x7e0
add rax, rsp
mov byte [r14 + rax - 0x400], 0x80
lea eax, [r13*8 + 0x268]
bswap eax
cmp r14d, 0x37
jbe 0x14002fa30
mov dword [rcx + 0x7c], eax
mov rax, qword [rsp + 0x48]
mov dword [rax + rbx], 2
jmp 0x14002fa3f
mov r12, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x860]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call fcn.14008ec40
mov rcx, qword [rsp + 0x60]
mov edx, 0x400
call fcn.140018bb0
mov edx, 0x100
mov rcx, r12
call fcn.140018bb0
mov qword [rbp + 0x1e8], r13
movaps xmm6, xmmword [rsp + 0x7e0]
mov rax, r13
add rsp, 0x7f8
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 0x14002f53a
mov eax, esi
add edi, 1
sub eax, r14d
mov dword [rsp + 0x28], edi
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x14002f53a
mov rax, qword [rsp + 0x80]
mov edi, dword [rsp + 0x24]
mov dword [rsp + 0x108], 0x20
mov dword [rsp + 0x2b0], pe_nt_image_headers64
mov qword [rsp + 0x100], rax
cmp edi, 1
jbe 0x14002fcab
mov rax, qword [rsp + 0x90]
mov dword [rsp + 0x118], 0x20
mov dword [rsp + 0x2d8], pe_nt_image_headers64
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0xa0]
mov dword [rsp + 0x128], 0x20
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0xb0]
mov dword [rsp + 0x300], pe_nt_image_headers64
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x138], 0x20
mov dword [rsp + 0x328], pe_nt_image_headers64
cmp edi, 4
je 0x14002fcab
mov rax, qword [rsp + 0xc0]
mov dword [rsp + 0x148], 0x20
mov dword [rsp + 0x350], pe_nt_image_headers64
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0xd0]
mov dword [rsp + 0x158], 0x20
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0xe0]
mov dword [rsp + 0x378], pe_nt_image_headers64
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x168], 0x20
mov dword [rsp + 0x3a0], pe_nt_image_headers64
cmp edi, 8
jne 0x14002fcab
mov rax, qword [rsp + 0xf0]
mov dword [rsp + 0x178], 0x20
mov dword [rsp + 0x3c8], pe_nt_image_headers64
mov qword [rsp + 0x170], rax
lea r14, [rsp + 0x2a0]
mov ebx, dword [rsp + 0x6c]
xor esi, esi
mov qword [rsp + 0x840], rbp
mov r15d, dword [rsp + 0x24]
mov rdi, qword [rsp + 0x70]
mov qword [rsp + 0x50], r14
movdqa xmm6, xmmword [0x14035f4c0]
mov ebp, dword [rsp + 0x860]
shr ebx, 6
mov r13, qword [rsp + 0x30]
nop word [rax + rax]
mov r8d, ebp
mov rdx, r13
mov rcx, r12
call fcn.140232400
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
call fcn.14008ec40
test ebp, ebp
je 0x140030086
mov rax, qword [rsp + 0x80]
sub dword [rsp + 0x88], 0x20
movdqa xmm0, xmmword [rsp + 0x2a0]
sub dword [rsp + 0x98], 0x20
add rax, 0x800
sub dword [rsp + 0xa8], 0x20
movhlps xmm5, xmm0
mov qword [rsp + 0x80], rax
movdqa xmm1, xmm0
movdqu xmm0, xmmword [rsp + 0x2c8]
mov qword [rsp + 0x100], rax
movq rax, xmm5
paddq xmm1, xmm6
movdqu xmm5, xmmword [rax + 0x7f0]
movhlps xmm2, xmm0
mov rax, qword [rsp + 0x90]
movaps xmmword [rsp + 0x2a0], xmm1
mov dword [rsp + 0x108], 0x20
movdqa xmm1, xmm0
movdqa xmm0, xmmword [rsp + 0x2f0]
add rax, 0x800
paddq xmm1, xmm6
movups xmmword [rsp + 0x2b8], xmm5
mov qword [rsp + 0x90], rax
movhlps xmm4, xmm0
mov qword [rsp + 0x110], rax
movq rax, xmm2
movdqu xmm3, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0xa0]
movups xmmword [rsp + 0x2c8], xmm1
movdqa xmm1, xmm0
mov dword [rsp + 0x2b0], pe_nt_image_headers64
paddq xmm1, xmm6
add rax, 0x800
movaps xmmword [rsp + 0x2e0], xmm3
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x120], rax
movq rax, xmm4
movdqu xmm5, xmmword [rax + 0x7f0]
movaps xmmword [rsp + 0x2f0], xmm1
mov dword [rsp + 0x118], 0x20
mov dword [rsp + 0x2d8], pe_nt_image_headers64
mov dword [rsp + 0x128], 0x20
mov dword [rsp + 0x300], pe_nt_image_headers64
movups xmmword [rsp + 0x308], xmm5
mov rax, qword [rsp + 0xb0]
movdqu xmm0, xmmword [rsp + 0x318]
sub dword [rsp + 0xb8], 0x20
add rax, 0x800
movhlps xmm2, xmm0
movdqa xmm1, xmm0
mov dword [rsp + 0x138], 0x20
mov qword [rsp + 0xb0], rax
paddq xmm1, xmm6
mov qword [rsp + 0x130], rax
movq rax, xmm2
movdqu xmm3, xmmword [rax + 0x7f0]
movups xmmword [rsp + 0x318], xmm1
mov dword [rsp + 0x328], pe_nt_image_headers64
movaps xmmword [rsp + 0x330], xmm3
cmp r15d, 4
je 0x140030086
mov rax, qword [rsp + 0xc0]
sub dword [rsp + 0xc8], 0x20
movdqa xmm0, xmmword [rsp + 0x340]
sub dword [rsp + 0xd8], 0x20
add rax, 0x800
sub dword [rsp + 0xe8], 0x20
movhlps xmm4, xmm0
mov qword [rsp + 0xc0], rax
movdqa xmm1, xmm0
movdqu xmm0, xmmword [rsp + 0x368]
mov qword [rsp + 0x140], rax
movq rax, xmm4
paddq xmm1, xmm6
movdqu xmm5, xmmword [rax + 0x7f0]
movhlps xmm4, xmm0
mov rax, qword [rsp + 0xd0]
movaps xmmword [rsp + 0x340], xmm1
mov dword [rsp + 0x148], 0x20
movdqa xmm1, xmm0
movdqa xmm0, xmmword [rsp + 0x390]
add rax, 0x800
paddq xmm1, xmm6
movups xmmword [rsp + 0x358], xmm5
mov qword [rsp + 0xd0], rax
movhlps xmm2, xmm0
mov qword [rsp + 0x150], rax
movq rax, xmm4
movdqu xmm5, xmmword [rax + 0x7f0]
mov rax, qword [rsp + 0xe0]
movups xmmword [rsp + 0x368], xmm1
movdqa xmm1, xmm0
mov dword [rsp + 0x350], pe_nt_image_headers64
paddq xmm1, xmm6
add rax, 0x800
movaps xmmword [rsp + 0x380], xmm5
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x160], rax
movq rax, xmm2
movdqu xmm3, xmmword [rax + 0x7f0]
movaps xmmword [rsp + 0x390], xmm1
mov dword [rsp + 0x158], 0x20
mov dword [rsp + 0x378], pe_nt_image_headers64
mov dword [rsp + 0x168], 0x20
mov dword [rsp + 0x3a0], pe_nt_image_headers64
movups xmmword [rsp + 0x3a8], xmm3
mov rax, qword [rsp + 0xf0]
movdqu xmm0, xmmword [rsp + 0x3b8]
sub dword [rsp + 0xf8], 0x20
add rax, 0x800
movhlps xmm4, xmm0
movdqa xmm1, xmm0
mov dword [rsp + 0x178], 0x20
mov qword [rsp + 0xf0], rax
paddq xmm1, xmm6
mov qword [rsp + 0x170], rax
movq rax, xmm4
movdqu xmm5, xmmword [rax + 0x7f0]
movups xmmword [rsp + 0x3b8], xmm1
mov dword [rsp + 0x3c8], pe_nt_image_headers64
movaps xmmword [rsp + 0x3d0], xmm5
sub ebx, 0x20
add esi, 0x800
cmp ebx, 0x20
ja 0x14002fcf0
mov dword [rsp + 0x3c], esi
mov rbp, qword [rsp + 0x840]
jmp 0x14002f9bb
mov r8d, dword [rsp + 0x860]
mov rdx, rax
mov rcx, r12
call fcn.140232400
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov ecx, pe_nt_image_headers64
mov r9d, dword [rbp + 0x268]
mov r8d, dword [rbp + 0x26c]
rep stosq qword [rdi], rax
mov edx, dword [rbp + 0x274]
mov eax, dword [r12]
mov ecx, dword [rbp + 0x270]
mov ebx, dword [rbp + 0x27c]
mov dword [r12], r9d
mov r11d, dword [rbp + 0x278]
mov esi, dword [rbp + 0x280]
mov edi, dword [rbp + 0x284]
bswap eax
mov dword [rsp + 0x3e0], eax
mov eax, dword [r12 + 0x20]
mov dword [r12 + 0x20], r8d
bswap eax
mov dword [rsp + 0x3e4], eax
mov eax, dword [r12 + 0x40]
mov dword [r12 + 0x40], ecx
bswap eax
mov dword [rsp + 0x3e8], eax
mov eax, dword [r12 + 0x60]
mov dword [r12 + 0x60], edx
bswap eax
mov dword [rsp + 0x3ec], eax
mov eax, dword [r12 + 0x80]
mov dword [r12 + 0x80], r11d
bswap eax
mov dword [rsp + 0x3f0], eax
mov eax, dword [r12 + 0xa0]
mov dword [r12 + 0xa0], ebx
bswap eax
mov dword [rsp + 0x3f4], eax
mov eax, dword [r12 + 0xc0]
mov dword [r12 + 0xc0], esi
bswap eax
mov dword [rsp + 0x3f8], eax
mov eax, dword [r12 + 0xe0]
bswap eax
mov dword [rsp + 0x3fc], eax
mov r10d, dword [r12 + 4]
mov eax, 0x300
bswap r10d
bswap eax
mov dword [rsp + 0x460], r10d
mov r10d, dword [r12 + 0x24]
mov dword [r12 + 0xe0], edi
bswap r10d
mov byte [rsp + 0x400], 0x80
mov dword [rsp + 0x464], r10d
mov r10d, dword [r12 + 0x44]
mov dword [rsp + 0x41c], eax
bswap r10d
mov dword [r12 + 4], r9d
mov dword [rsp + 0x468], r10d
mov r10d, dword [r12 + 0x64]
mov dword [r12 + 0x24], r8d
bswap r10d
mov dword [r12 + 0x44], ecx
mov dword [rsp + 0x46c], r10d
mov r10d, dword [r12 + 0x84]
mov dword [r12 + 0x64], edx
bswap r10d
mov dword [r12 + 0x84], r11d
mov dword [rsp + 0x470], r10d
mov r10d, dword [r12 + 0xa4]
mov byte [rsp + 0x480], 0x80
bswap r10d
mov dword [r12 + 0xa4], ebx
mov dword [rsp + 0x474], r10d
mov r10d, dword [r12 + 0xc4]
mov dword [rsp + 0x49c], eax
bswap r10d
mov dword [r12 + 0xc4], esi
mov dword [rsp + 0x478], r10d
mov r10d, dword [r12 + 0xe4]
mov dword [r12 + 0xe4], edi
bswap r10d
mov dword [rsp + 0x47c], r10d
mov r10d, dword [r12 + 8]
mov dword [r12 + 8], r9d
bswap r10d
mov dword [rsp + 0x4e0], r10d
mov r10d, dword [r12 + 0x28]
mov dword [r12 + 0x28], r8d
bswap r10d
mov byte [rsp + 0x500], 0x80
mov dword [rsp + 0x4e4], r10d
mov r10d, dword [r12 + 0x48]
mov dword [rsp + 0x51c], eax
bswap r10d
mov dword [r12 + 0x48], ecx
mov dword [rsp + 0x4e8], r10d
mov r10d, dword [r12 + 0x68]
mov dword [r12 + 0x68], edx
bswap r10d
mov dword [rsp + 0x4ec], r10d
mov r10d, dword [r12 + 0x88]
mov dword [r12 + 0x88], r11d
bswap r10d
mov dword [rsp + 0x4f0], r10d
mov r10d, dword [r12 + 0xa8]
mov dword [r12 + 0xa8], ebx
bswap r10d
mov dword [rsp + 0x4f4], r10d
mov r10d, dword [r12 + 0xc8]
mov dword [r12 + 0xc8], esi
bswap r10d
mov dword [rsp + 0x4f8], r10d
mov r10d, dword [r12 + 0xe8]
mov dword [r12 + 0xe8], edi
bswap r10d
mov dword [rsp + 0x4fc], r10d
mov r10d, dword [r12 + 0xc]
mov dword [r12 + 0xc], r9d
bswap r10d
mov dword [rsp + 0x560], r10d
mov r10d, dword [r12 + 0x2c]
mov dword [r12 + 0x2c], r8d
bswap r10d
mov dword [rsp + 0x564], r10d
mov r10d, dword [r12 + 0x4c]
mov dword [r12 + 0x4c], ecx
bswap r10d
mov dword [rsp + 0x568], r10d
mov r10d, dword [r12 + 0x6c]
bswap r10d
mov dword [rsp + 0x56c], r10d
mov r10d, dword [r12 + 0x8c]
bswap r10d
mov dword [rsp + 0x570], r10d
mov r10d, dword [r12 + 0xac]
bswap r10d
mov dword [rsp + 0x574], r10d
mov r10d, dword [r12 + 0xcc]
bswap r10d
mov dword [rsp + 0x578], r10d
mov r10d, dword [r12 + 0xec]
bswap r10d
cmp dword [rsp + 0x24], 4
mov dword [r12 + 0x6c], edx
mov dword [r12 + 0x8c], r11d
mov dword [r12 + 0xac], ebx
mov dword [r12 + 0xcc], esi
mov dword [rsp + 0x57c], r10d
mov dword [r12 + 0xec], edi
mov byte [rsp + 0x580], 0x80
mov dword [rsp + 0x59c], eax
je 0x140030773
mov r10d, dword [r12 + 0x10]
mov byte [rsp + 0x600], 0x80
mov dword [r12 + 0x10], r9d
bswap r10d
mov dword [rsp + 0x61c], eax
mov dword [rsp + 0x5e0], r10d
mov r10d, dword [r12 + 0x30]
mov dword [r12 + 0x30], r8d
bswap r10d
mov dword [rsp + 0x5e4], r10d
mov r10d, dword [r12 + 0x50]
mov dword [r12 + 0x50], ecx
bswap r10d
mov dword [rsp + 0x5e8], r10d
mov r10d, dword [r12 + 0x70]
mov dword [r12 + 0x70], edx
bswap r10d
mov dword [rsp + 0x5ec], r10d
mov r10d, dword [r12 + 0x90]
mov dword [r12 + 0x90], r11d
bswap r10d
mov dword [rsp + 0x5f0], r10d
mov r10d, dword [r12 + 0xb0]
mov dword [r12 + 0xb0], ebx
bswap r10d
mov dword [rsp + 0x5f4], r10d
mov r10d, dword [r12 + 0xd0]
mov dword [r12 + 0xd0], esi
bswap r10d
mov dword [rsp + 0x5f8], r10d
mov r10d, dword [r12 + 0xf0]
mov dword [r12 + 0xf0], edi
bswap r10d
mov dword [rsp + 0x5fc], r10d
mov r10d, dword [r12 + 0x14]
mov dword [r12 + 0x14], r9d
bswap r10d
mov dword [rsp + 0x660], r10d
mov r10d, dword [r12 + 0x34]
mov dword [r12 + 0x34], r8d
bswap r10d
mov dword [rsp + 0x664], r10d
mov r10d, dword [r12 + 0x54]
mov dword [r12 + 0x54], ecx
bswap r10d
mov byte [rsp + 0x680], 0x80
mov dword [rsp + 0x668], r10d
mov r10d, dword [r12 + 0x74]
mov dword [rsp + 0x69c], eax
mov dword [r12 + 0x74], edx
bswap r10d
mov dword [rsp + 0x66c], r10d
mov r10d, dword [r12 + 0x94]
mov dword [r12 + 0x94], r11d
bswap r10d
mov dword [rsp + 0x670], r10d
mov r10d, dword [r12 + 0xb4]
mov dword [r12 + 0xb4], ebx
bswap r10d
mov dword [rsp + 0x674], r10d
mov r10d, dword [r12 + 0xd4]
mov dword [r12 + 0xd4], esi
bswap r10d
mov dword [rsp + 0x678], r10d
mov r10d, dword [r12 + 0xf4]
mov dword [r12 + 0xf4], edi
bswap r10d
mov dword [rsp + 0x67c], r10d
mov r10d, dword [r12 + 0x18]
mov dword [r12 + 0x18], r9d
bswap r10d
mov dword [rsp + 0x6e0], r10d
mov r10d, dword [r12 + 0x38]
mov dword [r12 + 0x38], r8d
bswap r10d
mov dword [rsp + 0x6e4], r10d
mov r10d, dword [r12 + 0x58]
mov dword [r12 + 0x58], ecx
bswap r10d
mov dword [rsp + 0x6e8], r10d
mov r10d, dword [r12 + 0x78]
mov dword [r12 + 0x78], edx
bswap r10d
mov dword [rsp + 0x6ec], r10d
mov r10d, dword [r12 + 0x98]
mov dword [r12 + 0x98], r11d
bswap r10d
mov byte [rsp + 0x700], 0x80
mov dword [rsp + 0x6f0], r10d
mov r10d, dword [r12 + 0xb8]
mov dword [rsp + 0x71c], eax
bswap r10d
mov dword [r12 + 0xb8], ebx
mov dword [rsp + 0x6f4], r10d
mov r10d, dword [r12 + 0xd8]
mov dword [r12 + 0xd8], esi
bswap r10d
mov dword [rsp + 0x6f8], r10d
mov r10d, dword [r12 + 0xf8]
mov dword [r12 + 0xf8], edi
bswap r10d
mov dword [rsp + 0x6fc], 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 + 0x760], 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 + 0x764], r9d
bswap edx
mov dword [r12 + 0x9c], r11d
mov dword [rsp + 0x770], edx
mov edx, dword [r12 + 0xbc]
bswap r8d
bswap edx
mov dword [rsp + 0x768], r8d
mov dword [rsp + 0x774], edx
mov dword [r12 + 0xbc], ebx
bswap ecx
mov dword [rsp + 0x76c], ecx
mov edx, dword [r12 + 0xdc]
mov dword [r12 + 0xdc], esi
bswap edx
mov byte [rsp + 0x780], 0x80
mov dword [rsp + 0x778], edx
mov edx, dword [r12 + 0xfc]
mov dword [rsp + 0x79c], eax
bswap edx
mov dword [r12 + 0xfc], edi
mov dword [rsp + 0x77c], edx
mov dword [rsp + 0x108], 1
cmp dword [rsp + 0x24], 4
mov dword [rsp + 0x118], 1
mov dword [rsp + 0x128], 1
mov dword [rsp + 0x138], 1
je 0x1400307d2
mov dword [rsp + 0x148], 1
mov dword [rsp + 0x158], 1
mov dword [rsp + 0x168], 1
mov dword [rsp + 0x178], 1
mov rax, qword [rsp + 0x60]
cmp dword [rsp + 0x24], 4
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x460]
mov qword [rsp + 0x110], rax
lea rax, [rsp + 0x4e0]
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0x560]
mov qword [rsp + 0x130], rax
je 0x140030856
lea rax, [rsp + 0x5e0]
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x660]
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x6e0]
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x760]
mov qword [rsp + 0x170], rax
mov r8d, dword [rsp + 0x860]
mov rcx, r12
mov rbx, r12
xor edi, edi
mov rdx, qword [rsp + 0x30]
xor r13d, r13d
call fcn.140232400
mov eax, 1
sub eax, dword [rsp + 0x3c]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x30], eax
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x848]
jmp 0x14003091c
test r11b, 4
jne 0x140030a0b
test r11d, r11d
je 0x1400308bc
and ecx, 2
mov byte [rax + 0x20], r9b
jne 0x140030a19
mov eax, dword [rsp + 0x30]
add edx, r8d
add r11, r14
add edi, 1
add rsi, 0x28
add rbx, 4
add eax, edx
shr eax, 4
mov dword [rsi - 0x18], eax
movzx eax, byte [rbp + 0x308]
mov byte [r12], al
movzx eax, byte [rbp + 0x309]
mov byte [r12 + 1], al
movzx eax, byte [rbp + 0x30a]
mov byte [r12 + 2], al
lea eax, [rdx + 0x11]
rol ax, 8
mov word [r12 + 3], ax
lea eax, [rdx + 0x16]
add r13, rax
cmp dword [rsp + 0x24], edi
je 0x14002fad8
mov r12, r11
cmp edi, dword [rsp + 0x38]
mov r15d, dword [rsp + 0x28]
cmove r15d, dword [rsp + 0x2c]
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi]
mov r8d, r15d
sub r8d, dword [rsp + 0x3c]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi + 8]
lea r8d, [r15 + 0x20]
mov edx, dword [rbx]
bswap edx
mov qword [rsi], rax
lea eax, [r15 + 0x15]
movabs r15, 0x101010101010101
add rax, r12
mov dword [rax], edx
mov edx, dword [rbx + 0x20]
lea r14, [rax + 0x20]
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, dword [rbx + 0xa0]
bswap edx
mov dword [rax + 0x14], edx
mov edx, dword [rbx + 0xc0]
bswap edx
mov dword [rax + 0x18], edx
mov edx, dword [rbx + 0xe0]
bswap edx
mov dword [rax + 0x1c], edx
mov edx, r8d
not edx
and edx, 0xf
lea r11d, [rdx + 1]
movzx r9d, dl
imul r9, r15
mov rcx, r11
cmp r11d, 8
jb 0x1400308a0
mov qword [rax + 0x20], r9
add rax, 0x28
mov r10, r14
and rax, 0xfffffffffffffff8
mov qword [r14 + r11 - 8], r9
sub r10, rax
add ecx, r10d
and ecx, 0xfffffff8
cmp ecx, 8
jb 0x1400308bc
and ecx, 0xfffffff8
xor r10d, r10d
mov r15d, r10d
add r10d, 8
mov qword [rax + r15], r9
cmp r10d, ecx
jb 0x1400309f6
jmp 0x1400308bc
mov dword [rax + 0x20], r9d
mov dword [r14 + r11 - 4], r9d
jmp 0x1400308bc
mov word [r14 + r11 - 2], r9w
jmp 0x1400308bc
mov r11, qword [rbp + 0x300]
mov edx, dword [rsp + 0x24]
mov qword [rsp + 0x3e0], r11
bswap r11
test edx, edx
jne 0x14002f7dd
lea rax, [rsp + 0x100]
mov r8d, dword [rsp + 0x860]
mov rcx, r12
mov rdx, rax
mov qword [rsp + 0x30], rax
call fcn.140232400
cmp dword [rsp + 0x6c], 0x83f
jbe 0x140030a7e
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
jmp 0x14002fcab
mov r8d, dword [rsp + 0x860]
mov rcx, r12
lea rdx, [rsp + 0x80]
call fcn.140232400
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosq qword [rdi], rax
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x50], rax
mov rbx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x860]
mov rcx, r12
xor r13d, r13d
mov rdx, rbx
call fcn.140232400
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rdx, rbx
mov ecx, pe_nt_image_headers64
mov r8d, dword [rsp + 0x860]
rep stosq qword [rdi], rax
mov rcx, r12
call fcn.140232400
jmp 0x14002fadd