Function at 0x401ca0
Capabilities:
Copy file
Create directory
Get common file path
Set file attributes

Disassembly:
sub esp, 0x900
lea eax, [esp + 0x800]
push ebx
push ebp
push esi
push edi
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x210]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [esp + 0x918]
push str.AsIoUnins.exe
push esi
lea edx, [esp + 0x418]
push str._s_s
push edx
call fcn.00402b0b
lea eax, [esp + 0x220]
push str.AsIoUnins.exe
push eax
lea ecx, [esp + 0x628]
push str._s_s
push ecx
call fcn.00402b0b
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x20
lea edx, [esp + 0x410]
push 0x80
push edx
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x410]
push 0
lea ecx, [esp + 0x614]
push eax
push ecx
call ebx
test eax, eax
jne 0x401d88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x401d7b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x41775c
call edi
push 0
push esi
call edi
lea edx, [esp + 0x410]
push 0
lea eax, [esp + 0x614]
push edx
push eax
call ebx
test eax, eax
jne 0x401d88
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x900
ret
mov eax, dword [esp + 0x914]
test eax, eax
je 0x401e30
mov eax, dword [0x41785c]
lea edx, [esp + 0x110]
test eax, eax
je 0x401dd7
mov edi, str._syswow64
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x510]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AsIo64.sys
jmp 0x401e05
mov edi, str._system32
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x510]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AsIo32.sys
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x710]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AsIO.sys
jmp 0x401e8e
mov edi, str._system
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x510]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AsIO.vxd
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x710]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AsIO.vxd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x810]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x710]
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_sdrivers_s
push ecx
call esi
lea edx, [esp + 0x524]
lea eax, [esp + 0x224]
push edx
push eax
lea ecx, [esp + 0x32c]
push str._s_s
push ecx
call esi
add esp, 0x24
lea edx, [esp + 0x10]
push 0x80
push edx
call ebp
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x314]
push eax
push ecx
call ebx
mov edi, eax
lea edx, [esp + 0x110]
push str.AsIO.dll
lea eax, [esp + 0x814]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s_s
push ecx
call esi
lea edx, [esp + 0x224]
push str.AsIO.dll
push edx
lea eax, [esp + 0x32c]
push str._s_s
push eax
call esi
add esp, 0x24
lea ecx, [esp + 0x10]
push 0x80
push ecx
call ebp
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x314]
push edx
push eax
call ebx
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x900
ret