Function at 0x40129d
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7fc
push ebx
push esi
lea eax, [ebp - 0x7fc]
push edi
push eax
mov dword [ebp - 4], 0xe
push dword [ebp + 0x20]
call fcn.00401635
pop ecx
mov dword [ebp - 8], eax
mov al, byte [0x41fcac]
pop ecx
push 0x40
mov byte [ebp - 0x3f4], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x3f3]
mov edx, 0x81
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x5fb]
mov byte [ebp - 0x5fc], bl
mov byte [ebp - 0x2f0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x2ef]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
push edi
call fcn.00406561
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
test eax, eax
jne 0x4013c7
lea eax, [ebp - 0x2f0]
push 0x208
push eax
push 0xfffffffffffffffa
call fcn.00409080
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x2f0]
push 0x5c
push eax
call fcn.004068e1
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x5fc]
push eax
push edi
call fcn.00409e6b
pop ecx
lea eax, [ebp - 0x5fc]
pop ecx
push eax
lea eax, [ebp - 0x2f0]
push eax
call esi
push dword [ebp - 0xc8]
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0xc4]
call fcn.00401762
add esp, 0x10
test eax, eax
jne 0x4013ac
push 1
mov dword [ebp - 4], 3
call fcn.00410e50
pop ecx
push ebx
lea eax, [ebp - 0x2f0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
lea eax, [ebp - 0x7fc]
push dword [ebp - 8]
push eax
lea eax, [ebp - 0xe8]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
call fcn.0040167c
lea eax, [ebp - 0xe8]
add esp, 0x24
mov dword [0x41f990], eax
lea eax, [ebp - 0xbc]
push eax
push 0xffffffffffffffff
push fcn.00401b4d
push fcn.00401af6
push fcn.00401abb
push 0x401a8d
push 0x4018e0
push 0x4018d5
push 0x4018b3
call fcn.00409f80
add esp, 0x24
cmp eax, ebx
mov dword [ebp - 0xc0], eax
jne 0x401444
mov ax, 6
jmp 0x401630
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xd0]
cmp eax, dword [ebp - 0xcc]
jge 0x4015a5
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp + 0x14]
jg 0x4015a5
push eax
push edi
call fcn.004016cb
pop ecx
test eax, eax
pop ecx
je 0x401580
push edi
call fcn.00406561
test eax, eax
pop ecx
jne 0x40152d
lea eax, [ebp - 0x2f0]
push 0x208
push eax
push 0xfffffffffffffffa
call fcn.00409080
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x2f0]
push 0x5c
push eax
call fcn.004068e1
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x5fc]
push eax
push edi
call fcn.00409e6b
pop ecx
lea eax, [ebp - 0x5fc]
pop ecx
push eax
lea eax, [ebp - 0x2f0]
push eax
call esi
push dword [ebp - 0xc8]
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0xc4]
call fcn.00401762
add esp, 0x10
test eax, eax
jne 0x401512
push 1
mov dword [ebp - 4], 3
call fcn.00410e50
pop ecx
push ebx
lea eax, [ebp - 0x2f0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x5c
push dword [ebp + 0x18]
call fcn.004068e1
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x3f4]
push eax
push edi
call fcn.00409e6b
pop ecx
lea eax, [ebp - 0xe8]
pop ecx
push eax
push ebx
push section..text
push ebx
push dword [ebp + 0x18]
lea eax, [ebp - 0x3f4]
push eax
push dword [ebp - 0xc0]
call fcn.0040a090
add esp, 0x1c
test eax, eax
je 0x401589
inc dword [ebp - 0xc8]
jmp 0x40144d
mov dword [ebp - 4], 3
jmp 0x4015a5
mov ax, word [ebp - 0xb0]
movzx ecx, word [ebp - 0xb0]
sub ax, 0xe
neg ax
sbb eax, eax
and eax, ecx
mov dword [ebp - 4], eax
cmp word [ebp - 4], 0xe
jne 0x401609
cmp dword [ebp - 8], ebx
mov dword [ebp + 0x18], ebx
jle 0x401609
lea eax, [ebp - 0x7fc]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x18], 0x40
jg 0x401609
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
jne 0x4015e9
push 0x41c034
push dword [ebp + 0x28]
call esi
mov edi, dword [ebp + 0x20]
lea eax, [edi + 1]
push eax
push dword [ebp + 0x28]
call esi
mov dword [ebp - 4], 3
jmp 0x4015ec
mov edi, dword [ebp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc dword [ebp + 0x18]
add dword [ebp + 0xc], 4
lea eax, [edi + eax + 1]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 8]
jl 0x4015bd
push dword [ebp - 0xc0]
call fcn.0040a020
mov eax, dword [0x41f990]
pop ecx
mov eax, dword [eax + 0xdc]
cmp eax, 0xffffffff
je 0x40162c
push eax
call fcn.00401af6
pop ecx
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret