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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2580
call fcn.00412fd0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.00401046
mov ebx, 0x426180
mov esi, eax
push ebx
push 0xfffffffffffffffe
push dword [0x41d5a8]
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jge 0x4092d0
cmp dword [esi + 0x2468], 0
je 0x409749
and byte [ebp - 0x980], 0
mov esi, 0xff
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x97f]
and byte [ebp - 0xd80], 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 - 0xd7f]
and byte [ebp - 0x2180], 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 - 0x217f]
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 - 0x980]
push ebx
push eax
push 0x4253a0
push dword [0x41d5ac]
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 0x409422
cmp dword [ebp - 4], edi
jl 0x409420
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x40939e
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x580]
push eax
call fcn.00409753
test eax, eax
jne 0x409478
xor eax, eax
jmp 0x40974c
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4093c1
lea ecx, [ebp - 0x2180]
push ecx
push edi
push edi
push dword [ebp - 4]
push edi
call eax
test eax, eax
jge 0x4093d9
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x580]
push eax
call fcn.00409753
test eax, eax
jne 0x409415
jmp 0x409397
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x2180]
push eax
lea eax, [ebp - 0xd80]
push eax
call fcn.0040dae4
lea eax, [ebp - 0xd80]
push eax
call fcn.0040db8f
push dword [ebp + 8]
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040dae4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x409478
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x409446
add ecx, 0x246c
lea eax, [ebp - 0x980]
push ecx
push eax
call edi
lea eax, [ebp - 0x980]
push eax
call fcn.0040da60
lea eax, [ebp - 0x980]
push eax
call fcn.0040db8f
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0xd80]
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040dae4
lea eax, [ebp - 0x580]
push eax
push dword [ebp + 0xc]
call fcn.00412f00
pop ecx
test eax, eax
pop ecx
je 0x409738
and byte [ebp - 0x1d80], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1d7f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x1980], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
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 ebx
push eax
push 0x663
call fcn.0040d474
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x580]
pop edi
push eax
call fcn.0040dc1c
test eax, eax
je 0x409543
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.004091a6
pop ecx
test al, al
pop ecx
je 0x4095e8
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 0xc]
call fcn.004091a6
pop ecx
test al, al
pop ecx
je 0x4095e8
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4095e8
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 0x40964c
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.0040d474
add esp, 0xc
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x8c]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x8c]
push 0x421500
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0xc]
lea eax, [ebp - 0x8c]
push eax
call fcn.0040d319
pop ecx
pop ecx
jmp 0x409630
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x1980]
push eax
lea eax, [ebp - 0x1d80]
push eax
call ebx
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
call fcn.0040e41d
add esp, 0x14
lea eax, [ebp - 0x28]
push 0x24
push eax
lea eax, [ebp - 0x1d80]
push eax
push dword [0x42616c]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x409543
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x580]
push eax
call fcn.00409753
test eax, eax
je 0x409397
jmp 0x409653
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x4094dc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1010], 1
jbe 0x409738
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 [0x42679c]
call fcn.00413cac
push dword [0x421c38]
lea eax, [ebp - 0x1180]
push eax
call fcn.00412870
and byte [ebp - 0x2580], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x257f]
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 - 0x2580]
push 0x4253a4
push eax
call fcn.0040dae4
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
stosb byte es:[edi], al
lea eax, [ebp - 0x1580]
push eax
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040d935
lea eax, [ebp - 0x1180]
push eax
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x1580]
push eax
call fcn.0040dae4
lea eax, [ebp - 0x1580]
push eax
lea eax, [ebp - 0x2580]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x580]
push eax
push dword [ebp + 0xc]
call fcn.00412860
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8