Function at 0x4020e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572db4
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x74
mov eax, dword [0x5f4900]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x3c], 0
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [ebp - 0x2c]
call fcn.0042ab6a
push 0
call fcn.0042c97f
add esp, 4
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov eax, dword [ebp - 0x2c]
add eax, 0x16c
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.0042ad67
mov ecx, dword [ebp - 0x2c]
add ecx, 0x16c
call fcn.00407a10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402194
push 1
push str.XML_Params_file_does_not_exist_at:
call fcn.00419830
add esp, 8
push 1
mov ecx, dword [ebp - 0x2c]
add ecx, 0x16c
call fcn.00407a10
push eax
call fcn.00419830
add esp, 8
xor eax, eax
jmp 0x4025e0
call fcn.0040b3f0
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x1a8], eax
xor edx, edx
mov word [ebp - 0x28], dx
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
push 0xa
push 0xa
lea ecx, [ebp - 0x28]
push ecx
push 0xd
call fcn.00550c77
add esp, 0x10
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x34]
call fcn.00403a10
mov dword [ebp - 4], 0
push 0x588810
lea ecx, [ebp - 0x34]
call fcn.00403f40
push 0x14
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.00550230
add esp, 0xc
push 0xa
push 0xa
lea ecx, [ebp - 0x28]
push ecx
push 0
call fcn.00550c77
add esp, 0x10
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x34]
call fcn.00403f40
push 0x588814
lea ecx, [ebp - 0x34]
call fcn.00403f40
push 0x14
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.00550230
add esp, 0xc
push 0xa
push 0xa
lea ecx, [ebp - 0x28]
push ecx
push 0
call fcn.00550c77
add esp, 0x10
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x34]
call fcn.00403f40
push 0x588818
lea ecx, [ebp - 0x34]
call fcn.00403f40
push 0x14
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.00550230
add esp, 0xc
push 0xa
push 0xa
lea ecx, [ebp - 0x28]
push ecx
push 0x26b
call fcn.00550c77
add esp, 0x10
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x34]
call fcn.00403f40
lea ecx, [ebp - 0x38]
call fcn.00403a90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00403e60
push eax
push 0x58881c
lea eax, [ebp - 0x38]
push eax
call fcn.00404760
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.00403e60
push eax
push 0x58883c
push 0x588844
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x1a8]
mov eax, dword [ebp - 0x2c]
mov edx, dword [edx]
mov ecx, dword [eax + 0x1a8]
mov eax, dword [edx]
call eax
mov byte [ebp - 0x2d], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x16c
call fcn.00407a70
push eax
lea ecx, [ebp - 0x40]
call fcn.00403a10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00403e60
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x16c
call fcn.00407a50
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x16c
call fcn.00407a10
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0xd0
call fcn.0041a860
mov byte [ebp - 0x2d], al
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
jne 0x402388
push 1
push str.Could_not_create_DIM_job
call fcn.00419830
add esp, 8
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00403b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403b70
mov eax, dword [ebp - 0x54]
jmp 0x4025e0
mov ecx, dword [ebp - 0x2c]
add ecx, 0x16c
call fcn.00407a30
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0xd0
call fcn.0041cdc0
mov byte [ebp - 4], 3
push 8
call fcn.00403c80
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x44], 0
je 0x4023fb
push 0
lea edx, [ebp - 0x5c]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.004037f0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x3c]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00403e60
push eax
push 1
push 1
mov ecx, dword [ebp - 0x44]
call fcn.0042d646
mov dword [ebp - 0x48], eax
jmp 0x402402
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x68], edx
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x168], ecx
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x3c]
and edx, 1
je 0x402436
and dword [ebp - 0x3c], 0xfffffffe
lea ecx, [ebp - 0x5c]
call fcn.00403b70
jmp 0x40243e
mov dword [ebp - 4], 2
jmp 0x40244e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40251d
mov ecx, dword [ebp - 0x2c]
add ecx, 0xd0
call fcn.0041d100
movzx eax, al
test eax, eax
jne 0x4024d3
push 1
push str.Notifying_existing_instance_to_pop_up
call fcn.00419830
add esp, 8
push 0
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00403760
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x64]
call fcn.00403e60
push eax
push 0
push 0
lea ecx, [ebp - 0x78]
call fcn.0042d5fb
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x50]
call fcn.00403b70
lea ecx, [ebp - 0x78]
call fcn.004050e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.0042d6c7
push 1
push str.Instance_already_exists__exiting...
call fcn.00419830
add esp, 8
mov dword [ebp - 0x58], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00403b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403b70
mov eax, dword [ebp - 0x58]
jmp 0x4025e0
mov byte [ebp - 4], 0xb
push 1
push str.Locking_instance
call fcn.00419830
add esp, 8
push 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x168]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0042d691
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2c]
call fcn.00402640
lea ecx, [ebp - 0x84]
call fcn.0042d748
push 1
push str.Unlocking_instance
call fcn.00419830
add esp, 8
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x84]
call fcn.00403be0
jmp 0x40259f
mov dword [ebp - 4], 2
jmp 0x4025af
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00403b70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00403b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403b70
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005502f8
mov esp, ebp
pop ebp
ret