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.00401665
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]
and byte [ebp - 0x5fc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, 0x81
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x5fb]
rep stosd dword es:[edi], eax
and byte [ebp - 0x2f0], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x2ef]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2f0]
push 0x208
push eax
push 0xfffffffffffffffa
call fcn.00409219
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call ebx
lea eax, [ebp - 0x2f0]
push 0x5c
push eax
call fcn.00406a88
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp + 0xc]
call fcn.0040a004
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
lea eax, [ebp - 0x5fc]
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.00401792
add esp, 0x10
test eax, eax
jne 0x4013a1
push 1
mov dword [ebp - 4], 3
call fcn.00410ff0
pop ecx
push dword [ebp + 0xc]
call fcn.00406708
test eax, eax
pop ecx
je 0x4013c3
push dword [ebp + 0xc]
lea eax, [ebp - 0x2f0]
push eax
call fcn.00406679
pop ecx
test eax, eax
pop ecx
jne 0x4013e3
push 0
lea eax, [ebp - 0x2f0]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push dword [ebp + 0xc]
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.004016ac
lea eax, [ebp - 0xe8]
add esp, 0x24
mov dword [0x41f990], eax
lea eax, [ebp - 0xbc]
push eax
push 0xffffffffffffffff
push fcn.00401b7d
push fcn.00401b26
push fcn.00401aeb
push 0x401abd
push 0x401910
push 0x401905
push 0x4018e3
call fcn.0040a120
add esp, 0x24
mov dword [ebp - 0xc0], eax
test eax, eax
jne 0x401460
mov ax, 6
jmp 0x401660
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xd0]
cmp eax, dword [ebp - 0xcc]
jge 0x4015db
mov eax, dword [ebp - 0xc8]
cmp eax, dword [ebp + 0x14]
jg 0x4015db
push eax
push dword [ebp + 0xc]
call fcn.004016fb
pop ecx
test eax, eax
pop ecx
je 0x4015b6
lea eax, [ebp - 0x2f0]
push 0x208
push eax
push 0xfffffffffffffffa
call fcn.00409219
push eax
call edi
push eax
call ebx
lea eax, [ebp - 0x2f0]
push 0x5c
push eax
call fcn.00406a88
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp + 0xc]
call fcn.0040a004
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.00401792
add esp, 0x10
test eax, eax
jne 0x40151c
push 1
mov dword [ebp - 4], 3
call fcn.00410ff0
pop ecx
push dword [ebp + 0xc]
call fcn.00406708
test eax, eax
pop ecx
je 0x40153e
push dword [ebp + 0xc]
lea eax, [ebp - 0x2f0]
push eax
call fcn.00406679
pop ecx
test eax, eax
pop ecx
jne 0x40155e
push 0
lea eax, [ebp - 0x2f0]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x5c
push dword [ebp + 0x18]
call fcn.00406a88
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x3f4]
push eax
push dword [ebp + 0xc]
call fcn.0040a004
pop ecx
lea eax, [ebp - 0xe8]
pop ecx
push eax
push 0
push section..text
push 0
push dword [ebp + 0x18]
lea eax, [ebp - 0x3f4]
push eax
push dword [ebp - 0xc0]
call fcn.0040a230
add esp, 0x1c
test eax, eax
je 0x4015bf
inc dword [ebp - 0xc8]
jmp 0x401469
mov dword [ebp - 4], 3
jmp 0x4015db
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 0x401639
xor ebx, ebx
cmp dword [ebp - 8], ebx
jle 0x401639
lea eax, [ebp - 0x7fc]
mov dword [ebp + 0xc], eax
cmp ebx, 0x40
jg 0x401639
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40161e
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 0x401621
mov edi, dword [ebp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [ebp + 0xc], 4
inc ebx
cmp ebx, dword [ebp - 8]
lea eax, [edi + eax + 1]
mov dword [ebp + 0x20], eax
jl 0x4015f2
push dword [ebp - 0xc0]
call fcn.0040a1c0
mov eax, dword [0x41f990]
pop ecx
mov eax, dword [eax + 0xdc]
cmp eax, 0xffffffff
je 0x40165c
push eax
call fcn.00401b26
pop ecx
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret