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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d906
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
lea eax, [ebp - 0x428]
mov esi, ecx
push str.DeleteMonitorW2K
push eax
mov dword [ebp - 0x430], esi
call fcn.0040ac70
add esp, 0xc
push edi
push esi
push str.lpszMonitor___s__bDebug___d
lea ecx, [ebp - 0x428]
push 1
push ecx
mov dword [ebp - 4], edi
call fcn.0040aed0
add esp, 0x14
cmp esi, edi
jne 0x417b2c
push edi
push str.return___08x
lea edx, [ebp - 0x428]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x417d9e
call fcn.00442c4d
mov ebx, dword [eax + 4]
push esi
lea ecx, [ebp - 0x42c]
call fcn.00401210
mov byte [ebp - 4], 1
mov esi, dword [ebx + 0x134]
cmp esi, edi
jne 0x417b8d
push edi
push str.return___08x
lea eax, [ebp - 0x428]
push 2
push eax
call fcn.0040aed0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417b13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x417b13
mov eax, esi
nop
mov eax, dword [eax]
mov ecx, 0x58a8c8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417bbd
test dx, dx
je 0x417bb9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417bbd
add eax, 4
add ecx, 4
test dx, dx
jne 0x417b97
xor eax, eax
jmp 0x417bc2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x417d4b
mov eax, dword [esi + edi*8]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x417bfd
mov ecx, dword [ebp - 0x42c]
push eax
push ecx
call fcn.00533c47
add esp, 8
test eax, eax
je 0x417c07
mov esi, dword [ebx + 0x134]
inc edi
lea eax, [esi + edi*8]
jmp 0x417b90
push 0x80004005
call fcn.004010a0
mov edx, dword [ebx + 0x134]
mov eax, dword [edx + edi*8 + 4]
cmp dword [eax - 4], 1
lea esi, [edx + edi*8 + 4]
jle 0x417c26
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.00401840
mov edi, dword [esi]
test edi, edi
je 0x417d4b
call fcn.0040e2f0
mov ecx, str.SPOOLER
call fcn.0040e4e0
mov ecx, dword [ebp - 0x430]
push ecx
push 0
push 0
call dword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x417c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.005373f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edi
je 0x417cb6
lea edx, [ebp - 0x218]
push edx
push str._s_s
lea eax, [ebp - 0x420]
push eax
jmp 0x417cc9
lea ecx, [ebp - 0x218]
push ecx
push 0x58b914
lea edx, [ebp - 0x420]
push edx
call ebx
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
lea ecx, [ebp - 0x218]
push 0
push ecx
call fcn.005373f0
add esp, 0xc
lea esi, [ebp - 0x218]
call fcn.00413bd0
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
push edi
je 0x417d22
mov eax, esi
push eax
push str._s_s
lea ecx, [ebp - 0x420]
push ecx
jmp 0x417d35
lea edx, [ebp - 0x218]
push edx
push 0x58b914
lea eax, [ebp - 0x420]
push eax
call ebx
add esp, 0x10
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
jmp 0x417d4d
xor esi, esi
push esi
push str.return___08x
lea edx, [ebp - 0x428]
push 2
push edx
call fcn.0040aed0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417d8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ae50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret