Function at 0x404650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e1b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x417440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_3824
push 0
call sub.MFC80U.DLL_Ordinal_1049
add esp, 4
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea edi, [esi + 0x104]
push edi
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5113
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0040b540
mov ecx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test bl, bl
je 0x404733
push 1
push str.XML_Params_file_does_not_exist_at:
call fcn.0040c580
add esp, 8
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call fcn.0040b540
push 1
mov ecx, eax
mov dword [ebp - 4], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call fcn.0040c580
add esp, 8
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x1c]
push edx
mov ecx, edi
call fcn.0040b540
mov ecx, eax
mov dword [ebp - 4], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov ecx, esi
call fcn.004030b0
test al, al
lea ecx, [ebp - 0x1c]
sete bl
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test bl, bl
je 0x404791
push 1
push str.Could_not_setup_application_registry
call fcn.0040c580
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.0040b540
mov ecx, eax
mov dword [ebp - 4], 2
lea ebx, [esi + 0xa4]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
mov ecx, ebx
call fcn.00406590
test al, al
lea ecx, [ebp - 0x1c]
sete byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp byte [ebp - 0x11], 0
je 0x4047f8
push 1
push str.Could_not_create_DIM_job
call fcn.0040c580
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040b570
push eax
mov ecx, ebx
call fcn.00404c10
push 8
mov dword [ebp - 4], 3
call sub.MFC80U.DLL_Ordinal_762
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
test edi, edi
mov byte [ebp - 4], 4
je 0x404853
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call fcn.004027c0
push 0
mov ecx, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push 1
push 1
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_545
jmp 0x404855
xor eax, eax
test byte [ebp - 0x18], 1
mov dword [esi + 0x100], eax
je 0x40486a
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov dword [ebp - 4], 0xffffffff
jmp 0x404883
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404923
lea ecx, [esi + 0xa4]
call fcn.00404bb0
test al, al
jne 0x4048fd
push 1
push str.Notifying_existing_instance_to_pop_up
call fcn.0040c580
add esp, 8
lea edx, [ebp - 0x20]
push edx
mov ecx, esi
call fcn.00402790
push 0
mov ecx, eax
mov dword [ebp - 4], 8
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push 0
push 0
lea ecx, [ebp - 0x28]
call sub.MFC80U.DLL_Ordinal_378
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x28]
call sub.MFC80U.DLL_Ordinal_628
push 1
push str.Instance_already_exists__exiting...
call fcn.0040c580
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
mov ebx, 9
push str.Locking_instance
mov dword [ebp - 4], ebx
call fcn.0040c580
mov ecx, dword [esi + 0x100]
add esp, 8
push 1
push ecx
lea ecx, [ebp - 0x34]
call sub.MFC80U.DLL_Ordinal_548
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.004043f0
lea ecx, [ebp - 0x34]
call sub.MFC80U.DLL_Ordinal_6201
push 1
push str.Unlocking_instance
call fcn.0040c580
add esp, 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call sub.MFC80U.DLL_Ordinal_6201
jmp 0x40490c