Function at 0x4012a8
Capabilities:
Copy file
Print debug messages
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x704
push ebx
push esi
lea eax, [ebp - 0x704]
push edi
push eax
mov dword [ebp - 4], 0xe
push dword [ebp + 0x20]
call fcn.0040163c
mov dword [ebp - 8], eax
mov al, byte [0x41fd7c]
mov byte [ebp - 0x14], al
xor eax, eax
lea edi, [ebp - 0x13]
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
mov edx, 0x81
stosb byte es:[edi], al
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x503]
mov byte [ebp - 0x504], bl
mov byte [ebp - 0x2fc], 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 - 0x2fb]
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.00406412
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
test eax, eax
jne 0x4013c9
lea eax, [ebp - 0x2fc]
push 0x208
push eax
push 0xfffffffffffffffa
call fcn.00409319
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x2fc]
push 0x5c
push eax
call fcn.00406796
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x504]
push eax
push edi
call fcn.0040a0d9
pop ecx
lea eax, [ebp - 0x504]
pop ecx
push eax
lea eax, [ebp - 0x2fc]
push eax
call esi
push dword [ebp - 0xd4]
lea eax, [ebp - 0x2fc]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0xd0]
call fcn.00401769
add esp, 0x10
test eax, eax
jne 0x4013ae
push 1
mov dword [ebp - 4], 3
call fcn.004110b0
pop ecx
push ebx
lea eax, [ebp - 0x2fc]
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 - 0x704]
push dword [ebp - 8]
push eax
lea eax, [ebp - 0xf4]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push eax
call fcn.00401683
lea eax, [ebp - 0xf4]
add esp, 0x24
mov dword [0x41fa60], eax
lea eax, [ebp - 0xc8]
push eax
push 0xffffffffffffffff
push fcn.00401b54
push fcn.00401afd
push fcn.00401ac2
push 0x401a94
push 0x4018e7
push 0x4018dc
push 0x4018ba
call fcn.0040a1e0
add esp, 0x24
cmp eax, ebx
mov dword [ebp - 0xcc], eax
jne 0x401446
mov ax, 6
jmp 0x401637
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xdc]
cmp eax, dword [ebp - 0xd8]
jge 0x4015a1
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp + 0x14]
jg 0x4015a1
push eax
push edi
call fcn.004016d2
pop ecx
test eax, eax
pop ecx
je 0x40157c
push edi
call fcn.00406412
test eax, eax
pop ecx
jne 0x40152f
lea eax, [ebp - 0x2fc]
push 0x208
push eax
push 0xfffffffffffffffa
call fcn.00409319
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x2fc]
push 0x5c
push eax
call fcn.00406796
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x504]
push eax
push edi
call fcn.0040a0d9
pop ecx
lea eax, [ebp - 0x504]
pop ecx
push eax
lea eax, [ebp - 0x2fc]
push eax
call esi
push dword [ebp - 0xd4]
lea eax, [ebp - 0x2fc]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0xd0]
call fcn.00401769
add esp, 0x10
test eax, eax
jne 0x401514
push 1
mov dword [ebp - 4], 3
call fcn.004110b0
pop ecx
push ebx
lea eax, [ebp - 0x2fc]
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.00406796
pop ecx
mov byte [eax + 1], bl
pop ecx
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.0040a0d9
pop ecx
lea eax, [ebp - 0xf4]
pop ecx
push eax
push ebx
push section..text
push ebx
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xcc]
call fcn.0040a2f0
add esp, 0x1c
test eax, eax
je 0x401585
inc dword [ebp - 0xd4]
jmp 0x40144f
mov dword [ebp - 4], 3
jmp 0x4015a1
mov ax, word [ebp - 0xbc]
movzx ecx, word [ebp - 0xbc]
sub ax, 0xe
neg ax
sbb eax, eax
and eax, ecx
mov dword [ebp - 4], eax
cmp word [ebp - 4], 0xe
jne 0x401605
cmp dword [ebp - 8], ebx
mov dword [ebp + 0x18], ebx
jle 0x401605
lea eax, [ebp - 0x704]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x18], 0x40
jg 0x401605
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
jne 0x4015e5
push 0x41c048
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 0x4015e8
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 0x4015b9
push dword [ebp - 0xcc]
call fcn.0040a280
mov eax, dword [0x41fa60]
pop ecx
mov eax, dword [eax + 0xdc]
cmp eax, 0xffffffff
je 0x401628
push eax
call fcn.00401afd
pop ecx
push str.Ending_BRC
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret