Function at 0x402d70
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
sub esp, 0x4b0
push ebx
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x28]
cmp eax, 1
jne 0x402e9d
lea ecx, [esp + 0x1b0]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Wininit.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1b0]
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 eax, [esp + 0x1b0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push 0x40d314
jne 0x402e21
lea ecx, [esp + 0x1b4]
push ecx
call fcn.00404fa5
mov esi, eax
push esi
push str._rename__n
call fcn.00404f42
add esp, 0x10
jmp 0x402e33
lea edx, [esp + 0x1b4]
push edx
call fcn.00404fa5
add esp, 8
mov esi, eax
push esi
push 0x40d304
call fcn.00404f42
mov ecx, dword [esp + 0x4c8]
add esp, 8
lea eax, [esp + 0x2b4]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x2b4]
lea eax, [esp + 0x3b8]
push edx
push str.NUL_s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x3c4]
push esi
push ecx
call fcn.00404f42
push esi
call fcn.00404eec
add esp, 0x18
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x4b0
ret
cmp eax, 2
jne 0x402e8e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xac]
lea edx, [esp + 0xac]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x4c0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2e
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x18], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xb0]
push ecx
call fcn.00404e30
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402f9f
push ebp
xor ebp, ebp
xor edx, edx
mov dword [ebx], 0
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edx
push str.._03d
push eax
mov byte [esp + 0x20], dl
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xb0]
mov esi, edi
mov edi, edx
mov edx, ecx
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
lea eax, [esp + 0xb0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402f71
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
inc ebp
test eax, eax
jne 0x402f02
mov edx, dword [esp + 0x4c4]
lea ecx, [esp + 0xb0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
pop ebp
jne 0x402f9f
pop edi
pop esi
pop ebx
add esp, 0x4b0
ret
push 4
lea eax, [esp + 0xb0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x402e8e
pop edi
pop esi
pop ebx
add esp, 0x4b0
ret