Function at 0x40d970
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x442a81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
mov ebx, dword [esp + 0x448]
push ebp
push esi
push edi
push ebx
push str.PreventErrorApplyingTransforms__s_
mov esi, ecx
push 2
push 0x45a150
mov dword [esp + 0x40], esi
call fcn.004018d0
mov al, byte [0x469cb0]
mov ecx, 0x40
mov byte [esp + 0x24c], al
xor eax, eax
lea edi, [esp + 0x24d]
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x23c]
push ecx
push ebx
mov ecx, esi
stosb byte es:[edi], al
call fcn.0040d5e0
mov dl, byte [0x469cb0]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], dl
mov ebx, dword [0x459aac]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40db78
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.00403f10
mov edi, str.InstallerProducts_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00403d20
test al, al
je 0x40da74
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, str.InstallerProducts_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00403c80
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x23c]
push ecx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x454], esi
call fcn.004037f0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
cmp eax, esi
jne 0x40dab1
mov eax, 0x445318
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push esi
push eax
push 0x80000000
call fcn.00422fcc
test eax, eax
jne 0x40db62
lea edx, [esp + 0x28]
lea eax, [esp + 0x138]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
push ecx
push esi
push str.TRANSFORMS
push edx
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x44], 1
call ebx
test eax, eax
je 0x40db2d
mov edi, 0x469cb0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40db57
mov eax, dword [esp + 0x1c]
cmp eax, esi
jne 0x40db3a
mov eax, 0x445318
lea ecx, [esp + 0x138]
push ecx
push eax
push str.Transform_location_found_in_Classes_Root_s_Value:__s
push 1
push 0x45a150
call fcn.004018d0
add esp, 0x14
mov edx, dword [esp + 0x10]
push edx
call dword [0x459aa0]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x450], 0xffffffff
call fcn.00403f10
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40dd3d
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.00403f10
mov edi, str.SoftwareMicrosoftInstallerProducts_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00403d20
test al, al
je 0x40dbe6
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, str.SoftwareMicrosoftInstallerProducts_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00403c80
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [0x445314]
mov dword [esp + 0x44c], 1
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40dc18
call fcn.00438e35
test esi, esi
jbe 0x40dc5f
mov ecx, dword [esp + 0x20]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x1c]
push ebp
call fcn.00403d20
test al, al
je 0x40dc5f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, esi
lea esi, [esp + 0x23c]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00403c80
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test eax, eax
jne 0x40dc74
mov eax, 0x445318
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push 0x80000001
call fcn.00422fcc
test eax, eax
jne 0x40dd27
lea edx, [esp + 0x2c]
lea eax, [esp + 0x138]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push str.TRANSFORMS
push edx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x40], 1
call ebx
test eax, eax
je 0x40dcf2
mov edi, 0x469cb0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40dd1c
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40dcff
mov eax, 0x445318
lea ecx, [esp + 0x138]
push ecx
push eax
push str.Transform_location_found_in_Current_User_s_Value:__s
push 1
push 0x45a150
call fcn.004018d0
add esp, 0x14
mov edx, dword [esp + 0x10]
push edx
call dword [0x459aa0]
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x450], 0xffffffff
call fcn.00403f10
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40df1e
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.00403f10
mov edi, str..DefaultSoftwareMicrosoftInstallerProducts_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00403d20
test al, al
je 0x40ddad
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, str..DefaultSoftwareMicrosoftInstallerProducts_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x44c], 2
mov esi, ecx
mov ecx, dword [0x445314]
sub ecx, edx
cmp ecx, esi
ja 0x40dde0
call fcn.00438e35
test esi, esi
jbe 0x40de27
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.00403d20
test al, al
je 0x40de27
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x240]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00403c80
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test eax, eax
jne 0x40de3c
mov eax, 0x445318
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push 0x80000003
call fcn.00422fcc
test eax, eax
jne 0x40deef
lea edx, [esp + 0x2c]
lea eax, [esp + 0x138]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push str.TRANSFORMS
push edx
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x40], 1
call ebx
test eax, eax
je 0x40deba
mov edi, 0x469cb0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40dee4
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40dec7
mov eax, 0x445318
lea ecx, [esp + 0x138]
push ecx
push eax
push str.Transform_location_found_in_Users_s_Value:__s
push 1
push 0x45a150
call fcn.004018d0
add esp, 0x14
mov edx, dword [esp + 0x10]
push edx
call dword [0x459aa0]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44c], 0xffffffff
test ecx, ecx
je 0x40df1e
mov al, byte [ecx - 1]
test al, al
je 0x40df14
cmp al, 0xff
je 0x40df14
dec al
mov byte [ecx - 1], al
jmp 0x40df1e
dec ecx
push ecx
call fcn.0043ad4c
add esp, 4
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40e182
lea eax, [esp + 0x138]
push eax
call fcn.00428f82
push eax
call fcn.00429410
mov cl, byte [0x469cb0]
mov edx, eax
mov byte [esp + 0x3c], cl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
test edx, edx
stosb byte es:[edi], al
je 0x40e00c
push 1
push edx
lea edx, [esp + 0x3c]
push edx
push 0
call dword [0x459c48]
lea eax, [esp + 0x34]
test eax, eax
je 0x40dfcc
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40dfcc
cmp byte [esp + ecx + 0x33], 0x5c
je 0x40dfcc
mov edi, 0x44f458
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x138]
push 0x2a
push eax
call fcn.00429dd3
push eax
call fcn.00428f82
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
jmp 0x40e02f
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x469cb0]
lea edi, [esp + 0x341]
mov byte [esp + 0x340], cl
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x340]
push 0
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x3c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edx, eax
test edx, edx
je 0x40e0b4
cmp edx, 0x104
ja 0x40e0b4
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jae 0x40e0b4
lea edi, [esp + 0x340]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x340]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e182
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x3f4]
test eax, eax
je 0x40e204
mov dl, byte [0x469cb0]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x341]
mov byte [esp + 0x340], dl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x344]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.004244d6
lea edx, [esp + 0x34c]
push edx
call fcn.0042267b
mov eax, dword [esi + 0x3f0]
add esp, 0x10
test eax, eax
jne 0x40e133
mov eax, 0x445318
lea ecx, [esp + 0x34]
push ecx
push eax
push str.Attempting_to_copy___s__to___s_
push 1
push 0x45a150
call fcn.004018d0
mov eax, dword [esi + 0x3f0]
add esp, 0x14
test eax, eax
jne 0x40e15c
mov eax, 0x445318
lea edx, [esp + 0x34]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40e1bb
push str.File_successfully_copied.
push 1
push 0x45a150
call fcn.004018d0
add esp, 0xc
mov ecx, dword [esp + 0x454]
push ecx
push str.PreventErrorApplyingTransforms__s_
push 4
push 0x45a150
call fcn.004018d0
add esp, 0x10
mov al, 1
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x440
ret 4
mov eax, dword [esi + 0x3f0]
test eax, eax
jne 0x40e1ca
mov eax, 0x445318
lea ecx, [esp + 0x34]
push ecx
push eax
push str.Failed_to_copy___s__to___s_
push 8
push 0x45a150
call fcn.004018d0
mov edx, dword [esp + 0x468]
add esp, 0x14
push edx
push str.PreventErrorApplyingTransforms__s_
push 4
push 0x45a150
call fcn.004018d0
add esp, 0x10
xor al, al
jmp 0x40e1a0
lea eax, [esp + 0x34]
push eax
push str.Attempting_to_save_the_fake_transform_to___s_
push 1
push 0x45a150
call fcn.004018d0
add esp, 0x10
lea ecx, [esp + 0x34]
push ecx
push 0x14a
mov ecx, esi
call fcn.0040d710
test al, al
je 0x40e23c
push str.Transform_successfully_created.
jmp 0x40e173
lea edx, [esp + 0x34]
push edx
push str.Failed_to_create_the_transform___s_
push 8
push 0x45a150
call fcn.004018d0
mov eax, dword [esp + 0x464]
add esp, 0x10
push eax
push str.PreventErrorApplyingTransforms__s_
push 4
push 0x45a150
call fcn.004018d0
add esp, 0x10
xor al, al
jmp 0x40e1a0