Function at 0x4027f0
Capabilities:
Delete file
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40a758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x78]
xor ebx, ebx
push 0x40d154
lea ecx, [esp + 0x7c]
mov edi, dword [eax - 8]
mov dword [esp + 0x74], ebx
call sub.MFC42.DLL_CString::Find
sub edi, eax
lea ecx, [esp + 0x78]
sub edi, 5
push edi
push 0x40d154
call sub.MFC42.DLL_CString::Find
inc eax
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CString::Mid
mov ebp, dword [esp + 0x7c]
push eax
mov ecx, ebp
mov byte [esp + 0x74], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], bl
call fcn.00409d12
mov edx, dword [esp + 0x78]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x40d188
push edx
call edi
add esp, 8
cmp eax, ebx
mov dword [0x40ec24], eax
jne 0x4028a8
mov eax, dword [0x40ec20]
cmp eax, ebx
je 0x40289f
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ebp, dword [ebp]
push ebp
jmp 0x402c00
mov eax, dword [ebp]
push 0x40d184
push eax
call edi
add esp, 8
mov dword [0x40ec20], eax
cmp eax, ebx
mov eax, dword [0x40ec24]
jne 0x4028ec
cmp eax, ebx
je 0x40289f
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push eax
call esi
mov eax, dword [0x40ec20]
add esp, 4
cmp eax, ebx
je 0x40289f
push eax
call esi
mov ebp, dword [ebp]
add esp, 4
push ebp
jmp 0x402c00
push eax
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x2710
mov dword [0x40ec1c], eax
call edi
mov ebp, eax
push 0x2710
mov dword [esp + 0x28], ebp
call edi
push 0x38
lea ecx, [esp + 0x44]
mov edi, eax
push 0x40d17c
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.0040584a
add esp, 0x1c
test eax, eax
je 0x402994
mov esi, dword [sym.imp.MSVCRT.dll_free]
cmp ebp, ebx
je 0x40295b
push ebp
call esi
add esp, 4
cmp edi, ebx
je 0x402965
push edi
call esi
add esp, 4
mov eax, dword [0x40ec24]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
cmp eax, ebx
je 0x40297a
push eax
call esi
add esp, 4
mov eax, dword [0x40ec20]
cmp eax, ebx
je 0x402989
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x7c]
mov eax, dword [edx]
jmp 0x402bff
mov eax, dword [esi + 0x14c]
mov ebx, dword [0x40ec1c]
push 0
push 0
mov dword [esp + 0x44], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x402
push eax
mov dword [esp + 0x50], 0x2710
call edi
lea ebx, [ebx + ebx*4]
lea ebx, [ebx + ebx*8]
shl ebx, 1
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4029ee
mov ecx, dword [0x40ec24]
mov dword [esp + 0x30], ebp
push ecx
push 0x2710
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [esp + 0x34], eax
lea edx, [esp + 0x30]
push 0
push edx
call fcn.00405865
add esp, 8
cmp eax, 1
je 0x402b42
test eax, eax
jne 0x402ad3
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x402a48
mov eax, dword [0x40ec20]
mov ecx, dword [esp + 0x10]
push eax
push 0x2710
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 0x2710
jne 0x402af5
mov edx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
mov ecx, dword [0x40ec1c]
sub ebx, 0xdbba0
xor edx, edx
mov dword [esp + 0x1c], ebx
lea eax, [ecx + ecx*4]
push 0
push 0
push 0x408
lea eax, [eax + eax*8]
shl eax, 1
sub eax, ebx
div ecx
mov ebx, eax
mov eax, dword [esi + 0x14c]
push eax
call edi
mov ecx, dword [esi + 0x14c]
push 0
push 0
push 0x408
push ecx
call edi
mov edx, dword [esi + 0x14c]
push 0
push ebx
mov ebp, ebx
push 0x402
push edx
sub ebp, eax
call edi
mov eax, dword [esi + 0x10c]
push 0
push 0
push 0x408
push eax
call edi
mov ecx, dword [esi + 0x10c]
add eax, ebp
push 0
push eax
push 0x402
push ecx
call edi
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
jmp 0x4029c6
mov esi, dword [sym.imp.MSVCRT.dll_free]
test ebp, ebp
je 0x402ae3
push ebp
call esi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402b85
push eax
jmp 0x402b80
mov esi, dword [sym.imp.MSVCRT.dll_free]
test ebp, ebp
je 0x402b05
push ebp
call esi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402b13
push eax
call esi
add esp, 4
mov eax, dword [0x40ec24]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
test eax, eax
je 0x402b28
push eax
call esi
add esp, 4
mov eax, dword [0x40ec20]
test eax, eax
je 0x402b37
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
jmp 0x402bff
mov eax, dword [esp + 0x40]
mov esi, 0x2710
sub esi, eax
je 0x402ba6
mov ecx, dword [0x40ec20]
mov edi, dword [esp + 0x10]
push ecx
push esi
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, esi
je 0x402baa
mov esi, dword [sym.imp.MSVCRT.dll_free]
test ebp, ebp
je 0x402b7b
push ebp
call esi
add esp, 4
test edi, edi
je 0x402b85
push edi
call esi
add esp, 4
mov eax, dword [0x40ec24]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
test eax, eax
je 0x402b9a
push eax
call esi
add esp, 4
mov eax, dword [0x40ec20]
test eax, eax
jmp 0x402981
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.0040567b
add esp, 4
test eax, eax
je 0x402c1b
mov esi, dword [sym.imp.MSVCRT.dll_free]
test ebp, ebp
je 0x402bcb
push ebp
call esi
add esp, 4
test edi, edi
je 0x402bd5
push edi
call esi
add esp, 4
mov eax, dword [0x40ec24]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
test eax, eax
je 0x402bea
push eax
call esi
add esp, 4
mov eax, dword [0x40ec20]
test eax, eax
je 0x402bf9
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], 0xffffffff
call fcn.00409d12
xor eax, eax
jmp 0x402c7d
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebp
call esi
push edi
call esi
mov edx, dword [0x40ec24]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push edx
call esi
mov eax, dword [0x40ec20]
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x70], 2
push ecx
call sub.MFC42.DLL_CFile::Remove
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0
call fcn.00409eaa
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], 0xffffffff
call fcn.00409d12
mov eax, 1
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 8