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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [ebp + 0xc]
sub eax, 0x110
push ebx
push esi
push edi
je 0x4034f2
dec eax
jne 0x4037a6
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 [0x408bd4], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
cmp cx, 2
jne 0x4034d9
xor eax, eax
inc eax
cmp ax, 1
je 0x4034e9
cmp ax, 2
jne 0x4037a6
movzx eax, ax
push eax
jmp 0x40378b
push dword [ebp + 8]
call fcn.0040330b
mov eax, dword [0x408bd0]
pop ecx
jmp 0x403503
inc eax
cmp byte [eax], 0
jne 0x403502
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
inc eax
push eax
push dword [ebp + 8]
call edi
push 0x104
lea eax, [ebp - 0x10c]
push eax
push dword [0x408810]
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]
jmp 0x403549
cmp byte [eax], 0x2e
je 0x403558
dec eax
lea ecx, [ebp - 0x10c]
cmp eax, ecx
ja 0x403543
cmp byte [eax], 0x2e
jne 0x403564
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
cmp dword [0x408800], ebx
mov esi, 0x208
je 0x403590
movzx eax, byte [0x408b6f]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408bd8]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x4035b4
lea eax, [ebp - 0x10c]
push eax
push esi
lea eax, [ebp - 0x314]
push eax
push 0x40645d
push str.WiseInitLangPrompt
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x314], 0
je 0x4035d2
lea eax, [ebp - 0x314]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
cmp dword [0x408800], ebx
je 0x4035f7
movzx eax, byte [0x408b70]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408bd8]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x40361b
lea eax, [ebp - 0x10c]
push eax
push esi
lea eax, [ebp - 0x314]
push eax
push 0x40645d
push str.WiseInitLangDefault
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x314], 0
jne 0x403636
push str.English
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, ax
mov dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov ebx, 0x3f0
mov al, byte [ebp - 0x314]
lea esi, [ebp - 0x314]
jmp 0x40366c
cmp al, 0x2c
je 0x403670
cmp al, 0x3b
je 0x403670
inc esi
mov al, byte [esi]
test al, al
jne 0x403661
mov al, byte [esi]
cmp al, 0x2c
je 0x40367a
cmp al, 0x3b
jne 0x4036b9
and byte [esi], 0
inc esi
push esi
call fcn.00402bfc
test eax, eax
pop ecx
je 0x4036b1
test byte [0x408b61], 0x80
jne 0x4036b1
cmp eax, dword [ebp - 8]
jne 0x4036b1
mov eax, dword [ebp + 0x10]
mov dword [0x408bd4], eax
mov dword [ebp - 4], 1
jmp 0x4036b1
cmp al, 0x2c
je 0x403670
cmp al, 0x3b
je 0x403670
inc esi
mov al, byte [esi]
test al, al
jne 0x4036a8
jmp 0x403670
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x314]
push eax
push 0
push 0x180
push ebx
push dword [ebp + 8]
call esi
push eax
call edi
inc dword [ebp + 0x10]
cmp byte [0x408b72], 0
ja 0x403746
cmp dword [0x408800], 0
jne 0x40377b
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
push 0x100
lea eax, [ebp - 0x314]
push eax
push 0x40645d
lea eax, [ebp - 0x414]
push eax
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec byte [0x408b72]
cmp byte [ebp - 0x314], 0
jne 0x403653
jmp 0x403782
cmp dword [0x408800], 0
je 0x4036ef
push 2
lea eax, [ebp + 0xe]
push eax
push dword [0x408bd8]
call dword [sym.imp.KERNEL32.dll__lread]
movzx eax, word [ebp + 0xe]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408bd8]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x403731
and byte [ebp - 0x314], 0
xor eax, eax
cmp dword [ebp - 4], eax
je 0x403796
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4037a6
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