Function at 0x40a9c7
Capabilities:
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2580
call fcn.00415f30
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00401046
mov ebx, 0x42ba38
mov esi, eax
push ebx
push 0xfffffffffffffffe
push dword [0x4215f8]
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 0x40aa10
cmp dword [esi + 0x24d0], 0
je 0x40af2e
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 0x429960
push dword [0x4215fc]
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 0x40ab8b
cmp dword [ebp - 8], edi
jl 0x40ab89
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x40aade
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040af38
test eax, eax
jne 0x40abe1
xor eax, eax
jmp 0x40af31
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40ab01
lea ecx, [ebp - 0x2580]
push ecx
push edi
push edi
push dword [ebp - 8]
push edi
call eax
test eax, eax
jge 0x40ab19
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040af38
test eax, eax
jne 0x40ab7e
jmp 0x40aad7
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x2580]
push eax
lea eax, [ebp - 0x980]
push eax
call fcn.004101db
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
call fcn.0040a8e6
pop ecx
test al, al
pop ecx
je 0x40ab5c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x980]
push eax
call fcn.004101db
lea eax, [ebp - 0x980]
push eax
call fcn.00410286
push dword [ebp + 8]
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.004101db
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40abe1
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x40abaf
add ecx, 0x24d4
lea eax, [ebp - 0xd80]
push ecx
push eax
call edi
lea eax, [ebp - 0xd80]
push eax
call fcn.00410157
lea eax, [ebp - 0xd80]
push eax
call fcn.00410286
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.004101db
lea eax, [ebp - 0x580]
push eax
push dword [ebp + 0xc]
call fcn.00415e60
pop ecx
test eax, eax
pop ecx
je 0x40af1d
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.0040fb4b
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.00410313
test eax, eax
je 0x40aca6
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040a8e6
pop ecx
test al, al
pop ecx
je 0x40ad4b
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
call fcn.0040a8e6
pop ecx
test al, al
pop ecx
je 0x40ad4b
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40ad4b
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 0x40adbb
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.0040fb4b
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 0x425650
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0xc]
lea eax, [ebp - 0xd4]
push eax
call fcn.0040f9f0
pop ecx
pop ecx
jmp 0x40ad9f
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.00410b57
add esp, 0x14
cmp dword [0x42c908], edi
jne 0x40aca6
lea eax, [ebp - 0x28]
push 0x34
push eax
lea eax, [ebp - 0x2180]
push eax
push dword [0x42b628]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40aca6
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040af38
test eax, eax
je 0x40aad7
jmp 0x40adc2
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x40ac45
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1078], 1
jbe 0x40aea9
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 [0x42c054]
call fcn.00416c0c
push dword [0x426050]
lea eax, [ebp - 0x1180]
push eax
call fcn.004157d0
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 0x429964
push eax
call fcn.004101db
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.0041002c
lea eax, [ebp - 0x1180]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x1980]
push eax
call fcn.004101db
lea eax, [ebp - 0x1980]
push 0
push eax
lea eax, [ebp - 0x1580]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x40af1d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1180]
push eax
call fcn.0040fbce
pop ecx
lea eax, [ebp - 0x1580]
pop ecx
push eax
lea eax, [ebp - 0x1980]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0041002c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1980]
push eax
lea eax, [ebp - 0x1580]
push eax
call fcn.004101db
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.004157c0
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8