Function at 0x403310
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40af7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
push ebx
push ebp
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x2b0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x98], 0
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x198], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0xff
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x3f
lea edi, [esp + 0x9d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19d]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x9c]
push ecx
stosw word es:[edi], ax
call esi
lea edx, [esp + 0x198]
push 0xff
push edx
call esi
mov edx, dword [esp + 0x2a8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403434
mov edi, 0x410170
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x98]
mov esi, edi
mov ebp, ecx
mov edi, ebx
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 ebx, [esp + 0x98]
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 ebp, ecx
mov edi, ebx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x410170
xor eax, eax
lea ebx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebx, dword [esp + 0x2ac]
and ecx, 3
lea ebp, [esp + 0x98]
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebx
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 + 0x98]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41016c
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 + 0x98]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40355c
mov edi, 0x410170
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x198]
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 + 0x198]
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 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 edi, 0x410170
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x198]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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 edx, [esp + 0x19c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
push eax
lea eax, [esp + 0x7c]
push 0x410168
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x198]
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 edx, [esp + 0x198]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
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 + 0x98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x198]
push 1
lea edx, [esp + 0x9c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 0x198]
push eax
call fcn.00403000
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x58]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
xor ebp, ebp
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41016c
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 + 0x58]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2b0]
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 eax, dword [0x410840]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x403747
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
mov esi, 0x410844
lea eax, [esp + 0x58]
push eax
push esi
call edi
add esp, 8
test eax, eax
je 0x403747
mov eax, dword [0x410840]
inc ebp
add esi, 0x48
cmp ebp, eax
jl 0x40372b
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
lea ebp, [ebp + ebp*8]
shl ebp, 3
mov ecx, dword [ebp + 0x410860]
push ecx
call esi
mov edx, dword [ebp + 0x41085c]
mov ebx, eax
push edx
call esi
mov ecx, dword [ebp + 0x41085c]
mov esi, dword [ebp + 0x410858]
mov edi, dword [0x410838]
mov edx, eax
mov eax, ecx
add esi, edi
mov edi, edx
mov dword [esp + 0x20], edx
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 ecx, dword [ebp + 0x410860]
mov edi, ebx
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x410860]
lea eax, [esp + 0x18]
add ecx, 0x1000
push eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x41085c]
push ebx
push ecx
push edx
call fcn.00403220
add esp, 0x18
mov edx, dword [ebp + 0x410860]
lea eax, [esp + 0x98]
mov dword [esp + 0x10], edx
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
xor esi, esi
mov dword [esp + 0x14], eax
test edi, edi
jbe 0x40383a
mov ecx, dword [esp + 0x10]
xor ebp, ebp
test ecx, ecx
jbe 0x40383a
cmp ebp, 0x32
jge 0x40383a
lea edx, [esp + 0x14]
push 0
sub ecx, esi
push edx
add eax, ebx
push ecx
push eax
push edi
inc ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add esi, eax
cmp esi, ecx
jb 0x403812
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
add esp, 8
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x98]
push 0
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x2a8], 0
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x3c]
mov esi, eax
call sub.MFC42.DLL_CFileFind::Close
pop edi
test esi, esi
pop esi
pop ebp
pop ebx
jne 0x4038a8
lea edx, [esp + 0x88]
push 1
lea eax, [esp + 0x18c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x4038b6
lea ecx, [esp + 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x88]
push edx
call fcn.00403000
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x290], 0xffffffff
call fcn.0040abc4
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
add esp, 0x294
ret