Function at 0x4017a1
Capabilities:
Create directory
Create process on windows
Delete directory
Delete file
Enumerate files on windows
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ac
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x64ead0
push edi
push esi
push 0x100
mov dword [0x64ebd4], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
ja 0x4017d7
push str._temp_
push esi
call fcn.00402bf0
pop ecx
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call fcn.00402db0
mov ebx, eax
pop ecx
add ebx, esi
cmp byte [ebx - 1], 0x5c
je 0x4017f5
mov byte [ebx], 0x5c
inc ebx
push 0
call fcn.004031f8
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebx + 8]
push str..tmp_
push eax
call fcn.00402bf0
pop ecx
pop ecx
push 7
pop ecx
mov eax, edi
and eax, 0xf
cmp eax, 0xa
jae 0x401829
add eax, 0x30
jmp 0x40182c
add eax, 0x37
mov byte [ecx + ebx], al
shr edi, 4
dec ecx
jns 0x40181a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4017f5
lea eax, [ebp - 0x26b]
push esi
push eax
mov byte [ebp - 0x26c], 0x22
call fcn.00402bf0
lea eax, [ebp - 0x26c]
push eax
call fcn.00402db0
add esp, 0xc
xor edi, edi
lea ebx, [ebp + eax - 0x26c]
push edi
push 0x401630
push edi
push 0x67
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x64ebd8], edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
jne 0x4018bb
lea eax, [ebp - 0x36c]
push 0x100
push eax
push 5
push dword [0x64ebd4]
call edi
push 0x10
lea eax, [ebp - 0x36c]
push dword [0x64c030]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [0x64ebd8], 0
jle 0x401aee
and dword [ebp - 4], 0
push 0x44
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.004031a0
add esp, 0xc
xor eax, eax
cmp dword [ebp - 4], eax
mov dword [ebp - 0x6c], 0x44
push 1
mov dword [ebp - 0x68], eax
pop ecx
mov dword [ebp - 0x38], eax
mov word [ebp - 0x3a], ax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x40], ecx
mov word [ebp - 0x3c], cx
je 0x401908
push str.FeurioI.exe__COPDLL
jmp 0x40190d
push str.Install.exe__COPDLL
push ebx
call fcn.00402bf0
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp + 8], 0xe0000000
push eax
lea eax, [ebp - 0x6c]
push eax
xor eax, eax
push esi
push eax
push 0x4000000
push eax
push eax
lea ecx, [ebp - 0x26c]
push eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401980
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40196e
mov dword [ebp + 8], 0xe0000001
cmp dword [ebp + 8], 0x103
je 0x40194b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 2
je 0x401aee
and byte [ebx + 0xb], 0
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.00402bf0
cmp dword [ebp - 4], 0
pop ecx
pop ecx
jne 0x4019dd
push 0xb
push str.FeurioI.exe
push ebx
mov dword [ebp - 4], 1
call fcn.00402e60
add esp, 0xc
lea eax, [ebp - 0x26b]
push eax
lea eax, [ebp - 0x8ab]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov byte [ebx + 0xb], 0x22
jmp 0x4018cc
push 0xb
push str.Install.exe
push ebx
call fcn.00402e60
add esp, 0xc
lea eax, [ebp - 0x26b]
push eax
lea eax, [ebp - 0x8ab]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x8ac]
push 0x400
push eax
push 6
push dword [0x64ebd4]
call edi
mov esi, 0x64c070
lea eax, [ebp - 0x8ac]
push esi
push eax
call fcn.00402c00
and byte [ebx + 0xb], 0
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.00402c00
add esp, 0x10
lea eax, [ebp - 0x36c]
push 0x100
push eax
push 7
push dword [0x64ebd4]
call edi
lea eax, [ebp - 0x8ac]
push esi
push eax
call fcn.00402c00
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.00402c00
lea eax, [ebp - 0x8ac]
push esi
push eax
call fcn.00402c00
mov eax, dword [ebp + 8]
and byte [ebp - 0x1e], 0
add esp, 0x18
lea ecx, [ebp - 0x1f]
test eax, eax
mov byte [ebp - 0x1f], 0x29
mov esi, eax
jge 0x401aa1
neg eax
mov esi, eax
test esi, esi
jg 0x401aac
lea eax, [ebp - 0x14]
cmp eax, ecx
jne 0x401ac3
mov eax, esi
push 0xa
cdq
pop edi
dec ecx
idiv edi
mov eax, esi
push edi
pop esi
add dl, 0x30
mov byte [ecx], dl
cdq
idiv esi
jmp 0x401a9f
lea eax, [ebp - 0x8ac]
push ecx
push eax
call fcn.00402c00
pop ecx
lea eax, [ebp - 0x8ac]
pop ecx
push 0x10
push dword [0x64c030]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, 0x64ead0
push 0x64c06c
push ebx
call fcn.00402bf0
pop ecx
lea eax, [ebp - 0x4ac]
pop ecx
push eax
lea eax, [ebp - 0x26b]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x401b58
cmp edi, 0xffffffff
je 0x401b58
test byte [ebp - 0x4ac], 0x10
jne 0x401b3f
lea eax, [ebp - 0x480]
push eax
push ebx
call fcn.00402bf0
pop ecx
lea eax, [ebp - 0x26b]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x4ac]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401b1a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10