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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2580
call fcn.00414d30
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00401046
mov ebx, 0x42a448
mov esi, eax
push ebx
push 0xfffffffffffffffe
push dword [0x4205ac]
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 0x40a230
cmp dword [esi + 0x24d0], 0
je 0x40a740
and byte [ebp - 0xd80], 0
mov esi, 0xff
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0xd7f]
and byte [ebp - 0x980], 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 - 0x97f]
and byte [ebp - 0x2580], 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 - 0x257f]
and byte [ebp - 0x580], 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 - 0x57f]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x400
lea eax, [ebp - 0xd80]
push ebx
push eax
push 0x428770
push dword [0x4205b0]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x10]
xor edi, edi
mov eax, dword [ecx + 0x24d0]
cmp eax, edi
jne 0x40a3ab
cmp dword [ebp - 8], edi
jl 0x40a3a9
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x40a2fe
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040a74a
test eax, eax
jne 0x40a401
xor eax, eax
jmp 0x40a743
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40a321
lea ecx, [ebp - 0x2580]
push ecx
push edi
push edi
push dword [ebp - 8]
push edi
call eax
test eax, eax
jge 0x40a339
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040a74a
test eax, eax
jne 0x40a39e
jmp 0x40a2f7
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x2580]
push eax
lea eax, [ebp - 0x980]
push eax
call fcn.0040f821
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
call fcn.0040a106
pop ecx
test al, al
pop ecx
je 0x40a37c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x980]
push eax
call fcn.0040f821
lea eax, [ebp - 0x980]
push eax
call fcn.0040f8cc
push dword [ebp + 8]
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040f821
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a401
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x40a3cf
add ecx, 0x24d4
lea eax, [ebp - 0xd80]
push ecx
push eax
call edi
lea eax, [ebp - 0xd80]
push eax
call fcn.0040f79d
lea eax, [ebp - 0xd80]
push eax
call fcn.0040f8cc
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x980]
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040f821
lea eax, [ebp - 0x580]
push eax
push dword [ebp + 0xc]
call fcn.00414c60
pop ecx
test eax, eax
pop ecx
je 0x40a72f
and byte [ebp - 0x2180], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x217f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x1d80], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x1d7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1d80]
push ebx
push eax
push 0x663
call fcn.0040f191
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
and dword [ebp - 8], 0
push 1
lea eax, [ebp - 0x580]
pop edi
push eax
call fcn.0040f959
test eax, eax
je 0x40a4c6
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040a106
pop ecx
test al, al
pop ecx
je 0x40a56b
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
call fcn.0040a106
pop ecx
test al, al
pop ecx
je 0x40a56b
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40a56b
xor edi, edi
lea eax, [ebp - 0x580]
push edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40a5cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
and byte [ebp - 0xd4], 0
push 0x18
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xd3]
rep stosd dword es:[edi], eax
and byte [ebp - 0x138], 0
push 0x18
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x137]
push 0x64
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x138]
push eax
push 0x65b
call fcn.0040f191
add esp, 0xc
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd4]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0x42457c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0xc]
lea eax, [ebp - 0xd4]
push eax
call fcn.0040f036
pop ecx
pop ecx
jmp 0x40a5b3
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x1d80]
push eax
lea eax, [ebp - 0x2180]
push eax
call ebx
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
call fcn.00410188
add esp, 0x14
lea eax, [ebp - 0x28]
push 0x24
push eax
lea eax, [ebp - 0x2180]
push eax
push dword [0x42a438]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40a4c6
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040a74a
test eax, eax
je 0x40a2f7
jmp 0x40a5d6
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x40a465
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1078], 1
jbe 0x40a6bb
and byte [ebp - 0x1180], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x117f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1180]
push 0xa
push eax
push dword [0x42aa64]
call fcn.00415a0c
push dword [0x424f58]
lea eax, [ebp - 0x1180]
push eax
call fcn.004145d0
and byte [ebp - 0x1580], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x157f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x14
stosb byte es:[edi], al
lea eax, [ebp - 0x1180]
push eax
lea eax, [ebp - 0x1580]
push 0x428774
push eax
call fcn.0040f821
and byte [ebp - 0x1980], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x197f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1980]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040f672
lea eax, [ebp - 0x1180]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x1980]
push eax
call fcn.0040f821
lea eax, [ebp - 0x1980]
push eax
lea eax, [ebp - 0x1580]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x40a72f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1180]
push eax
call fcn.0040f214
pop ecx
lea eax, [ebp - 0x1580]
pop ecx
push eax
lea eax, [ebp - 0x1980]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040f672
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1980]
push eax
lea eax, [ebp - 0x1580]
push eax
call fcn.0040f821
lea eax, [ebp - 0x1580]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1580]
push 0
push eax
lea eax, [ebp - 0x1180]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x580]
push eax
push dword [ebp + 0xc]
call fcn.004145c0
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8