Function at 0x43d9a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x5c5bf0]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esp + 0x198]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x198]
dec edi
jmp 0x43d9e0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43d9e0
mov cx, word [0x566a14]
mov eax, esi
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x43d9f6
lea edi, [esp + 0x198]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43da07
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x198]
push edx
push 0xa
mov ecx, eax
lea eax, [esp + 0xa0]
push eax
push str.1.0.1
and ecx, 3
push str.Version
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x5669fc
call esi
xor ebx, ebx
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x98]
mov byte [eax + str.1.0.0.1], cl
inc eax
test cl, cl
jne 0x43da50
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f8
push str.Mode
push str.Video
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f4
push str.Distance
push str.Video
mov dword [0x5c8e2c], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
imul eax, eax, 0x46
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f0
push str.TexDetails
add eax, 0x64
push str.Video
mov dword [0x5c8584], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push str.3021
push str.Shadows
push str.Video
mov dword [0x5c8de4], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f8
push str.Glow
push str.Video
mov dword [0x5c8588], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f8
push str.Blur
push str.Video
mov dword [0x5c8de8], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f0
push str.Windowed
push str.Video
mov dword [0x5c8e34], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f8
push str.Audio
push str.Audio
mov dword [0x5c8df0], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669dc
push str.Master
push str.Audio
mov dword [0x5c8dec], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669dc
push str.Music
push str.Audio
mov dword [0x5c8e24], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669dc
push str.Effects
push str.Audio
mov dword [0x5c88d0], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
mov dword [0x5c8e20], eax
push 0x5669f8
push str.File_manager
push str.Misc
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f8
push str.BMP_to_JPG
push str.Misc
mov dword [0x5ab3ac], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f8
push str.Game_menu
push str.Misc
mov dword [0x5c961c], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f0
push str.Debug_out
push str.Misc
mov dword [0x5ab3b0], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f0
push str.Editor_mode
push str.Misc
mov dword [0x5c9620], eax
mov dword [0x5c9624], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x5669f0
push str.Profiles
push str.Misc
mov dword [0x5c9630], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
mov dword [0x5c965c], eax
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x566998
push str.Act01
push str.Controls
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x566980
push str.Act02
push str.Controls
mov dword [0x5ab34c], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x566974
push str.Act03
push str.Controls
mov dword [0x5ab354], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
lea ecx, [esp + 0x198]
push ecx
push 0x80
lea edx, [esp + 0xa0]
push edx
push 0x566968
push 0x566960
push str.Controls
mov dword [0x5ab35c], eax
call esi
lea eax, [esp + 0x98]
push eax
call fcn.005485e0
add esp, 4
mov dword [0x5ab364], eax
call fcn.0043cb00
xorps xmm0, xmm0
xor edi, edi
mov esi, 0x692518
movss xmm1, dword [0x5652d0]
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x18], xmm0
push ecx
cvtsi2ss xmm0, edi
mulss xmm0, dword [0x5664c0]
lea ecx, [esp + 0x5c]
movss dword [esp], xmm0
push ecx
movss dword [esp + 0x18], xmm1
call fcn.00464750
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, eax
push ecx
call fcn.0046355a
movq xmm1, qword [esp + 0x10]
mov edx, dword [esp + 0x18]
xorps xmm0, xmm0
movq qword [esi], xmm1
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
movq xmm1, qword [esp + 0x40]
movq qword [esi + 8], xmm1
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x4c], xmm0
movq xmm1, qword [esp + 0x48]
movq qword [esi + 0x10], xmm1
add esi, 0x18
inc edi
cmp esi, 0x692830
jl 0x43df53
movss xmm1, dword [0x5652d0]
xor edi, edi
mov esi, 0x610470
jmp 0x43e000
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x18], xmm0
push ecx
cvtsi2ss xmm0, edi
mulss xmm0, dword [0x5664c0]
lea eax, [esp + 0x5c]
movss dword [esp], xmm0
push eax
movss dword [esp + 0x18], xmm1
call fcn.004647ed
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
call fcn.0046355a
movq xmm2, qword [esp + 0x10]
mov ecx, dword [esp + 0x18]
movss xmm1, dword [0x5652d0]
xorps xmm0, xmm0
movq qword [esi], xmm2
mov dword [esp + 0x24], ecx
movss dword [esp + 0x28], xmm1
movq xmm2, qword [esp + 0x24]
movq qword [esi + 8], xmm2
mov dword [esp + 0x2c], ebx
movss dword [esp + 0x30], xmm0
movq xmm2, qword [esp + 0x2c]
movss dword [esp + 0x34], xmm0
mov edx, dword [esp + 0x34]
movq qword [esi + 0x10], xmm2
mov dword [esi + 0x18], edx
add esi, 0x1c
inc edi
cmp esi, 0x61080c
jl 0x43e000
movss xmm3, dword [0x565314]
movss dword [esp + 0x40], xmm0
mov eax, dword [esp + 0x40]
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm0
movq xmm2, qword [esp + 0x38]
movq qword [0x6b3d68], xmm2
mov dword [esp + 0x24], eax
movss dword [esp + 0x28], xmm1
movq xmm2, qword [esp + 0x24]
movq qword [0x6b3d70], xmm2
movss dword [esp + 0x40], xmm0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], ebx
movss dword [esp + 0x30], xmm3
movq xmm2, qword [esp + 0x2c]
movq qword [0x6b3d78], xmm2
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm0
movq xmm2, qword [esp + 0x38]
movq qword [0x6b3830], xmm2
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
movq xmm2, qword [esp + 0x40]
movss dword [esp + 0x34], xmm3
mov ecx, dword [esp + 0x34]
movss dword [esp + 0x48], xmm0
movss dword [esp + 0x4c], xmm0
movq qword [0x6b3838], xmm2
movq xmm2, qword [esp + 0x48]
mov dword [0x6b3d80], ecx
movq qword [0x6b3840], xmm2
mov edi, 0x6b3848
mov esi, 0x6b3d84
mov dword [esp + 0x50], 0x21
jmp 0x43e180
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x18], xmm0
cvtsi2ss xmm0, ebx
push ecx
movss dword [esp + 0x58], xmm0
mulss xmm0, dword [0x5664d0]
lea eax, [esp + 0x5c]
movss dword [esp], xmm0
push eax
movss dword [esp + 0x18], xmm1
call fcn.004647ed
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x14]
push edx
mov eax, edx
push eax
call fcn.0046355a
movss xmm0, dword [0x5652d0]
movss xmm1, dword [0x565314]
movss xmm3, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
movq xmm2, qword [esp + 0x10]
addss xmm3, xmm0
mulss xmm3, xmm1
movss dword [esp + 0x30], xmm3
movss xmm3, dword [esp + 0x14]
movss dword [esp + 0x28], xmm0
addss xmm3, xmm0
movss dword [esp + 0x38], xmm0
xorps xmm0, xmm0
mulss xmm3, xmm1
movq qword [esi], xmm2
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x54]
mulss xmm0, dword [0x5664c0]
mov dword [esp + 0x24], ecx
movq xmm1, qword [esp + 0x24]
movq qword [esi + 8], xmm1
push ecx
movss dword [esp + 0x38], xmm3
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x5c]
mov dword [esp + 0x30], 0
movq xmm1, qword [esp + 0x30]
movss dword [esp], xmm0
movq qword [esi + 0x10], xmm1
push eax
mov dword [esi + 0x18], edx
call fcn.004647ed
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x3c]
push edx
mov eax, edx
push eax
call fcn.00463530
movq xmm1, qword [esp + 0x38]
mov ecx, dword [esp + 0x40]
xorps xmm0, xmm0
movq qword [edi], xmm1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
movq xmm1, qword [esp + 0x24]
movq qword [edi + 8], xmm1
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x30], xmm0
movq xmm1, qword [esp + 0x2c]
movq qword [edi + 0x10], xmm1
movss xmm1, dword [0x5652d0]
add esi, 0x1c
inc ebx
add edi, 0x18
sub dword [esp + 0x50], 1
jne 0x43e180
movss xmm3, dword [0x565314]
movss dword [esp + 0x40], xmm0
mov edx, dword [esp + 0x40]
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm0
movq xmm2, qword [esp + 0x38]
xor ebx, ebx
movq qword [0x6b0a80], xmm2
mov dword [esp + 0x24], edx
movss dword [esp + 0x28], xmm1
movq xmm2, qword [esp + 0x24]
movss dword [esp + 0x34], xmm3
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], ebx
movss dword [esp + 0x30], xmm3
movq qword [0x6b0a88], xmm2
movq xmm2, qword [esp + 0x2c]
movq qword [0x6b0a90], xmm2
mov dword [0x6b0a98], eax
lea edi, [ebx + 1]
mov esi, 0x6b0a9c
jmp 0x43e353
xorps xmm0, xmm0
lea ecx, [edi - 1]
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x18], xmm0
push ecx
cvtsi2ss xmm0, ecx
mulss xmm0, dword [str.PwAct04]
lea edx, [esp + 0x5c]
movss dword [esp], xmm0
push edx
movss dword [esp + 0x18], xmm1
call fcn.004647ed
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call fcn.0046355a
movss xmm1, dword [0x5652d0]
movss xmm3, dword [esp + 0x10]
movss xmm2, dword [0x565314]
movq xmm0, qword [esp + 0x10]
mov eax, dword [esp + 0x18]
addss xmm3, xmm1
mulss xmm3, xmm2
movss dword [esp + 0x30], xmm3
movss xmm3, dword [esp + 0x14]
movq qword [esi], xmm0
mov dword [esp + 0x24], eax
movss dword [esp + 0x28], xmm1
movq xmm0, qword [esp + 0x24]
movq qword [esi + 8], xmm0
addss xmm3, xmm1
mulss xmm3, xmm2
mov dword [esp + 0x2c], ebx
movq xmm0, qword [esp + 0x2c]
movss dword [esp + 0x34], xmm3
mov ecx, dword [esp + 0x34]
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], ecx
add esi, 0x1c
inc edi
cmp esi, 0x6b0c5c
jl 0x43e350
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00547aa7
mov esp, ebp
pop ebp
ret