Function at 0x402110
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428f9a
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x435028]
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 [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push str.KcLepExamDB
mov byte [ebp - 4], 1
call fcn.00402390
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 0x40230f
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 0x4021c8
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x1c], edx
jmp 0x4021cb
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 0x4021e1
mov ebx, edi
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x7c]
push eax
call esi
add esp, 8
test eax, eax
jne 0x4021f5
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.00402390
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.004052b0
add esp, 0x18
test al, al
je 0x402283
push 1
push 0
push 0
push 1
push esi
call fcn.00404db0
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 0x4022a5
mov edx, dword [ebp - 0x14]
push edx
call fcn.00403c20
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 0x402300
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 0x402300
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push 0x42bec0
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.004273e2
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