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

Disassembly:
push 0xffffffffffffffff
push 0x42af2d
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.0040f080
mov ebp, eax
call fcn.0040c1c0
push eax
lea ecx, [esp + 0x1c]
call fcn.00420eb4
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.0042104e
mov eax, dword [eax]
lea edx, [esp + 0x364]
push eax
push 0x104
push edx
push 0x43a4b0
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call fcn.00420e46
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.00413c86
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 0x40f923
lea ecx, [esp + 0x58]
push ecx
call fcn.0040bf60
add esp, 4
lea edx, [esp + 0x58]
lea ecx, [esp + 0x1c]
push edx
call fcn.00420eb4
mov eax, dword [0x436dd0]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x470], 3
mov esi, 0x42c97c
mov eax, dword [esi - 4]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.0042104e
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x474], 4
call fcn.00420f33
lea ecx, [esp + 0x28]
mov byte [esp + 0x470], 3
call fcn.00420e46
mov eax, dword [esp + 0x10]
push eax
call ebp
test eax, eax
jne 0x40f999
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040fb90
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call ebp
test eax, eax
je 0x40fb1d
lea eax, [esp + 0x364]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.0042104e
mov ecx, dword [esi - 4]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x47c], 5
call fcn.0042104e
lea ecx, [esp + 0x34]
mov byte [esp + 0x470], 7
call fcn.00420e46
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.0042104e
mov eax, dword [eax]
push 0x103
push eax
lea eax, [esp + 0x164]
push eax
call fcn.00413c86
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00420e46
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.0042104e
mov eax, dword [eax]
push 0x103
lea ecx, [esp + 0x264]
push eax
push ecx
call fcn.00413c86
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00420e46
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 0x40fabd
mov dword [esp + 0x38], ebx
jmp 0x40fac4
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.00420e46
add esi, 8
cmp esi, 0x42c9a4
jl 0x40f94b
lea ecx, [esp + 0x10]
mov byte [esp + 0x470], 2
call fcn.00420e46
lea ecx, [esp + 0x24]
mov byte [esp + 0x470], 1
call fcn.00420e46
lea ecx, [esp + 0x1c]
mov byte [esp + 0x470], bl
call fcn.00420e46
lea ecx, [esp + 0x18]
mov dword [esp + 0x470], 0xffffffff
call fcn.00420e46
mov ecx, dword [esp + 0x468]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x464
ret 4