Function at 0x404c60
Capabilities:
Delete file
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x456ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0xc]
mov dword [esp + 0x24], ebx
push eax
call fcn.00428e10
add esp, 4
lea ecx, [esp + 0x10]
push str.DebugMsgLvl
push ecx
mov ecx, 0x4845c0
call fcn.00427fc0
test eax, eax
jne 0x404cc5
mov edx, dword [esp + 0x10]
mov dword [0x4845e4], edx
lea eax, [esp + 0x14]
push str.DebugMsgMask
push eax
mov ecx, 0x4845c0
call fcn.00427fc0
test eax, eax
jne 0x404ce7
mov ecx, dword [esp + 0x14]
mov dword [0x469164], ecx
lea edx, [esp + 0x18]
push str.DebugLogSize
push edx
mov ecx, 0x4845c0
call fcn.00427fc0
test eax, eax
jne 0x404d08
mov eax, dword [esp + 0x18]
mov dword [0x469168], eax
cmp dword [0x4845e4], ebx
jbe 0x404d1a
mov dword [0x4845e4], 1
mov ecx, 0x4845e0
call sub.MFC42.DLL_CString::Empty
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x404e64
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404e64
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x404e64
cmp dword [0x4845e4], ebx
je 0x404e64
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
push ecx
call fcn.004288b0
add esp, 4
lea ecx, [esp + 0x2c]
push esi
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x2c]
mov ecx, 0x4845e0
push edx
call sub.MFC42.DLL_CString::operator_2
push str.prl_file_write:_Begin_n
push 2
push 1
call fcn.004048e0
mov eax, dword [0x4845e0]
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push ebx
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404df6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x404de9
cmp edi, dword [0x469168]
jbe 0x404df6
mov ecx, dword [0x4845e0]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov eax, 0x469230
jne 0x404e08
mov eax, 0x46922c
mov edx, dword [0x4845e0]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp eax, ebx
mov dword [0x4845e8], eax
je 0x404e57
push 0x4845c8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4845c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4845e8]
push str.______________Begin_______________n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
push 0x4845c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
pop edi
pop esi
cmp eax, ebx
mov dword [0x4845ec], eax
pop ebx
jne 0x404e94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegisterEventSource_failed_with_an_err:__d_n
push 1
push 2
call fcn.004048e0
add esp, 0x10
lea ecx, [esp]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret