Function at 0x401f40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e307
mov eax, dword fs:[0]
push eax
sub esp, 0x178
push ebx
push esi
push edi
mov eax, dword [0x575c78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, esi
call fcn.00408f48
push 0
call fcn.0040e70a
add esp, 4
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
call fcn.0040cd2d
push str.Input8OneInstanceAllowed
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x402247
push str.Input8OneInstanceAllowed
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
mov eax, dword [esi + 0x48]
cmp byte [eax], 0
mov dword [ebp - 0x1c], ebx
je 0x402019
push eax
lea edi, [esi + 0xb8]
push 0x52cf90
push edi
call fcn.00401a50
add esp, 0xc
mov ecx, edi
call fcn.00401ae0
mov ecx, eax
call fcn.004017c0
push 0x52ce14
mov ecx, edi
call fcn.00401a70
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402019
push eax
push eax
push str.The_file_path_is_invalid__it_will_be_set_to_the_default_path_
call fcn.0040dde2
push 0x52ce1d
mov ecx, edi
call fcn.00401c60
push 0x52ce1d
lea ecx, [ebp - 0x10]
call fcn.00401e80
mov eax, dword [esi + 0xb8]
mov eax, dword [eax - 0xc]
mov dword [ebp - 4], 0
test eax, eax
jne 0x402139
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00401b60
push eax
lea ecx, [esi + 0xb8]
mov byte [ebp - 4], 1
call fcn.004019a0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40207c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xb8]
push ecx
lea edx, [ebp - 0x10]
push str._s_screen.cfg
push edx
call fcn.00401a50
mov eax, dword [ebp - 0x10]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402150
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00401b60
mov eax, dword [eax]
push str.LumenSoft
push eax
lea edx, [ebp - 0x14]
mov bl, 2
push edx
mov byte [ebp - 4], bl
call fcn.004074f0
add esp, 0xc
push eax
lea ecx, [esi + 0xb8]
mov byte [ebp - 4], 3
call fcn.004019a0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40211f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xb8]
push ecx
lea edx, [ebp - 0x10]
push str._s_screen.cfg
push edx
call fcn.00401a50
mov ebx, dword [ebp - 0x1c]
jmp 0x40214d
mov eax, dword [0x577258]
push eax
lea ecx, [ebp - 0x10]
push str._s_screen.cfg
push ecx
call fcn.00401a50
add esp, 0xc
push 0
lea ecx, [ebp - 0x184]
call fcn.00402b70
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 4
call fcn.00402390
test eax, eax
jne 0x4021e6
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 6
call fcn.0040ab17
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 5
call fcn.00406740
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 0
call fcn.00409fda
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40225d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 ecx, [ebp - 0x184]
mov dword [esi + 0x20], ecx
call fcn.0040a80d
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 8
call fcn.0040ab17
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 7
call fcn.00406740
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 0
call fcn.00409fda
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4021c2
mov ecx, dword [0x57725c]
push 0
push 0
push ecx
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
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