Function at 0x401e90
Capabilities:
Copy file

Disassembly:
sub esp, 0x4c8
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0x1dc]
rep stosd dword es:[edi], eax
mov eax, dword [0x4542e8]
lea ecx, [esp + 0x1dc]
add eax, 0x66
push eax
push str._s_tuc_fileF300
push ecx
call fcn.00409684
mov edx, dword [0x4542e8]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xe4]
add edx, 0x1cb
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0xe8]
push str._s_tuc_fileF300B
push eax
call fcn.00409684
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x18
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0xd8]
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 + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x1dc]
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 + 0x74]
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 + 0x78]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push eax
push ecx
call ebx
test eax, eax
jne 0x401ffe
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 + 0xd8]
push eax
jmp 0x4020fd
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0xd8]
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 + 0x78]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x1e0]
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 + 0x78]
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 + 0x7c]
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 0x402140
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 + 0xd8]
push eax
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x2f0]
push 0x4133b4
push ecx
call fcn.00409684
add esp, 0x18
lea edx, [esp + 0x2e0]
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, 0x4c8
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x4c8
ret