Function at 0x49ca90
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e33b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x5218d4
mov dword [ebp - 4], edi
call fcn.00420e40
add esp, 4
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0x2c0]
mov byte [ebp - 4], 1
mov ecx, ebx
mov dword [ebp - 0x20], ebx
call fcn.00404a80
push ebx
mov dword [ebx], edi
call fcn.00420310
mov eax, dword [ebp - 0x18]
add esp, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x49cdc6
mov dword [ebp - 0x1c], edi
push ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], esp
mov esi, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
cmp ecx, edi
mov byte [ebp - 4], 3
je 0x49cb2f
push 0x5218b4
call fcn.00409380
jmp 0x49cb31
xor eax, eax
cmp eax, edi
mov byte [ebp - 4], 2
mov dword [esi], eax
jne 0x49cb45
push 0x8007000e
call fcn.004cf728
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x5218b0
call fcn.00440bf0
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00447640
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.0049d210
mov edx, dword [eax]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00440850
lea ecx, [ebp - 0x24]
call fcn.00404a80
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x5c]
push eax
call esi
mov eax, dword [ebx]
mov byte [ebp - 4], 6
cmp eax, edi
mov word [ebp - 0x5c], 1
jne 0x49cbac
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx]
lea edx, [ebp - 0x5c]
push edx
lea edx, [ebp - 0x24]
push eax
push edx
call fcn.0043f860
lea ecx, [ebp - 0x24]
call fcn.00404a80
mov dword [ebp - 0x14], 0
mov eax, 2
mov ecx, 1
mov word [ebp - 0x6c], ax
mov word [ebp - 0x64], cx
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov word [ebp - 0x34], cx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
push ecx
mov byte [ebp - 4], 8
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
call edi
test eax, eax
jge 0x49cc1a
push eax
call fcn.004cf728
lea edx, [ebp - 0x3c]
push edx
call esi
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x49cc38
push eax
call fcn.004cf728
push ecx
mov bl, 9
mov dword [ebp - 0x2c], esp
mov esi, esp
push 0xc
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x28], ecx
test ecx, ecx
mov byte [ebp - 4], 0xa
je 0x49cc66
push 0x5265c0
call fcn.00409380
jmp 0x49cc68
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [esi], eax
jne 0x49cc7b
push 0x8007000e
call fcn.004cf728
push ecx
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x5218a4
call fcn.00440bf0
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 0xc
mov ecx, esi
call fcn.00447640
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x24]
push edx
push ecx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.0049d320
mov edx, dword [eax]
lea ecx, [ebp - 0x14]
push edx
call fcn.00440850
lea ecx, [ebp - 0x24]
call fcn.00404a80
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push eax
call edi
test eax, eax
jge 0x49ccd6
push eax
call fcn.004cf728
cmp dword [esi], 0
jne 0x49cce5
push 0x80004003
call fcn.004cf728
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.0040f3d0
lea ecx, [ebp - 0x24]
call fcn.00404a80
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::AllocSysString
mov esi, eax
mov word [ebp - 0x3c], 8
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x49cd28
test esi, esi
je 0x49cd28
push 0x8007000e
call fcn.004cf728
mov esi, dword [ebp - 0x20]
mov byte [ebp - 4], 0xd
cmp dword [esi], 0
jne 0x49cd3e
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x3c]
sub esp, 0x10
mov esi, dword [esi]
mov edx, esp
push esi
mov ecx, dword [esi]
mov dword [edx], eax
mov eax, dword [ebp - 0x38]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [edx + 0xc], eax
call dword [ecx + 0x108]
test eax, eax
jge 0x49cd75
push 0x518788
push esi
push eax
call fcn.004cf736
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
push ecx
call edi
test eax, eax
jge 0x49cd89
push eax
call fcn.004cf728
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 7
push edx
call edi
test eax, eax
jge 0x49cd9d
push eax
call fcn.004cf728
lea ecx, [ebp - 0x14]
call fcn.00404a80
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
call edi
test eax, eax
jge 0x49cdb9
push eax
call fcn.004cf728
lea ecx, [ebp - 0x1c]
call fcn.00404a80
jmp 0x49d1e7
cmp dword [ebx], edi
je 0x49d1e7
mov esi, dword [ebp - 0x18]
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
cmp ecx, edi
mov byte [ebp - 4], 0xe
je 0x49cdf0
push esi
call fcn.00409380
jmp 0x49cdf2
xor eax, eax
cmp eax, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
jne 0x49ce0a
push 0x8007000e
call fcn.004cf728
mov eax, dword [ebp - 0x1c]
cmp eax, edi
mov byte [ebp - 4], 0xf
mov word [ebp - 0x3c], 8
je 0x49ce1c
mov esi, dword [eax]
jmp 0x49ce1e
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
cmp eax, edi
mov dword [ebp - 0x34], eax
jne 0x49ce3e
push 0x8007000e
call fcn.004cf728
mov eax, dword [ebx]
mov byte [ebp - 4], 0x10
cmp eax, edi
jne 0x49ce52
push 0x80004003
call fcn.004cf728
lea edx, [ebp - 0x12]
mov esi, dword [ebx]
push edx
mov edx, dword [ebp - 0x3c]
sub esp, 0x10
mov ecx, dword [esi]
mov eax, esp
push esi
mov dword [eax], edx
mov edx, dword [ebp - 0x38]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x30]
mov dword [eax + 0xc], edx
call dword [ecx + 0xe8]
cmp eax, edi
jge 0x49ce8d
push 0x518788
push esi
push eax
call fcn.004cf736
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x3c]
movsx esi, word [ebp - 0x12]
push eax
mov byte [ebp - 4], 0xf
call edi
test eax, eax
jge 0x49ceab
push eax
call fcn.004cf728
lea ecx, [ebp - 0x1c]
call fcn.00405de0
test esi, esi
jne 0x49d1e7
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x14], esi
push ecx
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x2c], esp
mov esi, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x28], ecx
test ecx, ecx
mov byte [ebp - 4], 0x12
je 0x49cef5
push 0x5218b4
call fcn.00409380
jmp 0x49cef7
xor eax, eax
test eax, eax
mov byte [ebp - 4], 0x11
mov dword [esi], eax
jne 0x49cf0b
push 0x8007000e
call fcn.004cf728
push ecx
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x5218b0
call fcn.00440bf0
mov ecx, ebx
mov byte [ebp - 4], 0x14
call fcn.00447640
lea edx, [ebp - 0x24]
mov ecx, eax
push edx
mov byte [ebp - 4], 0x11
call fcn.0049d210
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
call fcn.00440850
lea ecx, [ebp - 0x24]
call fcn.00404a80
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x6c]
push ecx
call esi
mov eax, dword [ebx]
mov byte [ebp - 4], 0x15
test eax, eax
mov word [ebp - 0x6c], 1
jne 0x49cf72
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx]
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x24]
push eax
push edx
call fcn.0043f860
lea ecx, [ebp - 0x24]
call fcn.00404a80
mov dword [ebp - 0x1c], 0
mov eax, 2
mov ecx, 1
mov word [ebp - 0x7c], ax
mov word [ebp - 0x74], cx
mov word [ebp - 0x34], cx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x17
push ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
call edi
test eax, eax
jge 0x49cfda
push eax
call fcn.004cf728
lea edx, [ebp - 0x5c]
push edx
call esi
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x5c]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x49cff8
push eax
call fcn.004cf728
push ecx
mov bl, 0x18
mov dword [ebp - 0x2c], esp
mov esi, esp
push 0xc
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x28], ecx
test ecx, ecx
mov byte [ebp - 4], 0x19
je 0x49d026
push 0x5265c0
call fcn.00409380
jmp 0x49d028
xor eax, eax
test eax, eax
mov byte [ebp - 4], bl
mov dword [esi], eax
jne 0x49d03b
push 0x8007000e
call fcn.004cf728
push ecx
mov byte [ebp - 4], 0x1a
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x5218a4
call fcn.00440bf0
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 0x1b
mov ecx, edi
call fcn.00447640
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x24]
push edx
push ecx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.0049d320
mov edx, dword [eax]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00440850
lea ecx, [ebp - 0x24]
call fcn.00404a80
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x17
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x49d09a
push eax
call fcn.004cf728
cmp dword [edi], 0
jne 0x49d0a9
push 0x80004003
call fcn.004cf728
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edi]
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.0040f3d0
lea ecx, [ebp - 0x24]
call fcn.00404a80
mov esi, dword [ebp - 0x18]
push 0xc
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x2c], ecx
test ecx, ecx
mov byte [ebp - 4], 0x1c
je 0x49d0e2
push esi
call fcn.00409380
jmp 0x49d0e4
xor eax, eax
test eax, eax
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x20], eax
jne 0x49d0fc
push 0x8007000e
call fcn.004cf728
mov eax, dword [ebp - 0x20]
mov bl, 0x1d
mov word [ebp - 0x3c], 8
test eax, eax
mov byte [ebp - 4], bl
je 0x49d10f
mov esi, dword [eax]
jmp 0x49d111
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x49d131
push 0x8007000e
call fcn.004cf728
mov eax, dword [edi]
mov byte [ebp - 4], 0x1e
test eax, eax
jne 0x49d145
push 0x80004003
call fcn.004cf728
mov eax, dword [ebp - 0x3c]
sub esp, 0x10
mov esi, dword [edi]
mov edx, esp
push esi
mov ecx, dword [esi]
mov dword [edx], eax
mov eax, dword [ebp - 0x38]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [edx + 0xc], eax
call dword [ecx + 0x108]
test eax, eax
jge 0x49d17c
push 0x518788
push esi
push eax
call fcn.004cf736
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x3c]
push ecx
mov byte [ebp - 4], bl
call esi
test eax, eax
jge 0x49d195
push eax
call fcn.004cf728
lea ecx, [ebp - 0x20]
call fcn.00405de0
lea edx, [ebp - 0x7c]
mov byte [ebp - 4], 0x16
push edx
call esi
test eax, eax
jge 0x49d1b1
push eax
call fcn.004cf728
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x15
test eax, eax
je 0x49d1c2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 0x11
push edx
call esi
test eax, eax
jge 0x49d1d6
push eax
call fcn.004cf728
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
test eax, eax
je 0x49d1e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret