Function at 0x404d00
Capabilities:
Delete file
Get common file path

Disassembly:
mov al, byte [0x42d8e4]
sub esp, 0x314
push ebx
xor ebx, ebx
push ebp
push esi
cmp al, bl
push edi
mov byte [0x431623], bl
je 0x404f99
lea eax, [esp + 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x220]
push 0x41d078
push ecx
lea edx, [esp + 0x20]
push str._s_s
push edx
call fcn.00410876
lea eax, [esp + 0x28]
push 0x41d558
push eax
push 0x41e1a4
call fcn.0040a040
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x1c
test eax, eax
jne 0x404eb5
lea ecx, [esp + 0x220]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x220]
push 0x41d078
push edx
lea eax, [esp + 0x20]
push str._sDrivers_s
push eax
call fcn.00410876
lea ecx, [esp + 0x28]
push ecx
push str.RCDBGSYS
call fcn.00409fc0
add esp, 0x18
test al, al
jne 0x404df8
lea edx, [esp + 0x11c]
push edx
call fcn.00401900
push eax
lea eax, [esp + 0x20]
push eax
push str.Could_not_extract_DebugView_driver_to__s_s
push 0x435820
call fcn.00410876
mov esi, dword [esp + 0x33c]
add esp, 0x14
push 0x10
push 0x41d1a4
push 0x435820
push esi
call ebp
jmp 0x404ebc
lea ecx, [esp + 0x18]
push 0x41d558
push ecx
push 0x41e1a4
call fcn.0040a040
add esp, 0xc
test eax, eax
jne 0x404eb5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x490
jne 0x404e2d
push str.File_Not_Found
jmp 0x404e7a
call esi
cmp eax, 5
je 0x404e75
call esi
cmp eax, 3
je 0x404e75
call esi
cmp eax, 0x570
jne 0x404e53
lea eax, [esp + 0x11c]
push str.This_version_of_DebugView_will_not_capture_kernel_debug_output_for_this_version_of_Windows._nCheck_the_Sysinternals_site_for_updates.
push eax
jmp 0x404e82
push 0x435820
call fcn.00401900
push eax
lea ecx, [esp + 0x124]
push str.Error_loading_DebugView_driver_s_nMake_sure_that_you_have_the_Load_Drivers_and_Debug_privileges_in_order_to__nmonitor_kernel_mode_debug_prints.
push ecx
call fcn.00410876
add esp, 0x10
jmp 0x404e8a
push str.Cannot_connect_to_local_system_because_it_is_already_nconnected_to_another_instance_of_DebugView.
lea edx, [esp + 0x120]
push edx
call fcn.00410876
add esp, 8
lea eax, [esp + 0x11c]
push eax
push 0x435820
call fcn.00410876
mov ecx, dword [esp + 0x330]
add esp, 8
push 0x10
push 0x41d1a4
push 0x435820
push ecx
call ebp
mov esi, dword [esp + 0x328]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x41d558]
cmp eax, 0xffffffff
je 0x404f29
lea ecx, [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push ecx
lea edx, [esp + 0x1c]
push 4
push edx
push ebx
push ebx
push 0x83050024
push eax
call edi
test eax, eax
je 0x404efc
cmp dword [esp + 0x14], 0x320
je 0x404f18
push 0x10
push 0x41d1a4
push str.DebugView_has_found_a_previously_loaded_DebugView_driver_with_a_version_incompatable_with_the_nuser_interface._Please_reboot_the_system_and_restart_DebugView_to_synchronize_the_interface_and_driver.
push esi
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x314
ret
mov ecx, dword [0x41d558]
cmp ecx, 0xffffffff
jne 0x405154
jmp 0x404f2f
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [0x4357f0]
push 2
push 0x9c5f
push eax
mov byte [0x431623], 1
mov dword [0x432500], 0x4247e4
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [0x432624]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push 0x9c5f
push 0x401
push ecx
call esi
mov edx, dword [0x4357f0]
push 2
push 0x9c5a
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x432624]
push ebx
push 0x9c5a
push 0x401
push eax
call esi
jmp 0x40513e
call fcn.00401440
mov ecx, dword [esp + 0x32c]
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, ebx
mov dword [ecx], eax
jne 0x404fc6
push 0x30
push 0x41d1a4
push str.Failed_to_install_Win32_OutputDebugString_hook.
push ebx
call ebp
mov byte [0x41d55f], bl
lea edx, [esp + 0x18]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x17], 0x5c
je 0x405019
mov edi, 0x41dee0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Dbgdd.vxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.RCDBGVXD
call fcn.00409fc0
add esp, 8
test al, al
jne 0x405080
mov ecx, dword [esp + 0x328]
push 0x10
push 0x41d1a4
push str.Could_not_install_DebugView_VxD
push ecx
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x314
ret
push ebx
push 0x44000000
push ebx
push ebx
push ebx
push ebx
push str..DBGDD.VXD
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x18]
cmp eax, 0xffffffff
mov dword [0x41d558], eax
push edx
jne 0x4050d9
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x41d558]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x328]
push 0x10
push 0x41d1a4
push str.Could_not_load_device_driver.
push ecx
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x314
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x41d558]
cmp ecx, 0xffffffff
je 0x4051d6
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x83050030
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x405138
mov ecx, dword [0x41d558]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x328]
push 0x10
push 0x41d1a4
push str.Cannot_connect_to_local_system_because_it_is_already_nconnected_to_another_instance_of_DebugView.
push edx
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x314
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [0x41d558]
mov esi, dword [esp + 0x328]
cmp ecx, 0xffffffff
je 0x4051e3
mov dl, byte [0x41d55e]
lea eax, [esp + 0x10]
neg dl
push ebx
push eax
sbb edx, edx
push ebx
and edx, 4
push ebx
push ebx
add edx, 0x83050010
push ebx
push edx
push ecx
call edi
test eax, eax
je 0x405227
mov ecx, dword [0x41d558]
cmp ecx, 0xffffffff
je 0x4051e3
mov dl, byte [0x41d560]
lea eax, [esp + 0x10]
neg dl
push ebx
push eax
sbb edx, edx
push ebx
and edx, 0xfffffffc
push ebx
push ebx
add edx, 0x83050038
push ebx
push edx
push ecx
call edi
test eax, eax
je 0x405227
mov ecx, dword [0x41d558]
cmp ecx, 0xffffffff
je 0x4051e3
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x83050008
push ecx
call edi
test eax, eax
je 0x405227
mov ecx, dword [0x41d558]
jmp 0x4051e3
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [esp + 0x328]
cmp byte [0x42d8e4], bl
je 0x405249
push 0x431738
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x42fd28
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [0x41d558]
cmp ecx, 0xffffffff
je 0x405249
lea edx, [esp + 0x10]
push ebx
push edx
push 4
push 0x432500
push ebx
push ebx
push 0x83050020
push ecx
call edi
test eax, eax
jne 0x405243
push 0x10
push 0x41d1a4
push 0x41dd04
push esi
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x314
ret
mov ecx, dword [0x41d558]
cmp byte [0x41d561], bl
je 0x40529f
cmp ecx, 0xffffffff
je 0x40529f
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x83050000
push ecx
call edi
test eax, eax
jne 0x405299
push 0x10
push 0x41d1a4
push str.Unable_to_hook_kernel_debug_prints._This_version_of_DebugView_is_not_compatible_nwith_this_version_of_Windows._nCheck_the_Sysinternals_site_for_updates.
push esi
call ebp
mov ecx, dword [0x41d558]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ecx, 0xffffffff
mov byte [0x41d561], bl
mov dword [0x41d558], ecx
jmp 0x40529f
mov ecx, dword [0x41d558]
mov al, byte [0x41d55f]
cmp al, bl
jne 0x4052b0
cmp byte [0x4247ce], bl
je 0x405309
cmp byte [0x42d8e4], bl
je 0x405385
push ebx
call fcn.00402f20
add esp, 4
test al, al
jne 0x4052de
push 0x30
push 0x41d1a4
push str.Unable_to_monitor_Win32_debug_output___there_is_possibly_a_debugger_already_active.
push ebx
call ebp
mov byte [0x41d55f], bl
cmp byte [0x4247ce], bl
je 0x405309
push 1
call fcn.00402f20
add esp, 4
test al, al
jne 0x405309
push 0x30
push 0x41d1a4
push str.Unable_to_monitor_global_Win32_debug_output___there_is_possibly_a_debugger_already_active.
push ebx
call ebp
mov byte [0x4247ce], bl
push 0x431628
push str._s__local_
push 0x435820
mov byte [0x41d54c], 1
mov byte [0x43174c], 1
mov byte [0x431622], bl
call fcn.00410876
mov ecx, dword [0x4357f0]
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
add esp, 0xc
push 0x435820
push 0xc350
push ebx
push 4
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_AppendMenuA]
mov edx, dword [0x4357f0]
push 8
push 0xc350
push 4
push edx
call esi
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
cmp byte [0x41d55c], bl
je 0x4053de
mov ecx, dword [0x4313a8]
mov eax, dword [0x435804]
jmp 0x4053e9
cmp ecx, 0xffffffff
je 0x405309
neg al
lea edx, [esp + 0x10]
push ebx
sbb eax, eax
push edx
mov edx, dword [esp + 0x334]
push ebx
and al, 0xfc
push ebx
push 4
add eax, 0x8305001c
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x405309
mov eax, dword [esp + 0x328]
push 0x10
push 0x41d1a4
push 0x41dd04
push eax
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x314
ret
mov ecx, dword [0x42fd20]
mov eax, dword [0x430d88]
push ecx
push eax
mov eax, dword [0x4357f0]
push ebx
push 0xc350
push 4
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_SetMenuItemBitmaps]
mov ecx, dword [esp + 0x328]
push ebx
push ecx
call fcn.00403b40
mov edx, dword [0x4357f0]
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
add esp, 8
push 1
push 0x9c71
push edx
call esi
mov eax, dword [0x4357f0]
push ebx
push 0x9c78
push eax
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x314
ret