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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3980
call fcn.004176a0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00401046
push 0x42db88
push 0xfffffffffffffffe
push dword [0x4235f0]
mov esi, eax
mov dword [ebp - 0xc], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jge 0x40ad4d
cmp dword [esi + 0x2504], ebx
je 0x40b2ee
mov esi, 0xff
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0xd7f]
mov byte [ebp - 0xd80], bl
mov byte [ebp - 0x980], bl
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]
mov byte [ebp - 0x2580], bl
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]
mov byte [ebp - 0x580], bl
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 0x42db88
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xd80]
push 0x400
push eax
push 0x42bab0
push dword [0x4235f4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x2504]
cmp eax, ebx
jne 0x40aec2
cmp dword [ebp - 8], ebx
jl 0x40aec0
push str.SHFolder.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40ae17
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040b2f8
test eax, eax
jne 0x40af18
xor eax, eax
jmp 0x40b2f1
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40ae3a
lea ecx, [ebp - 0x2580]
push ecx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call eax
test eax, eax
jge 0x40ae52
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040b2f8
test eax, eax
jne 0x40aeb7
jmp 0x40ae10
lea eax, [ebp - 0xd80]
push eax
lea eax, [ebp - 0x2580]
push eax
lea eax, [ebp - 0x980]
push eax
call fcn.0041200c
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
call fcn.0040ac23
pop ecx
test al, al
pop ecx
je 0x40ae95
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x980]
push eax
call fcn.0041200c
lea eax, [ebp - 0x980]
push eax
call fcn.004120b7
push dword [ebp + 8]
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0041200c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40af18
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x40aee6
add ecx, 0x2508
lea eax, [ebp - 0xd80]
push ecx
push eax
call edi
lea eax, [ebp - 0xd80]
push eax
call fcn.00411efa
lea eax, [ebp - 0xd80]
push eax
call fcn.004120b7
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.0041200c
lea eax, [ebp - 0x580]
push eax
push dword [ebp + 0xc]
call fcn.004175d0
pop ecx
test eax, eax
pop ecx
je 0x40b2dd
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1d7f]
mov byte [ebp - 0x1d80], bl
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]
mov byte [ebp - 0x2180], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2180]
push 0x400
push eax
push 0x663
call fcn.004118ea
add esp, 0xc
mov dword [ebp - 8], ebx
push 1
lea eax, [ebp - 0x580]
pop edi
push eax
call fcn.00412144
test eax, eax
je 0x40b03d
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.0040ac23
pop ecx
test al, al
pop ecx
je 0x40afce
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xc]
call fcn.0040ac23
pop ecx
test al, al
pop ecx
je 0x40afce
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40b03b
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x2180]
push eax
lea eax, [ebp - 0x1d80]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.00412988
add esp, 0x14
cmp dword [0x42ea60], ebx
jne 0x40b03b
lea eax, [ebp - 0x28]
push 0x34
push eax
lea eax, [ebp - 0x1d80]
push eax
push dword [0x42d778]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40b03b
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x580]
push eax
call fcn.0040b2f8
test eax, eax
je 0x40ae10
jmp 0x40b0ee
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 0x40b0e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18
mov dword [ebp - 0x10], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xd3]
mov byte [ebp - 0xd4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x18
xor eax, eax
pop ecx
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], bl
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.004118ea
add esp, 0xc
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0x427658
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0x10]
lea eax, [ebp - 0xd4]
push eax
call fcn.0041178f
pop ecx
pop ecx
jmp 0x40b01c
mov dword [ebp - 8], 1
cmp dword [ebp - 8], ebx
je 0x40af77
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10ac], 1
jbe 0x40b1d4
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x117f]
mov byte [ebp - 0x1180], bl
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 [0x42e1a4]
call fcn.0041846c
push dword [0x4281ec]
lea eax, [ebp - 0x1180]
push eax
call fcn.00417030
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x197f]
mov byte [ebp - 0x1980], bl
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 - 0x1980]
push 0x42bab4
push eax
call fcn.0041200c
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x157f]
mov byte [ebp - 0x1580], bl
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 - 0x980]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.00411dcb
lea eax, [ebp - 0x1180]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x1580]
push eax
call fcn.0041200c
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x1580]
push ebx
push eax
lea eax, [ebp - 0x1980]
push eax
call esi
jmp 0x40b1da
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], ebx
je 0x40b2dd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2980]
push eax
call fcn.0041196d
pop ecx
lea eax, [ebp - 0x1980]
pop ecx
push eax
lea eax, [ebp - 0x1580]
push eax
lea eax, [ebp - 0x580]
push eax
call fcn.00411dcb
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1580]
push eax
lea eax, [ebp - 0x1980]
push eax
call fcn.0041200c
lea eax, [ebp - 0x1980]
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1980]
push ebx
push eax
lea eax, [ebp - 0x2980]
push eax
call esi
lea eax, [ebp - 0x3980]
push eax
lea eax, [ebp - 0x3580]
push eax
push dword [ebp + 0xc]
call fcn.00411dcb
push dword [0x4281f0]
lea eax, [ebp - 0x3580]
push eax
lea eax, [ebp - 0x1180]
push eax
call fcn.0041200c
lea eax, [ebp - 0x1180]
push eax
call fcn.00412144
test eax, eax
je 0x40b2dd
push dword [0x4281f0]
lea eax, [ebp - 0x1580]
push eax
lea eax, [ebp - 0x2d80]
push eax
call fcn.0041200c
lea eax, [ebp - 0x2d80]
push ebx
push eax
lea eax, [ebp - 0x1180]
push eax
call esi
push dword [0x4281dc]
lea eax, [ebp - 0x1580]
push eax
lea eax, [ebp - 0x3180]
push eax
call fcn.0041200c
lea eax, [ebp - 0x3180]
push ebx
push eax
push 0x42db88
call esi
lea eax, [ebp - 0x580]
push eax
push dword [ebp + 0xc]
call fcn.00417020
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8