Function at 0x40e4d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f99de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_3
push 0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 5
call fcn.004f31e0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
mov eax, dword [eax + 0x80]
push eax
call fcn.004f4060
push 0
lea ecx, [ebp - 0x7c]
call fcn.004f4750
test eax, eax
jne 0x40e5ea
mov byte [ebp - 4], 6
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.004f3200
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 9
jmp 0x40ea9e
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x6c]
test esi, esi
je 0x40e978
push 0x541374
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x40e620
mov edi, 0x541374
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
jmp 0x40e623
mov esi, dword [edi + 0x6c]
test esi, esi
je 0x40e978
push 0x541374
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x20], edx
je 0x40e65a
mov edi, 0x541374
or ecx, 0xffffffff
xor eax, eax
mov byte [edx], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_3
mov edi, str.OBJECT_ID
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 0xe
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, 1
push ecx
push str.OBJECT_ID
push esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40e6ac
mov edi, str.OBJECT_ID
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
push esi
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [ebp - 0x30], eax
jmp 0x40e6f5
mov edi, str.OBJECT_UID
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.OBJECT_UID
push esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40e964
mov edi, str.OBJECT_UID
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
lea ecx, [ebp - 0x1c]
push esi
call fcn.004c8322
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::TrimRight
xor ebx, ebx
lea ecx, [ebp - 0x7c]
call fcn.004f4ba0
mov esi, dword [sym.imp.MSVCRT.dll_strncmp]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
call fcn.004f4b80
test eax, eax
jne 0x40e940
test byte [edi + 0x64], 0x40
je 0x40e782
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.004f3200
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xf
jmp 0x40e9d5
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.004f3410
test ebx, ebx
je 0x40e7b1
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2a4]
cmp eax, edx
je 0x40e7c9
push 1
lea ecx, [ebp - 0x7c]
call fcn.004f4bc0
jmp 0x40e706
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x294]
push ecx
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x40e7a2
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString_3
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 0x15
call fcn.004c830a
push 0x541374
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
test esi, esi
jl 0x40e8e3
mov edi, 0x541374
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x28]
add ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x16
call fcn.004c830a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString
push 0x541374
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
test esi, esi
jl 0x40e876
lea ecx, [ebp - 0x2c]
push esi
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x17
call fcn.004c830a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString
jmp 0x40e882
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push edx
call fcn.004c830a
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40e7fc
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x34]
mov eax, dword [edx + 0x6c]
add eax, 0x38
push eax
push ecx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x18
call fcn.004c830a
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40e7fc
push 0
lea ecx, [ebp - 0x7c]
call fcn.004f3f90
mov esi, dword [ebp - 0x24]
push 0xd
mov ecx, dword [esi + 0x6c]
call fcn.0040af10
test eax, eax
je 0x40e925
mov ecx, dword [esi + 0x6c]
mov esi, dword [ecx + 0x94]
call fcn.004a4200
push 0
push 0
lea ecx, [ebp - 0x2a4]
push 0xd
push ecx
push 0
push 0
push esi
mov ecx, eax
call fcn.00487780
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
call fcn.004f4b80
test eax, eax
je 0x40e964
push 0x106
mov ecx, edi
call fcn.00456190
push 0x1000
mov ecx, edi
call fcn.00456180
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
mov esi, dword [ebp - 0x20]
jmp 0x40e623
lea ecx, [ebp - 0x7c]
call fcn.004f4960
mov byte [ebp - 4], 6
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.004f3200
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4