Function at 0x401c54
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
and dword [ebp - 4], 0
push ebx
push esi
push edi
call fcn.00404cbc
mov edx, 0x100
mov dword [ebp - 8], eax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x808]
mov esi, 0x400
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x408]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x408]
push eax
push esi
call fcn.0040407e
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 0xc08]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401cda
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0xc08]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x401cda
mov dword [0x407a3c], 1
jmp 0x401e15
test edi, edi
jbe 0x401eca
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x408]
push eax
call ebx
cmp byte [ebp + eax - 0x409], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401d0f
lea eax, [ebp - 0x408]
push 0x40605c
push eax
call esi
lea eax, [ebp - 0x408]
push str.Update
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x408]
push eax
call edi
cmp eax, 0xffffffff
jne 0x401d41
push dword [ebp - 8]
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x401eca
add eax, 0x30c
cmp byte [eax], 0
je 0x401eca
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x808]
push eax
call ebx
cmp byte [ebp + eax - 0x809], 0x5c
je 0x401d89
lea eax, [ebp - 0x808]
push 0x40605c
push eax
call esi
lea eax, [ebp - 0x808]
push str.Supdate.exe
push eax
call esi
lea eax, [ebp - 0x808]
push eax
call edi
cmp eax, 0xffffffff
je 0x401eca
lea eax, [ebp - 0x408]
push eax
call ebx
cmp byte [ebp + eax - 0x409], 0x5c
je 0x401dca
lea eax, [ebp - 0x408]
push 0x40605c
push eax
call esi
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0xc08]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0xc08]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x408]
push str.Supdate.exe
push eax
call esi
lea eax, [ebp - 0x408]
push 0
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401e1c
xor esi, esi
jmp 0x401ecd
lea eax, [ebp - 0x408]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x808]
push 0x5c
push eax
call fcn.00401b36
test eax, eax
je 0x401e15
push eax
call ebx
lea edi, [ebp - 0x807]
sub edi, eax
lea eax, [ebp - 0x808]
push eax
call ebx
and byte [edi + eax], 0
lea eax, [ebp - 0x408]
push 0x5c
push eax
call fcn.00401b36
test eax, eax
je 0x401e15
push eax
call ebx
lea edi, [ebp - 0x407]
sub edi, eax
lea eax, [ebp - 0x408]
push eax
call ebx
and byte [edi + eax], 0
mov edi, str.Supdate.dll
lea eax, [ebp - 0x808]
push edi
push eax
call esi
lea eax, [ebp - 0x408]
push edi
push eax
call esi
lea eax, [ebp - 0x408]
push 0
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov dword [ebp - 4], eax
je 0x401eca
lea eax, [ebp - 0x408]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [ebp - 4]
push dword [ebp - 8]
call fcn.00404d57
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret