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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566d76
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5c0490]
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.00401190
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.00401410
add esp, 0x14
cmp esi, edi
jne 0x4209ac
push edi
push str.return___08x
lea edx, [ebp - 0x428]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x420c1e
call fcn.0044b52d
mov ebx, dword [eax + 4]
push esi
lea ecx, [ebp - 0x42c]
call fcn.00404f00
mov byte [ebp - 4], 1
mov esi, dword [ebx + 0x134]
cmp esi, edi
jne 0x420a0d
push edi
push str.return___08x
lea eax, [ebp - 0x428]
push 2
push eax
call fcn.00401410
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 0x420993
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x420993
mov eax, esi
nop
mov eax, dword [eax]
mov ecx, 0x5988ec
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x420a3d
test dx, dx
je 0x420a39
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x420a3d
add eax, 4
add ecx, 4
test dx, dx
jne 0x420a17
xor eax, eax
jmp 0x420a42
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x420bcb
mov eax, dword [esi + edi*8]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x420a7d
mov ecx, dword [ebp - 0x42c]
push eax
push ecx
call fcn.0053d3bf
add esp, 8
test eax, eax
je 0x420a87
mov esi, dword [ebx + 0x134]
inc edi
lea eax, [esi + edi*8]
jmp 0x420a10
push 0x80004005
call fcn.00404160
mov edx, dword [ebx + 0x134]
mov eax, dword [edx + edi*8 + 4]
cmp dword [eax - 4], 1
lea esi, [edx + edi*8 + 4]
jle 0x420aa6
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.00405650
mov edi, dword [esi]
test edi, edi
je 0x420bcb
call fcn.00416ee0
mov ecx, str.SPOOLER
call fcn.004170d0
mov ecx, dword [ebp - 0x430]
push ecx
push 0
push 0
call dword [sym.imp.WINSPOOL.DRV_DeleteMonitorW]
test eax, eax
jne 0x420ada
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.00541d20
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 0x420b36
lea edx, [ebp - 0x218]
push edx
push str._s_s
lea eax, [ebp - 0x420]
push eax
jmp 0x420b49
lea ecx, [ebp - 0x218]
push ecx
push 0x594b70
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.00541d20
add esp, 0xc
lea esi, [ebp - 0x218]
call fcn.0041c670
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
push edi
je 0x420ba2
mov eax, esi
push eax
push str._s_s
lea ecx, [ebp - 0x420]
push ecx
jmp 0x420bb5
lea edx, [ebp - 0x218]
push edx
push 0x594b70
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 0x420bcd
xor esi, esi
push esi
push str.return___08x
lea edx, [ebp - 0x428]
push 2
push edx
call fcn.00401410
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 0x420c0a
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.00401370
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.0053ca73
mov esp, ebp
pop ebp
ret