Function at 0x416172
Capabilities:
Delete file

Disassembly:
mov eax, 0x42c3c5
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x5e4
push ebx
push esi
push edi
xor ebx, ebx
push 0x201
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], ebx
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x43b000]
push ebx
push ebx
push ebx
call fcn.0041b07d
push 0x43d528
push dword [ebp + 8]
call sub.MSVCRT.dll_strcmp
mov edi, dword [sym.imp.MSVCRT.dll__fsopen]
pop ecx
test eax, eax
pop ecx
mov esi, 0x441ef8
jne 0x41622f
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00403db2
push 0x43d538
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
call sub.MFC42.DLL_operator_2
push 0x40
push 0x43d534
push dword [eax]
mov byte [ebp - 4], 1
call edi
add esp, 0xc
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 8], ebx
je 0x41622f
push str._n__DDEC_HISTORY_DATA_UPLOADED_SUCCESSFULLY_n
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004064d0
push 0x40
push 0x43d570
push dword [eax]
mov dword [ebp - 4], 2
call edi
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], eax
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x10], ebx
je 0x4162fc
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00403db2
push 0x43d578
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 3
push eax
call sub.MFC42.DLL_operator_2
push 0x40
push 0x43d574
push dword [eax]
mov byte [ebp - 4], 4
call edi
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 8], ebx
je 0x4162f2
push dword [ebp - 0x10]
push 0x200
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4162e8
push dword [ebp - 0x1c]
push 0x43d584
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
jmp 0x4162ba
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [ebp - 0x1c]
call sub.MFC42.DLL_operatordelete
pop ecx
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 5
call sub.MFC42.DLL_CException::CException
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_3
or dword [ebp - 0x24], 0xffffffff
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
mov dword [ebp - 0x30], 0x42ebb8
mov dword [ebp - 0x28], ebx
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 8
call fcn.00403db2
push dword [eax]
lea eax, [ebp - 0x1f0]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x1f0]
push str.DRSOutput.txt
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x30]
pop ecx
push eax
lea eax, [ebp - 0x1f0]
push ebx
push eax
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x416441
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00403db2
push 0x43d59c
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
call sub.MFC42.DLL_operator_2
push 0x40
push 0x43d598
push dword [eax]
mov byte [ebp - 4], 0xa
call edi
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 8], ebx
je 0x41642d
mov edi, 0x400
lea eax, [ebp - 0x5f0]
push edi
push eax
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CStdioFile::Read
cmp eax, ebx
je 0x416423
mov byte [ebp + eax - 0x5f0], bl
lea eax, [ebp - 0x5f0]
push eax
push str.___s
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
jmp 0x4163ee
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CStdioFile::Close
lea eax, [ebp - 0x1f0]
push eax
call sub.MFC42.DLL_CFile::Remove
push 0x64
push 0x190
call dword [sym.imp.KERNEL32.dll_Beep]
push ebx
lea ecx, [ebp - 0xf0]
call fcn.00406007
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xb
call fcn.0040637d
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00403db2
push 0x43d5b0
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 0xc
push eax
call sub.MFC42.DLL_operator_2
push dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll_remove]
mov byte [ebp - 4], 0xd
call edi
pop ecx
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004064d0
push dword [eax]
mov byte [ebp - 4], 0xe
call edi
pop ecx
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 8
call fcn.0040647a
mov dword [ebp - 0x30], 0x42ebb8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0x42eba0
call fcn.00429130
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
leave
ret 4