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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2580
call fcn.00414820
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00401046
mov ebx, 0x4284b0
mov esi, eax
push ebx
push 0xfffffffffffffffe
push dword [0x41f5ac]
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 0x409f11
cmp dword [esi + 0x2468], 0
je 0x40a421
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 0x4276d0
push dword [0x41f5b0]
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 0x40a08c
cmp dword [ebp - 8], edi
jl 0x40a08a
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x409fdf
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040a42b
test eax, eax
jne 0x40a0e2
xor eax, eax
jmp 0x40a424
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40a002
lea ecx, [ebp - 0x2580]
push ecx
push edi
push edi
push dword [ebp - 8]
push edi
call eax
test eax, eax
jge 0x40a01a
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040a42b
test eax, eax
jne 0x40a07f
jmp 0x409fd8
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x2580]
push eax
lea eax, [ebp - 0x980]
push eax
call fcn.0040f30d
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
call fcn.00409de7
pop ecx
test al, al
pop ecx
je 0x40a05d
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x980]
push eax
call fcn.0040f30d
lea eax, [ebp - 0x980]
push eax
call fcn.0040f3b8
push dword [ebp + 8]
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040f30d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40a0e2
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x40a0b0
add ecx, 0x246c
lea eax, [ebp - 0xd80]
push ecx
push eax
call edi
lea eax, [ebp - 0xd80]
push eax
call fcn.0040f289
lea eax, [ebp - 0xd80]
push eax
call fcn.0040f3b8
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.0040f30d
lea eax, [ebp - 0x580]
push eax
push dword [ebp + 0xc]
call fcn.00414750
pop ecx
test eax, eax
pop ecx
je 0x40a410
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.0040ec8f
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.0040f445
test eax, eax
je 0x40a1a7
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.00409de7
pop ecx
test al, al
pop ecx
je 0x40a24c
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
call fcn.00409de7
pop ecx
test al, al
pop ecx
je 0x40a24c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40a24c
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 0x40a2b0
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.0040ec8f
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 0x423510
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0xc]
lea eax, [ebp - 0xd4]
push eax
call fcn.0040eb34
pop ecx
pop ecx
jmp 0x40a294
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.0040fc74
add esp, 0x14
lea eax, [ebp - 0x28]
push 0x24
push eax
lea eax, [ebp - 0x2180]
push eax
push dword [0x42849c]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40a1a7
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040a42b
test eax, eax
je 0x409fd8
jmp 0x40a2b7
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x40a146
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1010], 1
jbe 0x40a39c
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 [0x428acc]
call fcn.004154fc
push dword [0x423f70]
lea eax, [ebp - 0x1180]
push eax
call fcn.004140c0
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 0x4276d4
push eax
call fcn.0040f30d
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.0040f15e
lea eax, [ebp - 0x1180]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x1980]
push eax
call fcn.0040f30d
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 0x40a410
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1180]
push eax
call fcn.0040ed12
pop ecx
lea eax, [ebp - 0x1580]
pop ecx
push eax
lea eax, [ebp - 0x1980]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040f15e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1980]
push eax
lea eax, [ebp - 0x1580]
push eax
call fcn.0040f30d
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.004140b0
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8