Function at 0x406620
Capabilities:
Copy file
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x463610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1a0]
mov edi, ecx
push eax
mov dword [ebp - 0x3a4], edi
mov dword [ebp - 4], 0
call fcn.004064d0
add esp, 4
test eax, eax
je 0x4066bf
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.0040b180
xor edx, edx
mov ecx, 0xc8
div ecx
add esp, 4
mov eax, edx
shl eax, 4
sub eax, edx
lea ecx, [eax*2 + str.Installing]
lea edx, [ebp - 0x58]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x4066a0
mov cl, byte [ebp - 0x58]
sub cl, 0x61
cmp cl, 0x19
ja 0x4066d0
add byte [ebp - 0x58], 0xe0
jmp 0x4066d0
mov edx, dword [str.Data]
mov al, byte [0x457664]
mov dword [ebp - 0x58], edx
mov byte [ebp - 0x54], al
push 0x104
lea ecx, [ebp - 0x160]
push 0
push ecx
call fcn.00436760
add esp, 0xc
push 0x104
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x160]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406701
sub eax, edx
jne 0x40674a
mov eax, dword [str.c:Program_Files]
mov ecx, dword [0x45766c]
mov edx, dword [0x457670]
mov dword [ebp - 0x160], eax
mov eax, dword [0x457674]
mov dword [ebp - 0x15c], ecx
mov cl, byte [0x457678]
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], eax
mov byte [ebp - 0x150], cl
jmp 0x40677b
mov edx, dword [str.Program_Files]
mov eax, dword [0x457680]
mov ecx, dword [0x457684]
mov dword [ebp - 0x15d], edx
mov dx, word [0x457688]
mov dword [ebp - 0x159], eax
mov dword [ebp - 0x155], ecx
mov word [ebp - 0x151], dx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea eax, [ebp - 0x160]
push eax
call esi
lea eax, [ebp - 0x160]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406795
lea ecx, [ebp - 0x58]
push ecx
sub eax, edx
lea edx, [ebp + eax - 0x160]
push 0x45768c
push edx
call fcn.00432a00
add esp, 0xc
push 0
lea eax, [ebp - 0x160]
push eax
call esi
push str.pcTest.ini
lea ecx, [ebp - 0x160]
push ecx
lea edx, [ebp - 0x3a0]
push 0x456658
push edx
call fcn.00432a00
push 0x180
lea eax, [ebp - 0x3a0]
push 0x810a
push eax
call fcn.00446cbe
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
je 0x4068d4
push 3
push 0x45769c
push esi
call fcn.00441137
add esp, 0xc
cmp eax, 3
push esi
jne 0x4068b1
call fcn.004417e8
add esp, 4
lea ecx, [ebp - 0x3a0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4576a0
lea edx, [ebp - 0x160]
push edx
push str._s_s.xml
push edi
call fcn.00432a00
push 0
push edi
call fcn.00432bea
add esp, 0x18
cmp eax, 0xffffffff
jne 0x4068a7
push 0
push str.c:windows_system32perf.ini
call fcn.00432bea
add esp, 8
cmp eax, 0xffffffff
push 0
je 0x406887
push edi
push str.c:windows_system32perf.ini
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
jmp 0x406992
push str.c:windowsdesk.ini
call fcn.00432bea
add esp, 8
cmp eax, 0xffffffff
je 0x4068a7
push 0
push edi
push str.c:windowsdesk.ini
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
jmp 0x406992
call fcn.004417e8
add esp, 4
lea eax, [ebp - 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4068d4
push 0x200
lea ecx, [ebp - 0x3a0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x3a0]
push 0x5c
push edx
call fcn.00433420
add esp, 8
test eax, eax
jne 0x40690e
lea eax, [ebp - 0x3a0]
push 0x2f
push eax
call fcn.00433420
add esp, 8
mov byte [eax], 0
mov eax, dword [0x464a14]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea edx, [ecx*2 + str.Installing]
push edx
lea eax, [ebp - 0x3a0]
push eax
push str._s_s.xml
push 0x104
push edi
call fcn.00432ab6
add esp, 0x14
push 0
push edi
call fcn.00432bea
add esp, 8
cmp eax, 0xffffffff
jne 0x40698d
push 0
push str.c:windows_system32perf.ini
call fcn.00432bea
add esp, 8
cmp eax, 0xffffffff
push 0
je 0x40696d
push edi
push str.c:windows_system32perf.ini
jmp 0x406987
push str.c:windowsdesk.ini
call fcn.00432bea
add esp, 8
cmp eax, 0xffffffff
je 0x40698d
push 0
push edi
push str.c:windowsdesk.ini
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043197e
mov esp, ebp
pop ebp
ret