Function at 0x402dbe
Capabilities:
Copy file
Create directory
Delete file

Disassembly:
mov eax, 0x41b418
call fcn.004086bc
sub esp, 0x268
mov eax, dword [0x422a90]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x50]
call fcn.004016cf
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.00407297
mov eax, dword [0x422a90]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x18]
mov byte [ebp - 4], 5
cmp eax, 7
jne 0x402e24
cmp dword [ebp + 8], 0x65
jne 0x402e1d
push str.VISTA64
jmp 0x402e67
push str.VISTA32
jmp 0x402e67
cmp eax, 4
je 0x402e33
cmp eax, 5
je 0x402e33
cmp eax, 6
jne 0x402e3a
push str.2000
jmp 0x402e67
cmp eax, 1
jne 0x402e46
push 0x4222ec
jmp 0x402e67
test eax, eax
jne 0x402e51
push 0x422410
jmp 0x402e67
cmp eax, 2
jne 0x402e5d
push 0x42240c
jmp 0x402e67
cmp eax, 3
jne 0x402e6f
push 0x422408
lea ecx, [ebp - 0x14]
call fcn.00413cf0
mov ebx, str.Setup.dat
lea ecx, [ebp - 0x14]
push ebx
call fcn.00413e69
mov eax, dword [esi + 0x40]
lea edi, [esi + 0x40]
push 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040735a
test eax, eax
jne 0x402ed9
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402ed9
mov eax, dword [0x4260c0]
lea ecx, [ebp - 0x170]
push 0x104
push ecx
push 0x1e
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x170]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00413cf0
lea eax, [ebp - 0x1c]
push eax
call fcn.00402444
pop ecx
jmp 0x40300b
push str.Setuptemp.dat
lea eax, [ebp + 8]
push edi
push eax
call fcn.00413d96
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00413ca0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00413bf7
push ebx
lea eax, [ebp + 8]
push edi
push eax
call fcn.00413d96
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00413ca0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00413bf7
lea eax, [esi + 0x24]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004037ef
test eax, eax
je 0x40300b
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.0041396c
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00401f20
mov edi, eax
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov byte [ebp - 4], 8
call fcn.0041396c
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00401f20
mov edi, dword [edi]
mov eax, dword [eax]
push edi
push eax
call fcn.00408a54
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp + 8]
setne bl
call fcn.00413bf7
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00413bf7
test bl, bl
je 0x40300b
push 0
mov byte [ebp - 4], 9
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp - 0x18]
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403004
mov eax, dword [0x4260c0]
lea ecx, [ebp - 0x170]
push 0x104
push ecx
push 0x26
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push dword [ebp - 0x18]
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00413217
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.00402444
pop ecx
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00413bf7
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.004072d4
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004016fe
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00413bf7
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00413bf7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00413bf7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4