Function at 0x4979e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x50d13b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push edi
mov edi, 0x515c40
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x5c]
push 0x1388
lea eax, [esp + 0x18]
push ebx
push eax
push ecx
mov dword [esp + 0x64], ebx
call fcn.004d7c40
add esp, 0x10
test eax, eax
jne 0x497a7a
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], 1
cmp eax, ebx
je 0x497a65
mov edx, dword [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_DestructElements
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
cmp dword [esp + 0x1c], ebx
jne 0x497aa9
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], 2
cmp eax, ebx
je 0x497c12
push ebx
push eax
call sub.MFC42.DLL_DestructElements
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x497c0a
push esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 3
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, ebx
mov byte [esp + 0x58], 4
jle 0x497b33
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__stat]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
mov eax, dword [edx + esi*4]
push eax
call ebp
add esp, 8
test eax, eax
jl 0x497b1a
cmp dword [esp + 0x44], ebx
jle 0x497b1a
push 0x5416d4
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x20]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CString::operator_1
jmp 0x497b24
mov edx, dword [esp + 0x20]
mov eax, dword [edx + esi*4]
push eax
call edi
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x497add
mov edi, 0x515c40
pop ebp
push 0x230
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x58], 5
je 0x497b58
mov ecx, eax
call fcn.00455d70
mov esi, eax
jmp 0x497b5a
xor esi, esi
lea eax, [esp + 0xc]
mov byte [esp + 0x58], 4
push eax
call fcn.004552b0
add esp, 4
mov ecx, esi
push 1
call fcn.00455430
push str.SYS_CZ
mov ecx, esi
call fcn.00455550
mov ecx, dword [esp + 0x64]
push ecx
mov ecx, esi
call fcn.004555d0
mov edx, dword [esp + 0x60]
mov ecx, esi
push edx
call fcn.00455dc0
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00455450
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00455490
push 0xbe99d
mov ecx, esi
call fcn.00455690
mov edx, dword [esp + 0x10]
push esi
mov ecx, dword [edx + 0x68]
call fcn.004679b0
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], 6
cmp eax, ebx
pop esi
je 0x497c12
mov ecx, dword [esp + 0x1c]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x18]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8