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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24f0
call fcn.00411720
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00401046
mov ebx, 0x423eb8
mov esi, eax
push ebx
push 0xfffffffffffffffe
push dword [0x41b580]
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 0x4085b2
cmp dword [esi + 0x2468], 0
je 0x4089fb
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 0x4230e0
push dword [0x41b584]
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 0x408705
cmp dword [ebp - 8], edi
jl 0x408703
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x40867e
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x4f0]
push eax
call fcn.00408a05
test eax, eax
jne 0x40875b
jmp 0x408908
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x4086a9
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x4f0]
push eax
call fcn.00408a05
test eax, eax
jne 0x4086f8
jmp 0x408908
lea ecx, [ebp - 0x20f0]
push ecx
push edi
push edi
push dword [ebp - 8]
push edi
call eax
test eax, eax
jl 0x40868e
lea eax, [ebp - 0x8f0]
push eax
lea eax, [ebp - 0x20f0]
push eax
lea eax, [ebp - 0xcf0]
push eax
call fcn.0040c475
lea eax, [ebp - 0xcf0]
push eax
call fcn.0040c520
push dword [ebp + 8]
lea eax, [ebp - 0xcf0]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.0040c475
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40875b
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x408729
add ecx, 0x246c
lea eax, [ebp - 0x8f0]
push ecx
push eax
call edi
lea eax, [ebp - 0x8f0]
push eax
call fcn.0040c3f1
lea eax, [ebp - 0x8f0]
push eax
call fcn.0040c520
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.0040c475
lea eax, [ebp - 0x4f0]
push eax
push dword [ebp + 0xc]
call fcn.00411650
pop ecx
test eax, eax
pop ecx
je 0x4089ea
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.0040be05
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x40890f
push 1
lea eax, [ebp - 0x4f0]
pop edi
push eax
call fcn.0040c5ad
test eax, eax
je 0x408824
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.0040cda2
add esp, 0x14
lea eax, [ebp - 0x28]
push 0x24
push eax
lea eax, [ebp - 0x1cf0]
push eax
push dword [0x423eac]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4088ee
lea eax, [ebp - 0x4f0]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4088e2
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.0040be05
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 0x41f3f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0xc]
lea eax, [ebp - 0x8c]
push eax
call fcn.0040bd16
pop ecx
lea eax, [ebp - 0x4f0]
pop ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
call fcn.00408a05
test eax, eax
je 0x408908
jmp 0x4087bf
mov dword [ebp - 8], 1
jmp 0x4087bf
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x4f0]
push eax
call fcn.00408a05
test eax, eax
jne 0x4087bf
xor eax, eax
jmp 0x4089fe
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1010], 1
jbe 0x4089ea
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 [0x4244d4]
call fcn.0041239c
push dword [0x41f980]
lea eax, [ebp - 0x10f0]
push eax
call fcn.00410fc0
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 0x4230e4
push eax
call fcn.0040c475
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.0040c2c6
lea eax, [ebp - 0x10f0]
push eax
lea eax, [ebp - 0xcf0]
push eax
lea eax, [ebp - 0x14f0]
push eax
call fcn.0040c475
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.00410fb0
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8