Function at 0x40882b
Capabilities:
Copy file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24f0
call fcn.00411da0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00401046
mov ebx, 0x424f58
mov esi, eax
push ebx
push 0xfffffffffffffffe
push dword [0x41c584]
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jge 0x408874
cmp dword [esi + 0x2468], 0
je 0x408cbd
and byte [ebp - 0x8f0], 0
mov esi, 0xff
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x8ef]
and byte [ebp - 0xcf0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0xcef]
and byte [ebp - 0x20f0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x20ef]
and byte [ebp - 0x4f0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x4ef]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x400
lea eax, [ebp - 0x8f0]
push ebx
push eax
push 0x424180
push dword [0x41c588]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x10]
xor edi, edi
mov eax, dword [ecx + 0x2468]
cmp eax, edi
jne 0x4089c7
cmp dword [ebp - 8], edi
jl 0x4089c5
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x408940
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x4f0]
push eax
call fcn.00408cc7
test eax, eax
jne 0x408a1d
jmp 0x408bca
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x40896b
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x4f0]
push eax
call fcn.00408cc7
test eax, eax
jne 0x4089ba
jmp 0x408bca
lea ecx, [ebp - 0x20f0]
push ecx
push edi
push edi
push dword [ebp - 8]
push edi
call eax
test eax, eax
jl 0x408950
lea eax, [ebp - 0x8f0]
push eax
lea eax, [ebp - 0x20f0]
push eax
lea eax, [ebp - 0xcf0]
push eax
call fcn.0040c9f5
lea eax, [ebp - 0xcf0]
push eax
call fcn.0040caa0
push dword [ebp + 8]
lea eax, [ebp - 0xcf0]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.0040c9f5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x408a1d
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x4089eb
add ecx, 0x246c
lea eax, [ebp - 0x8f0]
push ecx
push eax
call edi
lea eax, [ebp - 0x8f0]
push eax
call fcn.0040c971
lea eax, [ebp - 0x8f0]
push eax
call fcn.0040caa0
lea eax, [ebp - 0x8f0]
push eax
lea eax, [ebp - 0xcf0]
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x8f0]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.0040c9f5
lea eax, [ebp - 0x4f0]
push eax
push dword [ebp + 0xc]
call fcn.00411cd0
pop ecx
test eax, eax
pop ecx
je 0x408cac
and byte [ebp - 0x1cf0], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1cef]
rep stosd dword es:[edi], eax
and byte [ebp - 0x18f0], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x18ef]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18f0]
push ebx
push eax
push 0x663
call fcn.0040c385
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x408bd1
push 1
lea eax, [ebp - 0x4f0]
pop edi
push eax
call fcn.0040cb2d
test eax, eax
je 0x408ae6
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x18f0]
push eax
lea eax, [ebp - 0x1cf0]
push eax
call ebx
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
call fcn.0040d322
add esp, 0x14
lea eax, [ebp - 0x28]
push 0x24
push eax
lea eax, [ebp - 0x1cf0]
push eax
push dword [0x424f4c]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x408bb0
lea eax, [ebp - 0x4f0]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x408ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
and byte [ebp - 0x8c], 0
push 0x18
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x8b]
rep stosd dword es:[edi], eax
and byte [ebp - 0xf0], 0
push 0x18
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xef]
push 0x64
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xf0]
push eax
push 0x65b
call fcn.0040c385
add esp, 0xc
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x8c]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x8c]
push 0x420400
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0xc]
lea eax, [ebp - 0x8c]
push eax
call fcn.0040c296
pop ecx
lea eax, [ebp - 0x4f0]
pop ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
call fcn.00408cc7
test eax, eax
je 0x408bca
jmp 0x408a81
mov dword [ebp - 8], 1
jmp 0x408a81
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x4f0]
push eax
call fcn.00408cc7
test eax, eax
jne 0x408a81
xor eax, eax
jmp 0x408cc0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1010], 1
jbe 0x408cac
and byte [ebp - 0x10f0], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x10ef]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10f0]
push 0xa
push eax
push dword [0x425574]
call fcn.00412a1c
push dword [0x420a18]
lea eax, [ebp - 0x10f0]
push eax
call fcn.00411640
and byte [ebp - 0x24f0], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x24ef]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x14
stosb byte es:[edi], al
lea eax, [ebp - 0x10f0]
push eax
lea eax, [ebp - 0x24f0]
push 0x424184
push eax
call fcn.0040c9f5
and byte [ebp - 0x14f0], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x14ef]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14f0]
push eax
lea eax, [ebp - 0xcf0]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.0040c846
lea eax, [ebp - 0x10f0]
push eax
lea eax, [ebp - 0xcf0]
push eax
lea eax, [ebp - 0x14f0]
push eax
call fcn.0040c9f5
lea eax, [ebp - 0x14f0]
push eax
lea eax, [ebp - 0x24f0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x4f0]
push eax
push dword [ebp + 0xc]
call fcn.00411630
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8