Function at 0x42e940
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x483c9b
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x4c33d0]
xor eax, esp
mov dword [esp + 0x674], eax
push esi
push edi
mov eax, dword [0x4c33d0]
xor eax, esp
push eax
lea eax, [esp + 0x688]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [esp + 0x28]
push eax
push 0
xorps xmm0, xmm0
push 0x30
mov dword [esp + 0x34], 0
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, edi
call dword [sym.imp.ouilibx.dll_public:_struct_HWND____const___thiscall_OUI::COVWnd::GetSafeHwnd_void_]
lea ecx, [esp + 0x34]
push ecx
xorps xmm0, xmm0
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], 0
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
push 0x206
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
xor eax, eax
push eax
mov word [esp + 0x274], ax
lea eax, [esp + 0x276]
push eax
call sub.MSVCR110.dll_memset
mov eax, dword [0x4c9770]
add esp, 0xc
test al, 1
jne 0x42ea32
or eax, 1
push 0x488dc0
mov dword [0x4c9770], eax
call fcn.0047ce4d
add esp, 4
sub esp, 8
lea eax, [esp + 0x274]
push eax
call fcn.0045a650
xor eax, eax
push 0x206
push eax
mov word [esp + 0x47c], ax
lea eax, [esp + 0x47e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x26c]
push str.preference.ini
push eax
lea eax, [esp + 0x47c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x208
lea eax, [esp + 0x64]
push 0
push eax
mov dword [esp + 0x68], vtable.CProfileIni.0
call sub.MSVCR110.dll_memset
lea eax, [esp + 0x480]
push eax
lea eax, [esp + 0x70]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x18
lea eax, [esp + 0x60]
push eax
call esi
test eax, eax
jne 0x42eae0
push eax
push eax
push 1
push eax
push eax
push eax
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42eae0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x694], 0
call esi
test eax, eax
jne 0x42eafb
or esi, 0xffffffff
jmp 0x42eb14
lea eax, [esp + 0x60]
push eax
push 0xffffffffffffffff
push str.suspend_xpos
push str.suspend
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42eb28
or edx, 0xffffffff
jmp 0x42eb41
lea eax, [esp + 0x60]
push eax
push 0xffffffffffffffff
push str.suspend_ypos
push str.suspend
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
cmp esi, 0xffffffff
je 0x42eb85
cmp edx, 0xffffffff
je 0x42eb85
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
cmp esi, ecx
cmovg esi, ecx
sub eax, dword [esp + 0x18]
push 0x15
cmp edx, eax
cmovg edx, eax
cmp edx, dword [esp + 0x2c]
push 0xffffffffffffffff
cmovl edx, dword [esp + 0x30]
cmp esi, dword [esp + 0x2c]
push 0xffffffffffffffff
cmovl esi, dword [esp + 0x30]
push edx
push esi
mov esi, dword [esp + 0x34]
jmp 0x42ebec
mov esi, dword [esp + 0x20]
xorps xmm0, xmm0
push esi
mov dword [esp + 0x48], 0
movq qword [esp + 0x4c], xmm0
mov dword [esp + 0x54], 0
call dword [sym.imp.USER32.dll_GetParent]
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x42ebc4
movdqa xmm0, xmmword [esp + 0x24]
movdqa xmmword [esp + 0x44], xmm0
jmp 0x42ebd0
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x15
push 0xffffffffffffffff
mov eax, 0x96
sub eax, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x2c]
sub eax, 0x32
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [edi + 0xd4], 0
mov byte [edi + 0xd5], 1
je 0x42ec0f
push 1
push ecx
mov ecx, edi
call fcn.0042e7f0
mov ecx, dword [esp + 0x688]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x674]
xor ecx, esp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret