Function at 0x403f90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb02a
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x4ce028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x14]
call dword [0x4bd7a8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call dword [0x4bd7a8]
push str.KcLepExamDB
mov byte [ebp - 4], 1
call fcn.00404210
movzx eax, ax
push eax
lea ecx, [ebp - 0x14]
push str._c:_s_
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov edx, dword [ebp - 0x14]
push 0
push edx
call dword [sym.imp.MSVCR90.dll__waccess]
or edi, 0xffffffff
add esp, 0x18
cmp eax, edi
je 0x40418f
push 0
call dword [sym.imp.MSVCR90.dll__time64]
mov esi, dword [sym.imp.MSVCR90.dll__localtime64_s]
mov dword [ebp - 0x24], eax
add esp, 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0x20], edx
call esi
add esp, 8
test eax, eax
jne 0x404048
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x1c], edx
jmp 0x40404b
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x58]
push ecx
call esi
mov ebx, dword [ebp - 0x54]
add esp, 8
test eax, eax
je 0x404061
mov ebx, edi
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x7c]
push eax
call esi
add esp, 8
test eax, eax
jne 0x404075
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0xc4]
push edx
call esi
mov ecx, dword [ebp - 0x1c]
add esp, 8
neg eax
push ecx
sbb eax, eax
push ebx
not eax
and eax, dword [ebp - 0xb8]
push edi
push eax
push str.KcLepExamDB
call fcn.00404210
mov ebx, dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
movzx edx, ax
push edx
lea eax, [ebp - 0x18]
push str._c:Temp_s__02d_02d_02d_02d_
push eax
call ebx
add esp, 0x20
lea ecx, [ebp - 0x34]
call sub.mfc90u.dll_CFile::CFile
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
lea ecx, [ebp - 0x14]
mov edi, eax
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push 1
push 0
push 0
push 1
mov esi, eax
push edi
push esi
call fcn.00407b90
add esp, 0x18
test al, al
je 0x404103
push 1
push 0
push 0
push 1
push esi
call fcn.00407690
add esp, 0x14
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.MSVCR90.dll__waccess]
push 0
push ecx
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x404125
mov edx, dword [ebp - 0x14]
push edx
call fcn.00406480
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push str._sKcLepAnswer.dat
push ecx
call ebx
mov edx, dword [ebp - 0x18]
add esp, 0xc
push 0
push edx
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x404180
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x18]
push 0
push ecx
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x404180
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push 0x4beb28
push eax
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push 0
push 0
push ecx
call sub.mfc90u.dll_AfxMessageBox
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.0042ba7e
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret