Function at 0x418da0
Capabilities:
Check if file exists
Create directory
Enumerate processes
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x439004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x16c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x294], 0x128
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [ebp - 0x294]
push eax
push esi
call sub.kernel32.dll_Process32First
test eax, eax
je 0x418e32
mov ebx, dword [sym.imp.ucrtbase.DLL__stricmp]
cmp edi, dword [ebp - 0x28c]
je 0x418e21
lea eax, [ebp - 0x270]
push str.Artists_Of_Fortune___8bit.exe
push eax
call ebx
add esp, 8
test eax, eax
je 0x418f7e
lea eax, [ebp - 0x294]
push eax
push esi
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x418e00
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x180
call sub.hge.dll_hgeCreate
push 0x417770
mov dword [0x439734], eax
push 8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [0x439734]
push 0xcb
push 0x19
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [0x439734]
push str.log.txt
push 0x1c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [0x439734]
push 0
push 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [0x439734]
push 1
push 6
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call esi
push 0xa
push edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [0x439754], xmm0
call esi
movss xmm4, dword [0x439754]
ucomiss xmm4, dword [0x434920]
movss xmm5, dword [0x433bbc]
movss xmm3, dword [0x433684]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
lahf
movss dword [0x439758], xmm0
movaps xmm2, xmm0
test ah, 0x44
jp 0x418f21
ucomiss xmm0, dword [0x43491c]
lahf
test ah, 0x44
jp 0x418f21
movaps xmm4, xmm5
mov dword [0x439758], 0x44870000
movss dword [0x439754], xmm4
movaps xmm2, xmm3
comiss xmm2, xmm3
jb 0x418f8a
movss xmm0, dword [0x4334e4]
mov eax, dword [0x439734]
push 0x780
movss dword [0x439938], xmm0
movss dword [0x43993c], xmm0
mov dword [0x439744], 0
movss dword [0x439930], xmm0
movss dword [0x439934], xmm0
mov ecx, dword [eax]
push 0x11
push eax
call dword [ecx + 0x2c]
mov eax, dword [0x439734]
push 0x438
push 0x12
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x418ff4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x4193a4
movaps xmm1, xmm2
mov ecx, dword [0x439734]
movaps xmm0, xmm4
mov dword [0x439744], 1
divss xmm1, xmm3
divss xmm0, xmm5
divss xmm3, xmm2
divss xmm5, xmm4
cvttss2si eax, xmm4
movss dword [0x439938], xmm5
push eax
movss dword [0x43993c], xmm3
movss dword [0x439930], xmm0
movss dword [0x439934], xmm1
mov edx, dword [ecx]
push 0x11
push ecx
call dword [edx + 0x2c]
cvttss2si eax, dword [0x439758]
mov ecx, dword [0x439734]
mov edx, dword [ecx]
push eax
push 0x12
push ecx
call dword [edx + 0x2c]
mov eax, dword [0x439734]
push 0x20
push 0x13
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x439734]
push 0
push 7
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
push 1
push 0x1a
push 0x439950
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jns 0x419044
mov eax, dword [0x439734]
push str.Could_not_get_Application_Data.
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 8
mov ecx, 0x4334f4
jmp 0x4190ea
mov esi, dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_PathAppendA]
push str.Oleg_Sereda
push 0x439950
call esi
push 0x439950
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_PathFileExistsA]
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x419097
push 0
push 0x439950
call ebx
test eax, eax
jne 0x419097
push str.Oleg_Sereda
mov eax, dword [0x439734]
push str.Could_not_create_directory__s.
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
mov ecx, 0x4334f4
jmp 0x4190ea
push str.Artists_Of_Fortune___8bit
push 0x439950
call esi
mov edi, 0x439950
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4190b0
mov ax, word [0x4348a4]
push 0x439950
mov word [edi], ax
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_PathFileExistsA]
test eax, eax
jne 0x4190e5
push eax
push 0x439950
call ebx
test eax, eax
jne 0x4190e5
push str.Artists_Of_Fortune___8bit
jmp 0x41907d
mov ecx, 0x439950
lea edx, [ebp - 0x16c]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4190f2
lea ecx, [ebp - 0x16c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x419106
mov eax, dword [str.artists.ini]
lea edx, [ebp - 0x16c]
mov dword [ecx], eax
mov eax, dword [0x4346f8]
mov dword [ecx + 4], eax
mov eax, dword [0x4346fc]
mov dword [ecx + 8], eax
mov eax, dword [0x439734]
push edx
push 0x1b
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
push 0x20
call fcn.0042f6d9
add esp, 4
test eax, eax
je 0x419152
mov ecx, eax
call fcn.004236e0
jmp 0x419154
xor eax, eax
mov dword [0x43972c], eax
mov eax, dword [eax + 0x18]
sub eax, 1
je 0x4191aa
sub eax, 1
je 0x41918e
sub eax, 1
jne 0x419187
push 4
call fcn.0042f6d9
add esp, 4
test eax, eax
je 0x4191c6
push str.StringsFR.txt
mov ecx, eax
call fcn.00402640
jmp 0x4191c8
mov eax, dword [0x43973c]
jmp 0x4191cd
push 4
call fcn.0042f6d9
add esp, 4
test eax, eax
je 0x4191c6
push str.StringsDE.txt
mov ecx, eax
call fcn.00402640
jmp 0x4191c8
push 4
call fcn.0042f6d9
add esp, 4
test eax, eax
je 0x4191c6
push str.StringsEN.txt
mov ecx, eax
call fcn.00402640
jmp 0x4191c8
xor eax, eax
mov dword [0x43973c], eax
push str.GAMETITLE
mov ecx, eax
call fcn.00402990
mov ecx, dword [0x439734]
push eax
push 0x1a
push ecx
mov edx, dword [ecx]
call dword [edx + 0x30]
mov eax, dword [0x43972c]
mov ecx, dword [0x439734]
cmp byte [eax + 4], 0
mov edx, dword [ecx]
sete al
movzx eax, al
push eax
push 1
push ecx
call dword [edx + 0x20]
mov eax, dword [0x439734]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp al, 1
jne 0x419223
mov ecx, dword [0x43972c]
cmp byte [ecx + 4], 0
jne 0x41923f
mov eax, dword [0x439734]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
test al, al
jne 0x41926e
mov ecx, dword [0x43972c]
cmp byte [ecx + 4], al
jne 0x41926e
sete al
mov byte [ecx + 4], al
mov ecx, dword [0x43972c]
call fcn.00423960
mov eax, dword [0x43972c]
mov ecx, dword [0x439734]
cmp byte [eax + 4], 0
mov edx, dword [ecx]
sete al
movzx eax, al
push eax
push 1
push ecx
call dword [edx + 0x20]
push 0x5bc
call fcn.0042f6d9
add esp, 4
test eax, eax
je 0x419288
mov ecx, eax
call fcn.0042a3a0
jmp 0x41928a
xor eax, eax
mov ecx, eax
mov dword [0x439738], eax
call fcn.0042a610
mov eax, dword [0x439734]
push 0x50
push 0x17
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x439734]
push 0
push 2
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [0x439734]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov eax, dword [0x439734]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
test al, al
je 0x419363
call fcn.00417f20
test al, al
je 0x4193a4
mov eax, dword [0x439734]
push 0x4183c0
push 0xa
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [0x439734]
push 0x417a30
push 0xb
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [0x439734]
push fcn.00405220
push 0xc
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [0x439734]
push 0x4183e0
push 9
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [0x439734]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [0x439730]
mov eax, dword [eax + 0x34]
cmp eax, 8
je 0x419349
cmp eax, 3
jne 0x419354
mov ecx, dword [0x439728]
call fcn.00422bc0
mov ecx, dword [0x439728]
push 0
call fcn.00420070
jmp 0x41939f
mov eax, dword [0x439734]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
lea edx, [ebp - 0x68]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x419373
mov ecx, dword [0x43973c]
push 0x10
push str.ERROR
call fcn.00402990
push eax
lea eax, [ebp - 0x68]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00417780
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f717
mov esp, ebp
pop ebp
ret 0x10