Function at 0x40e9a0
Capabilities:
Access peb ldr_data
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44827b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x488
push ebx
push esi
push edi
xor edi, edi
mov eax, 0x44b62a
mov ebx, ecx
cmp ebx, edi
mov esi, str.CP_Language_Monitor
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], str.CPMON95.DLL
mov dword [esp + 0x28], str.CPMONNT.DLL
mov dword [esp + 0x2c], str.PB2_Language_Monitor
mov dword [esp + 0x30], str.NBMON95.DLL
mov dword [esp + 0x34], str.NBMONNT.DLL
mov dword [esp + 0x38], str.CJL_Language_Monitor
mov dword [esp + 0x3c], str.CJLMON.DLL
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], str.CJL_Language_Monitor_LIPS4
mov dword [esp + 0x48], str.CJLMON4.DLL
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], str.CJL_Language_Monitor2
mov dword [esp + 0x54], str.AUCJLM9X.DLL
mov dword [esp + 0x58], str.AUCJLMNT.DLL
mov dword [esp + 0x5c], str.CPCA_Language_Monitor2
mov dword [esp + 0x60], str.AUCPLM9X.DLL
mov dword [esp + 0x64], str.AUCPLMNT.DLL
mov dword [esp + 0x68], eax
jne 0x40ea79
xor eax, eax
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 1
jne 0x40ea8d
push edi
push str.DeleteMonitorW2K_Delete_Monitor_Name_
push ebx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00404100
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.00402470
mov dword [esp + 0x49c], edi
cmp dword [ebp + 8], 1
jne 0x40eabd
push 0
push str.DeleteMonitorW2K_Search_Monitor_
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x14]
push esi
push eax
call fcn.0042de57
add esp, 8
test eax, eax
je 0x40eae2
mov esi, dword [esp + edi*4 + 0x2c]
mov al, byte [esi]
add edi, 3
test al, al
jne 0x40eaa7
mov esi, dword [esp + 0x10]
jmp 0x40eb02
mov esi, dword [esp + 0x10]
cmp esi, 2
je 0x40eafa
cmp esi, 3
je 0x40eafa
mov ecx, dword [esp + edi*4 + 0x28]
mov dword [esp + 0xc], ecx
jmp 0x40eb02
mov edx, dword [esp + edi*4 + 0x24]
mov dword [esp + 0xc], edx
mov eax, dword [esp + edi*4 + 0x20]
cmp byte [eax], 0
je 0x40ef21
cmp esi, 0xa
jne 0x40eb2b
push str.SPOOLER
call fcn.00405570
push str.SPOOLER
call fcn.00409a00
add esp, 8
push ebx
push 0
push 0
call sub.WINSPOOL.DRV_DeleteMonitorA
test eax, eax
jne 0x40eb78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
test ecx, ecx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
je 0x40ebb3
push eax
lea ecx, [esp + 0x17c]
push str.WinAPI_DeleteMonitor__ERROR_n_Error_Code:__d_
push ecx
call ebx
add esp, 0xc
push 0
push str.DeleteMonitorW2K
lea edx, [esp + 0x180]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40ebb3
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ebad
push edi
lea eax, [esp + 0x17c]
push str.WinAPI_DeleteMonitor__OK_n_Monitor_Point:__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.DeleteMonitorW2K
lea ecx, [esp + 0x180]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
cmp esi, 2
mov ecx, 0x41
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
je 0x40ebdc
cmp esi, 3
je 0x40ebdc
push 0x104
lea edx, [esp + 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40ebe9
lea eax, [esp + 0x70]
push eax
call fcn.00409d80
add esp, 4
lea esi, [esp + 0x70]
lea ecx, [esp + 0x70]
dec esi
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [eax + esi]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x70]
push edx
cmp cl, 0x5c
push eax
lea ecx, [esp + 0x288]
je 0x40ec1d
push 0x44bbe8
jmp 0x40ec22
push 0x44bbd0
push ecx
call ebx
mov eax, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x40ec60
lea edx, [esp + 0x280]
push edx
lea eax, [esp + 0x17c]
push str.Delete_File:__s_
push eax
call ebx
add esp, 0xc
push 0
push str.DeleteMonitorW2K
lea ecx, [esp + 0x180]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x298]
push edx
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x40ee17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40ee17
cmp eax, 3
je 0x40ee17
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x40ecb9
cmp eax, 3
jne 0x40ee17
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x388]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x38c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x388]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x388]
mov cl, byte [eax + edx - 1]
dec edx
cmp cl, 0x5c
je 0x40ed14
lea edi, [esp + 0x388]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ed03
mov ax, word [0x44b63c]
mov word [edi], ax
lea edi, [esp + 0x388]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ed20
mov ecx, dword [str.WININIT.INI]
mov edx, dword [0x44bf18]
mov eax, dword [0x44bf1c]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ed7d
lea ecx, [esp + 0x388]
push ecx
lea edx, [esp + 0x17c]
push str.INITIAL_File:__s_
push edx
call ebx
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0xc
push 0
push str.DeleteMonitorW2K
lea eax, [esp + 0x180]
push eax
push 0
call edi
jmp 0x40ed83
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x3a0]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x40edb9
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ee17
push 0
push str.DeleteMonitorW2K
push str.Wininit.ini_OPEN_ERROR
jmp 0x40ee13
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x388]
push edx
lea eax, [esp + 0x284]
push eax
push str.NULL
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x40ee17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40ee17
push eax
lea ecx, [esp + 0x17c]
push str.WritePrivateProfileString_Error:_d
push ecx
call ebx
add esp, 0xc
push 0
push str.DeleteMonitorW2K
lea edx, [esp + 0x180]
push edx
push 0
call edi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x280]
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x40ee51
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ee51
push esi
push str.DeleteMonitorW2K
push str.WinAPI_DeleteFile__ERROR
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x40ef23
cmp eax, 3
je 0x40ef23
lea edx, [esp + 0x70]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x70]
push edx
rep stosd dword es:[edi], eax
call fcn.00409d80
add esp, 4
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
cmp byte [eax + ecx], 0x5c
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x284]
push eax
je 0x40eeae
push 0x44bbe8
jmp 0x40eeb3
push 0x44bbd0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [ebp + 8]
add esp, 0x10
test edi, edi
je 0x40eef9
lea edx, [esp + 0x280]
push edx
lea eax, [esp + 0x17c]
push str.Delete_File:__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push str.DeleteMonitorW2K_for_WinNT_Win2000_
lea ecx, [esp + 0x180]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esp + 0x280]
push edx
call ebx
mov esi, eax
test esi, esi
jne 0x40ef23
test edi, edi
je 0x40ef23
push eax
push str.DeleteMonitorW2K
push str.WinAPI_DeleteFile_NT_2K___ERROR
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40ef23
xor esi, esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x49c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ef4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x494]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret