Function at 0x408380
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
xor ebp, ebp
push 0x48e194
push str.System
mov dword [esp + 0x28], ebp
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 + 0x3530]
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], ebp
cmp ecx, 0x1000
jbe 0x408497
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 0x40849e
lea ebp, [esp + 0x1120]
mov byte [ebp], 0
push 0x48e170
push ebx
call fcn.00458600
add esp, 8
test eax, eax
je 0x408529
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 0x4084a2
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 0x408585
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 0x4085ec
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 0x4085f3
lea ebp, [esp + 0x1120]
mov byte [ebp], 0
push 0x48e168
push ebx
call fcn.00458600
add esp, 8
test eax, eax
je 0x40867e
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 0x4085f7
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 0x4086da
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 0x40875a
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 0x4087c1
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 0x4087c8
lea ebp, [esp + 0x1120]
mov byte [ebp], 0
push 0x48e174
push ebx
call fcn.00458600
add esp, 8
test eax, eax
je 0x408853
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 0x4087cc
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 0x4088af
push ebp
call fcn.0046eff2
add esp, 4
push 0x48e168
lea ecx, [esp + 0x120]
push 0x48e16c
push ecx
call fcn.004088f0
mov esi, dword [esp + 0x3538]
add esp, 0xc
lea edx, [esp + 0x11c]
mov ecx, esi
push edx
call fcn.0046eb20
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3518
ret