Function at 0x4031d0
Capabilities:
Copy file

Disassembly:
sub esp, 0x608
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0x31c]
rep stosd dword es:[edi], eax
mov eax, dword [0x4542e8]
lea ecx, [esp + 0x31c]
add eax, 0x66
push eax
push str._s_tuc_fileF230
push ecx
call fcn.00409684
mov edx, dword [0x4542e8]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x224]
add edx, 0x1cb
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x228]
push str._s_tuc_fileF230B
push eax
call fcn.00409684
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x18
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..IDX
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x31c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..IDX
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
and ecx, 3
lea eax, [esp + 0x118]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push eax
push ecx
call ebx
test eax, eax
jne 0x40334a
push eax
lea edx, [esp + 0x10]
push eax
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x218]
push eax
jmp 0x403455
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str..DAT
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x118]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..DAT
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call ebx
pop ebp
test eax, eax
jne 0x40349b
push eax
lea edx, [esp + 0x10]
push eax
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x218]
push eax
lea edx, [esp + 0x118]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x430]
push 0x4133b4
push ecx
call fcn.00409684
add esp, 0x18
lea edx, [esp + 0x420]
push 0x10
push 0x41339c
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x608
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x608
ret