Function at 0x40f050
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x3518
call fcn.00458680
mov al, byte [0x494b70]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x15]
push 0x494f68
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2128]
push 0x400
push ecx
push str.English
push 0x48e194
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x2124]
lea eax, [esp + 0x14]
push edx
push 0x494e60
push str._sLanguage_s.ini
push eax
call fcn.004585a3
mov dl, byte [0x494b70]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], dl
add esp, 0x10
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x352c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, ebx
mov byte [esp + 0x1120], dl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea ebx, [esp + 0x11c]
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x400
lea edi, [esp + 0x1121]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], eax
cmp ecx, 0x1000
jbe 0x40f161
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + ecx + 1]
push ecx
call fcn.0046efc9
add esp, 4
mov ebp, eax
mov dword [esp + 0x10], 1
jmp 0x40f168
lea ebp, [esp + 0x1120]
mov byte [ebp], 0
push 0x48e170
push ebx
call fcn.00458600
add esp, 8
test eax, eax
je 0x40f1f3
mov byte [eax], 0
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x48e174
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x48e170
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
lea ebx, [ecx + edx]
jmp 0x40f16c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x11c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40f24f
push ebp
call fcn.0046eff2
add esp, 4
mov cl, byte [0x494b70]
xor eax, eax
mov byte [esp + 0x1120], cl
mov ecx, 0x400
lea edi, [esp + 0x1121]
lea ebx, [esp + 0x11c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], eax
cmp ecx, 0x1000
jbe 0x40f2b6
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + ecx + 1]
push edx
call fcn.0046efc9
add esp, 4
mov ebp, eax
mov dword [esp + 0x10], 1
jmp 0x40f2bd
lea ebp, [esp + 0x1120]
mov byte [ebp], 0
push 0x48e168
push ebx
call fcn.00458600
add esp, 8
test eax, eax
je 0x40f348
mov byte [eax], 0
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x48e16c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x48e168
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
lea ebx, [ecx + edx]
jmp 0x40f2c1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x11c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40f3a4
push ebp
call fcn.0046eff2
add esp, 4
mov cl, byte [0x494b70]
xor eax, eax
mov byte [esp + 0x2524], cl
mov ecx, 0x400
lea edi, [esp + 0x2525]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x2528]
push 0x1000
lea ecx, [esp + 0x124]
push eax
lea edx, [esp + 0x128]
push ecx
push edx
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x2524]
test al, al
je 0x40f424
lea edi, [esp + 0x2524]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x494b70]
xor eax, eax
mov byte [esp + 0x1120], cl
mov ecx, 0x400
lea edi, [esp + 0x1121]
lea ebx, [esp + 0x11c]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], eax
cmp ecx, 0x1000
jbe 0x40f48b
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx + ecx + 1]
push edx
call fcn.0046efc9
add esp, 4
mov ebp, eax
mov dword [esp + 0x10], 1
jmp 0x40f492
lea ebp, [esp + 0x1120]
mov byte [ebp], 0
push 0x48e174
push ebx
call fcn.00458600
add esp, 8
test eax, eax
je 0x40f51d
mov byte [eax], 0
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x48e170
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x48e174
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
lea ebx, [ecx + edx]
jmp 0x40f496
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x11c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40f579
push ebp
call fcn.0046eff2
add esp, 4
push 0x48e168
lea ecx, [esp + 0x120]
push 0x48e16c
push ecx
call fcn.004088f0
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x3530]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3518
ret