Function at 0x40f8a0
Capabilities:
Delete directory
Delete file
Move file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42a0ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], ecx
call fcn.0040f110
mov ebp, eax
call fcn.0040c240
push eax
lea ecx, [esp + 0x1c]
call fcn.00420085
lea eax, [esp + 0x18]
push str.setup.cfg
lea ecx, [esp + 0x18]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x47c], ebx
call fcn.0042021f
mov eax, dword [eax]
lea edx, [esp + 0x364]
push eax
push 0x104
push edx
push 0x437490
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call fcn.00420017
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x103
sub eax, ecx
lea ecx, [esp + 0x58]
push eax
lea eax, [esp + 0x368]
push eax
push ecx
call fcn.00413b18
add esp, 0xc
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
lea eax, [esp + 0x58]
push eax
call ebp
test eax, eax
je 0x40f9b3
lea ecx, [esp + 0x58]
push ecx
call fcn.0040bfe0
add esp, 4
lea edx, [esp + 0x58]
lea ecx, [esp + 0x1c]
push edx
call fcn.00420085
mov eax, dword [0x435dd0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x470], 3
mov esi, 0x42b974
mov eax, dword [esi - 4]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.0042021f
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x474], 4
call fcn.00420104
lea ecx, [esp + 0x28]
mov byte [esp + 0x470], 3
call fcn.00420017
mov eax, dword [esp + 0x10]
push eax
call ebp
test eax, eax
jne 0x40fa29
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040fc20
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call ebp
test eax, eax
je 0x40fbad
lea eax, [esp + 0x364]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.0042021f
mov ecx, dword [esi - 4]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x47c], 5
call fcn.0042021f
lea ecx, [esp + 0x34]
mov byte [esp + 0x470], 7
call fcn.00420017
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15d]
mov byte [esp + 0x15c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.0042021f
mov eax, dword [eax]
push 0x103
push eax
lea eax, [esp + 0x164]
push eax
call fcn.00413b18
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00420017
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x260], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x261]
lea edx, [esp + 0x10]
mov byte [esp + ecx + 0x15d], bl
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
stosw word es:[edi], ax
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.0042021f
mov eax, dword [eax]
push 0x103
lea ecx, [esp + 0x264]
push eax
push ecx
call fcn.00413b18
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00420017
lea edi, [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x2c]
not ecx
dec ecx
cmp eax, ebx
mov byte [esp + ecx + 0x261], bl
jne 0x40fb4d
mov dword [esp + 0x38], ebx
jmp 0x40fb54
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
lea eax, [esp + 0x15c]
push edx
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov word [esp + 0x4c], 0x614
mov dword [esp + 0x4e], ebx
mov dword [esp + 0x52], ebx
mov dword [esp + 0x56], str.Moving_files
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x470], 3
call fcn.00420017
add esi, 8
cmp esi, 0x42b99c
jl 0x40f9db
lea ecx, [esp + 0x10]
mov byte [esp + 0x470], 2
call fcn.00420017
lea ecx, [esp + 0x24]
mov byte [esp + 0x470], 1
call fcn.00420017
lea ecx, [esp + 0x1c]
mov byte [esp + 0x470], bl
call fcn.00420017
lea ecx, [esp + 0x18]
mov dword [esp + 0x470], 0xffffffff
call fcn.00420017
mov ecx, dword [esp + 0x468]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x464
ret 4