Function at 0x403800
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x410
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push esi
push edi
push 0x407140
push eax
call ebp
add esp, 8
test eax, eax
je 0x403a5b
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x218]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x217], 0x5c
je 0x403890
mov edi, 0x406f8c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40713c
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
rep movsb byte es:[edi], byte [esi]
mov edi, str.wininit.ini
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 eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403a68
lea edi, [esp + 0x218]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x31c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40712c
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x320]
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.WININIT.TMP
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x320]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x403a51
push 0
push 0
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0x18
test eax, eax
je 0x403a0e
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebp, dword [sym.imp.MSVCRT.dll_fprintf]
lea edx, [esp + 0x10]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_fputs]
lea eax, [esp + 0x18]
push str._rename__n
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 0x10
test eax, eax
jne 0x4039f6
mov edx, dword [esp + 0x424]
lea ecx, [esp + 0x10]
push 0x104
push ecx
push edx
call edi
lea eax, [esp + 0x10]
push eax
push str.nul_s_n
push esi
call ebp
add esp, 0xc
push ebx
lea ecx, [esp + 0x14]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x4039af
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push ebx
call esi
add esp, 8
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x114]
lea ecx, [esp + 0x31c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
lea edx, [esp + 0x114]
push 0x40712c
push edx
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x403a5b
mov edi, dword [sym.imp.MSVCRT.dll_fprintf]
push str._rename__n
push esi
call edi
mov ecx, dword [esp + 0x42c]
add esp, 8
lea eax, [esp + 0x31c]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x31c]
push edx
push str.nul_s_n
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret