Function at 0x40555a
Capabilities:
Identify system language via api
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [ebp + 0xc]
push ebx
push esi
sub eax, 0x110
push edi
je 0x4055c4
dec eax
jne 0x405875
push 0
push 0
push 0x188
push 0x3f0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x408428], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
cmp cx, 2
jne 0x4055ab
push 1
pop eax
cmp ax, 1
je 0x4055bb
cmp ax, 2
jne 0x405875
movzx eax, ax
push eax
jmp 0x40585a
push dword [ebp + 8]
call fcn.00405a33
mov eax, dword [0x40866c]
pop ecx
cmp byte [eax], 0
je 0x4055da
inc eax
jmp 0x4055d2
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
inc eax
push eax
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x10c]
push 0x104
push eax
push dword [0x4086e0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x10c]
lea ecx, [ebp - 0x10c]
cmp eax, ecx
jbe 0x405625
cmp byte [eax], 0x2e
je 0x405628
dec eax
jmp 0x405613
cmp byte [eax], 0x2e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jne 0x405638
push str..ini
push eax
call ebx
cmp dword [0x4086e8], 0
mov esi, 0x208
je 0x405663
movzx eax, byte [0x40868f]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408438]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x405687
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x314]
push esi
push eax
push 0x408010
push str.WiseInitLangPrompt
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x314], 0
je 0x4056a5
lea eax, [ebp - 0x314]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
xor edi, edi
cmp dword [0x4086e8], edi
je 0x4056cc
movzx eax, byte [0x408690]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408438]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x4056f0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x314]
push esi
push eax
push 0x408010
push str.WiseInitLangDefault
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x314], 0
jne 0x405707
lea eax, [ebp - 0x314]
push str.English
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [ebp + 0x10], edi
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 8], eax
mov ebx, 0x3f0
mov al, byte [ebp - 0x314]
lea esi, [ebp - 0x314]
test al, al
je 0x405742
cmp al, 0x2c
je 0x405742
cmp al, 0x3b
je 0x405742
mov al, byte [esi + 1]
inc esi
jmp 0x405730
mov al, byte [esi]
cmp al, 0x2c
je 0x40574c
cmp al, 0x3b
jne 0x405789
and byte [esi], 0
inc esi
push esi
call fcn.004050b5
test eax, eax
pop ecx
je 0x405778
test byte [0x408681], 0x80
jne 0x405778
cmp eax, dword [ebp - 8]
jne 0x405778
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 1
mov dword [0x408428], eax
mov al, byte [esi]
test al, al
je 0x405742
cmp al, 0x2c
je 0x405742
cmp al, 0x3b
je 0x405742
inc esi
jmp 0x405778
lea eax, [ebp - 0x314]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0
push 0x180
push ebx
push dword [ebp + 8]
call esi
push eax
call edi
inc dword [ebp + 0x10]
cmp byte [0x408692], 0
ja 0x405815
cmp dword [0x4086e8], 0
jne 0x40584a
push dword [ebp + 0x10]
lea eax, [ebp - 0x414]
push str.Language_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x314]
push 0x100
push eax
lea eax, [ebp - 0x414]
push 0x408010
push eax
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec byte [0x408692]
cmp byte [ebp - 0x314], 0
je 0x405851
jmp 0x405724
cmp dword [0x4086e8], 0
je 0x4057bf
lea eax, [ebp + 0xe]
push 2
push eax
push dword [0x408438]
call dword [sym.imp.KERNEL32.dll__lread]
movzx eax, word [ebp + 0xe]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408438]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x405801
and byte [ebp - 0x314], 0
xor eax, eax
cmp dword [ebp - 4], eax
je 0x405865
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x405875
push eax
push eax
push 0x186
push ebx
push dword [ebp + 8]
call esi
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10