Function at 0x4ed1b0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58ca80
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov bl, byte [esi]
cmp bl, 0x53
jne 0x4ed275
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_3
inc esi
mov dword [esp + 0x30], 0
push esi
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 0xffffffff
jne 0x4ed210
lea eax, [esp + 0x38]
push str.update__ticketNo__set_openZnull_runsqlZnull_BrowseZnull_RptZ__null
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
jmp 0x4ed226
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x48]
push str.update__ticketNo__set_openZ_i_runsqlZ_i_BrowseZ_i_RptZ___i
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0
call fcn.0040b960
push 0
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 0
call fcn.004016c0
push eax
call fcn.0045ed60
add esp, 0x14
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp bl, 0x45
je 0x4ed377
cmp bl, 0x57
je 0x4ed377
mov edx, dword [0x64b2e0]
mov eax, dword [edx + 0x940]
test eax, eax
je 0x4ed4b3
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
push esi
call ebx
mov edi, eax
add esp, 4
test edi, edi
je 0x4ed4b3
lea eax, [esi + 5]
push eax
call ebx
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
je 0x4ed4b3
add esi, 8
push esi
call ebx
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4ed4b3
mov ecx, dword [0x64b2e0]
mov eax, dword [ecx + 0x358]
push eax
call fcn.004bb900
mov edx, dword [0x64b2e0]
mov esi, eax
mov eax, dword [edx + 0x358]
push eax
call fcn.004bb940
mov ebp, eax
mov eax, dword [0x64b2e0]
mov eax, dword [eax + 0x358]
push eax
call fcn.004bb990
add esp, 0xc
cmp esi, edi
jne 0x4ed327
cmp ebp, dword [esp + 0x38]
jne 0x4ed327
cmp eax, ebx
je 0x4ed4b3
mov ecx, dword [esp + 0x38]
push ebx
push ecx
push edi
lea edx, [esp + 0x20]
push 0x601f08
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [0x64b2e0]
add esp, 0x14
lea eax, [esp + 0x14]
add ecx, 0x358
push eax
call sub.MFC42.DLL_CString::operator_3
lea edx, [esp + 0x14]
push edx
call fcn.004ed160
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea edi, [esi + 1]
push edi
call dword [sym.imp.MSVCRT.dll_atoi]
mov edx, eax
add esp, 4
test edx, edx
jl 0x4ed4b3
jne 0x4ed3e6
mov al, byte [edi]
mov cl, byte [esi + 2]
cmp al, cl
jne 0x4ed4b3
cmp al, 0x30
jne 0x4ed4b3
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.004ed160
add esp, 4
push str.menu.msg
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [0x6658d4]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.00490ef0
mov edx, dword [0x64b2e0]
add esp, 8
lea esi, [esp + 0x14]
mov edi, dword [edx + 0x358]
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4ed451
test cl, cl
je 0x4ed44d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4ed451
add eax, 2
add esi, 2
test cl, cl
jne 0x4ed42d
xor eax, eax
jmp 0x4ed456
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x4ed461
mov eax, dword [edi - 8]
test eax, eax
jne 0x4ed46e
lea eax, [esp + 0x14]
push eax
call fcn.004ed160
add esp, 4
cmp bl, 0x45
je 0x4ed4b3
push str.menu.msg
call fcn.004924b0
add esp, 4
test eax, eax
jne 0x4ed4b3
push 0x5fdf0c
push str.menu.msg
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4ed4b3
push 0x613018
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret