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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44794b
push eax
mov dword fs:[0], esp
sub esp, 0x59c
push ebx
push ebp
mov ebp, dword [esp + 0x5b4]
xor ebx, ebx
cmp ebp, ebx
push esi
jne 0x438a12
xor eax, eax
jmp 0x438e82
lea eax, [esp + 0x4a8]
lea ecx, [esp + 0x3a8]
push eax
lea edx, [esp + 0x2ac]
push ecx
mov ecx, dword [esp + 0x5c4]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
lea edx, [esp + 0x3bc]
push str..tmp
lea eax, [esp + 0x2c0]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x1c4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__makepath]
lea eax, [esp + 0x1cc]
push 0x467a38
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x30
cmp esi, ebx
jne 0x438a88
xor eax, eax
jmp 0x438e82
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
mov dword [esp + 0x18], ebp
jmp 0x438a99
mov ebp, dword [esp + 0x18]
push esi
push 0x18
push 1
push ebp
call edi
mov ecx, dword [esp + 0x28]
mov ebp, dword [ebp + 0x10]
add esp, 0x10
mov eax, dword [ecx + 0xc]
cmp eax, ebx
jle 0x438c6a
mov dword [esp + 0x1c], eax
push esi
push 8
push 1
push ebp
call edi
mov eax, dword [ebp]
add esp, 0x10
dec eax
je 0x438baa
dec eax
je 0x438b30
sub eax, 2
jne 0x438c58
mov eax, dword [ebp + 4]
cmp eax, ebx
jne 0x438b26
push esi
push 0x1c
lea edx, [esp + 0x7c]
push 1
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 1
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
push edx
jmp 0x438c53
push esi
push 0x1c
push 1
jmp 0x438c52
mov eax, dword [ebp + 4]
cmp eax, ebx
jne 0x438b84
push esi
push 0x1c
lea eax, [esp + 0x28]
push 1
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call edi
mov eax, dword [esp + 0x48]
add esp, 0x10
cmp eax, ebx
je 0x438c58
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x38], ebx
jmp 0x438c58
push esi
push 0x1c
push 1
push eax
call edi
mov eax, dword [ebp + 4]
add esp, 0x10
mov ecx, dword [eax + 0x14]
cmp ecx, ebx
jle 0x438c58
push esi
push ecx
mov ecx, dword [eax + 0x18]
push 1
push ecx
jmp 0x438c53
mov eax, dword [ebp + 4]
cmp eax, ebx
jne 0x438c36
push esi
push 0x38
lea edx, [esp + 0x44]
push 1
push edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], 0x30
mov dword [esp + 0x6c], 0x80008
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call edi
mov eax, dword [esp + 0x80]
add esp, 0x10
cmp eax, ebx
je 0x438c1f
push eax
mov dword [esp + 0x70], ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x438c58
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x68], ebx
jmp 0x438c58
push esi
push 0x38
push 1
push eax
call edi
mov eax, dword [ebp + 4]
add esp, 0x10
mov ecx, dword [eax + 0x30]
cmp ecx, ebx
jle 0x438c58
mov eax, dword [eax + 0x34]
push esi
push ecx
push 1
push eax
call edi
add esp, 0x10
mov eax, dword [esp + 0x1c]
add ebp, 8
dec eax
mov dword [esp + 0x1c], eax
jne 0x438aba
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x438a95
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea edx, [esp + 0xa4]
push 0x104
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x4ac]
lea ecx, [esp + 0x3ac]
push eax
lea edx, [esp + 0x2b0]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0xb0]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
push 0x46b674
lea edx, [esp + 0x2c4]
push 0x46b674
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0xc4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__makepath]
lea edi, [esp + 0xcc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xa3], 0x5c
je 0x438d3a
mov edi, 0x467088
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa4]
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]
mov edi, str.rtflib.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa4]
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 + 0xa4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x5cc]
push esi
call fcn.00438970
add esp, 8
test eax, eax
pop edi
jne 0x438d9d
lea ecx, [esp + 0x1a4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x438e82
push esi
lea edx, [esp + 0x90]
push 0x46acd4
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push 0x46acd0
lea ecx, [esp + 0x10]
mov dword [esp + 0x5b4], ebx
call fcn.00444fb0
lea eax, [esp + 0xa0]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
push 0x46acd0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
push 0x46accc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1a4]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
push 0x46acc8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x5bc]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::operator
push 0x46acd0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x8c]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004387d0
add esp, 4
lea edx, [esp + 0x1a4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x5b0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x5a8]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5a8
ret