Function at 0x405960
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x40c0cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1196c]
push edi
test eax, eax
mov dword [esp + 0x10], 0
jle 0x405b22
lea esi, [ebx + 0x1b84]
mov dword [esp + 0x14], esi
mov al, byte [esp + 0x424]
mov cl, byte [esi + 0x40]
cmp cl, al
jne 0x405b04
lea edx, [ebx + 0x23190]
mov ecx, 0x32
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x18]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x23398]
mov eax, ecx
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*2]
xor eax, eax
lea edi, [ebx + ecx*4 + 0xb94]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
lea ebp, [esp + 0x18]
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, 0x4107cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
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 ebp, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
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 ebp, [ebx + 0x230c4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x32
mov edi, ebp
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4107c8
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
call esi
add esp, 8
test eax, eax
jne 0x405b4c
push 0x4107c4
push ebp
call esi
add esp, 8
test eax, eax
jne 0x405b4c
lea eax, [esp + 0x18]
lea ecx, [ebx + 0x6c]
push eax
call fcn.004022a0
mov ecx, ebx
call fcn.00406f70
test eax, eax
jl 0x405b3f
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x1196c]
inc eax
add esi, 0x41
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jl 0x4059a1
xor eax, eax
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x410
ret 4
lea ecx, [ebx + 0x6c]
call fcn.00402280
or eax, 0xffffffff
jmp 0x405b24
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea esi, [ebx + 0x230c4]
lea ecx, [esp + 0x10]
push esi
push str.GetNewVersion_FileName__s_
push ecx
mov dword [esp + 0x428], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
push esi
push str.GetNewVersion___FileName__s_
push str.CUpdateThread
push 0x14
call fcn.0040ab80
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea esi, [ebx + 0x23290]
lea eax, [esp + 0x310]
push esi
push str._sfiles.dat
push eax
call edi
add esp, 0xc
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x186a0
idiv ecx
push edx
push esi
lea edx, [esp + 0x214]
push str._serrorfiles_d.dat
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x20c]
lea ecx, [esp + 0x310]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebx + 0x6c]
call fcn.00402280
lea ecx, [esp + 0x10]
mov dword [esp + 0x41c], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x405b24