Function at 0x4115a0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b2c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push edi
mov edi, 1
push 0x4d0ebc
lea ecx, [esp + 0x10]
mov word [esp + 0x16], 0
mov word [esp + 0x14], 3
mov word [esp + 0x1a], 0
mov word [esp + 0x18], di
call sub.MFC42u.DLL_CString::CString_4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push 0x1404c10
push ecx
mov dword [esp + 0x70], 0
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x4118e9
push 0x4d0ebc
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
push ecx
lea eax, [esp + 0x10]
mov edx, esp
mov dword [esp + 0x2c], esp
push eax
push 0x1404c10
push edx
mov dword [esp + 0x74], edi
call sub.MFC42u.DLL_operator
lea ecx, [esp + 0x28]
push ecx
call fcn.00427c70
add esp, 8
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
call fcn.004b0208
lea edx, [esp + 0x48]
lea eax, [esp + 0x10]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x70], 4
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x74], 5
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x70], 4
call fcn.004224e0
mov eax, dword [esp + 0x5c]
add esp, 0xc
xor ebp, ebp
test eax, eax
jle 0x411883
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [esp + 0x20]
push ebp
push eax
lea ecx, [esp + 0x50]
call fcn.00401460
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 6
call fcn.004b0208
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x70], 7
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x74], 8
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x70], 7
call fcn.004224e0
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, 6
jne 0x41185a
lea ecx, [esp + 0x1c]
push 2
push ecx
lea ecx, [esp + 0x3c]
call fcn.00401460
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x68], 9
lea ecx, [eax + 8]
call sub.MFC42u.DLL_CString::operator_2
push str.Add_Device
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x28]
push 3
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0xa
call fcn.00401460
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
push edx
push eax
call edi
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 9
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x4117f2
mov edx, dword [0x5301e0]
push 0
push ecx
inc edx
mov ecx, esp
mov dword [esp + 0x38], esp
push 1
push ecx
lea ecx, [esp + 0x44]
mov dword [0x5301e0], edx
call fcn.00401460
push ecx
mov byte [esp + 0x70], 0xb
mov ebx, esp
mov dword [esp + 0x38], esp
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.IMONITOR_ID_30002
jmp 0x41182c
mov ebx, dword [0x5301e0]
push 0
push ecx
inc ebx
mov edx, esp
mov dword [esp + 0x38], esp
push 1
push edx
lea ecx, [esp + 0x44]
mov dword [0x5301e0], ebx
call fcn.00401460
push ecx
mov byte [esp + 0x70], 0xc
mov ebx, esp
mov dword [esp + 0x38], esp
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.IMONITOR_ID_30001
call sub.MFC42u.DLL_CString::CString_4
push 0x4e2a30
push ebx
call fcn.004285b0
add esp, 0xc
mov byte [esp + 0x70], 9
call fcn.004016e0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 6
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 4
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x50]
inc ebp
cmp ebp, eax
jl 0x4116d8
push 0x4d0ebc
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_4
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
push 0x1404c10
push ecx
mov byte [esp + 0x70], 0xd
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 3
call sub.MFC42u.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x24]
mov dword [esp + 0x64], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x5c]
pop edi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret