Function at 0x412630
Capabilities:
Check if file exists
Delete file
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45775b
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x484], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x49c]
mov dword fs:[0], eax
mov eax, 0x45c6da
xor edi, edi
mov ebx, ecx
cmp ebx, edi
mov esi, str.CP_Language_Monitor
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], str.CPMON95.DLL
mov dword [esp + 0x2c], str.CPMONNT.DLL
mov dword [esp + 0x30], str.PB2_Language_Monitor
mov dword [esp + 0x34], str.NBMON95.DLL
mov dword [esp + 0x38], str.NBMONNT.DLL
mov dword [esp + 0x3c], str.CJL_Language_Monitor
mov dword [esp + 0x40], str.CJLMON.DLL
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], str.CJL_Language_Monitor_LIPS4
mov dword [esp + 0x4c], str.CJLMON4.DLL
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], str.CJL_Language_Monitor2
mov dword [esp + 0x58], str.AUCJLM9X.DLL
mov dword [esp + 0x5c], str.AUCJLMNT.DLL
mov dword [esp + 0x60], str.CPCA_Language_Monitor2
mov dword [esp + 0x64], str.AUCPLM9X.DLL
mov dword [esp + 0x68], str.AUCPLMNT.DLL
mov dword [esp + 0x6c], str.CPCA_Language_Monitor3
mov dword [esp + 0x70], str.CNAS0MM9.DLL
mov dword [esp + 0x74], str.CNAS0MMK.DLL
mov dword [esp + 0x78], str.CPCA_Language_Monitor3a
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], str.CnAS0MNK.DLL
mov dword [esp + 0x84], eax
jne 0x412742
xor eax, eax
jmp 0x412c02
cmp dword [esp + 0x4ac], 1
jne 0x41275a
push edi
push str.DeleteMonitorW2K_Delete_Monitor_Name_
push ebx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.004048c0
mov ebp, eax
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebp
call fcn.004027b0
mov dword [esp + 0x4a4], edi
cmp dword [esp + 0x4ac], 1
jne 0x412790
push 0
push str.DeleteMonitorW2K_Search_Monitor_
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.00440d82
add esp, 8
test eax, eax
je 0x4127b0
mov esi, dword [esp + edi*4 + 0x30]
add edi, 3
cmp byte [esi], 0
jne 0x412776
jmp 0x4127cc
cmp ebp, 2
je 0x4127c4
cmp ebp, 3
je 0x4127c4
mov ecx, dword [esp + edi*4 + 0x2c]
mov dword [esp + 0x14], ecx
jmp 0x4127cc
mov edx, dword [esp + edi*4 + 0x28]
mov dword [esp + 0x14], edx
mov eax, dword [esp + edi*4 + 0x24]
cmp byte [eax], 0
je 0x412bd3
cmp ebp, 5
je 0x4127e8
cmp ebp, 6
je 0x4127e8
cmp ebp, 0xa
jne 0x4127ff
push str.SPOOLER
call fcn.00404f90
push str.SPOOLER
call fcn.0040c410
add esp, 8
push ebx
push 0
push 0
call sub.WINSPOOL.DRV_DeleteMonitorA
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x412847
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x4ac], 0
je 0x41287b
push eax
lea ecx, [esp + 0x8c]
push str.WinAPI_DeleteMonitor__ERROR_n_Error_Code:__d_
push ecx
call ebx
add esp, 0xc
push 0
push str.DeleteMonitorW2K
lea edx, [esp + 0x90]
push edx
jmp 0x412873
cmp dword [esp + 0x4ac], 0
je 0x41287b
push edi
lea eax, [esp + 0x8c]
push str.WinAPI_DeleteMonitor__OK_n_Monitor_Point:__d_
push eax
call ebx
add esp, 0xc
push 0
push str.DeleteMonitorW2K
lea ecx, [esp + 0x90]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x104
lea edx, [esp + 0x190]
push 0
push edx
call fcn.004413c0
add esp, 0xc
cmp ebp, 2
je 0x4128b1
cmp ebp, 3
je 0x4128b1
push 0x104
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4128c1
lea ecx, [esp + 0x18c]
push ecx
call fcn.0040cb30
add esp, 4
lea esi, [esp + 0x18c]
lea edx, [esp + 0x18c]
sub esi, 1
push edx
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi], 0x5c
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18c]
push eax
lea edx, [esp + 0x294]
push ecx
je 0x4128fe
push 0x45ce28
jmp 0x412903
push 0x45ccb8
push edx
call ebx
add esp, 0x10
cmp dword [esp + 0x4ac], 0
je 0x412944
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0x8c]
push str.Delete_File:__s_
push ecx
call ebx
add esp, 0xc
push 0
push str.DeleteMonitorW2K
lea edx, [esp + 0x90]
push edx
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 eax, [esp + 0x2a8]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x412ac8
cmp eax, 3
je 0x412ac8
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x4129a1
cmp eax, 3
jne 0x412ac8
push 0x104
lea ecx, [esp + 0x398]
push 0
push ecx
call fcn.004413c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x398]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x394]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.WININIT.INI
lea ecx, [esp + 0x398]
push 0x104
push ecx
call fcn.00442464
add esp, 0xc
cmp dword [esp + 0x4ac], 0
je 0x412a2e
lea edx, [esp + 0x394]
push edx
lea eax, [esp + 0x8c]
push str.INITIAL_File:__s_
push eax
call ebx
add esp, 0xc
push 0
push str.DeleteMonitorW2K
lea ecx, [esp + 0x90]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x3ac]
push edx
call esi
cmp eax, 0xffffffff
jne 0x412a67
cmp dword [esp + 0x4ac], 0
je 0x412ac8
push 0
push str.DeleteMonitorW2K
push str.Wininit.ini_OPEN_ERROR
jmp 0x412ac0
push eax
call ebp
lea eax, [esp + 0x394]
push eax
lea ecx, [esp + 0x294]
push ecx
push str.NULL
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x412ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x4ac], 0
je 0x412ac8
push eax
lea edx, [esp + 0x8c]
push str.WritePrivateProfileString_Error:_d
push edx
call ebx
add esp, 0xc
push 0
push str.DeleteMonitorW2K
lea eax, [esp + 0x90]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x290]
push ecx
call edi
mov ebp, dword [esp + 0x4ac]
mov esi, eax
test esi, esi
jne 0x412afe
test ebp, ebp
je 0x412afe
push eax
push str.DeleteMonitorW2K
push str.WinAPI_DeleteFile__ERROR
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x412bd5
cmp eax, 3
je 0x412bd5
push 0x104
lea edx, [esp + 0x190]
push 0
push edx
call fcn.004413c0
lea eax, [esp + 0x198]
push eax
call fcn.0040cb30
add esp, 0x10
lea ecx, [esp + 0x18c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x20]
cmp byte [eax + edx], 0x5c
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18c]
push eax
lea edx, [esp + 0x294]
push ecx
je 0x412b6b
push 0x45ce28
jmp 0x412b70
push 0x45ccb8
push edx
call ebx
add esp, 0x10
test ebp, ebp
je 0x412bab
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0x8c]
push str.Delete_File:__s_
push ecx
call ebx
add esp, 0xc
push 0
push str.DeleteMonitorW2K_for_WinNT_Win2000_
lea edx, [esp + 0x90]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 0x290]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x412bd5
test ebp, ebp
je 0x412bd5
push eax
push str.DeleteMonitorW2K
push str.WinAPI_DeleteFile_NT_2K___ERROR
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x412bd5
xor esi, esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x4a4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412c00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x49c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x484]
xor ecx, esp
call fcn.0044027a
add esp, 0x494
ret