Function at 0x4055fb
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 0x405665
dec eax
jne 0x405916
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 [0x408468], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
cmp cx, 2
jne 0x40564c
push 1
pop eax
cmp ax, 1
je 0x40565c
cmp ax, 2
jne 0x405916
movzx eax, ax
push eax
jmp 0x4058fb
push dword [ebp + 8]
call fcn.00405ad4
mov eax, dword [0x4086ac]
pop ecx
cmp byte [eax], 0
je 0x40567b
inc eax
jmp 0x405673
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 [0x408720]
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 0x4056c6
cmp byte [eax], 0x2e
je 0x4056c9
dec eax
jmp 0x4056b4
cmp byte [eax], 0x2e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jne 0x4056d9
push str..ini
push eax
call ebx
cmp dword [0x408728], 0
mov esi, 0x208
je 0x405704
movzx eax, byte [0x4086cf]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408478]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x405728
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x314]
push esi
push eax
push 0x408040
push str.WiseInitLangPrompt
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x314], 0
je 0x405746
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 [0x408728], edi
je 0x40576d
movzx eax, byte [0x4086d0]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408478]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x405791
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x314]
push esi
push eax
push 0x408040
push str.WiseInitLangDefault
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x314], 0
jne 0x4057a8
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 0x4057e3
cmp al, 0x2c
je 0x4057e3
cmp al, 0x3b
je 0x4057e3
mov al, byte [esi + 1]
inc esi
jmp 0x4057d1
mov al, byte [esi]
cmp al, 0x2c
je 0x4057ed
cmp al, 0x3b
jne 0x40582a
and byte [esi], 0
inc esi
push esi
call fcn.00405156
test eax, eax
pop ecx
je 0x405819
test byte [0x4086c1], 0x80
jne 0x405819
cmp eax, dword [ebp - 8]
jne 0x405819
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 1
mov dword [0x408468], eax
mov al, byte [esi]
test al, al
je 0x4057e3
cmp al, 0x2c
je 0x4057e3
cmp al, 0x3b
je 0x4057e3
inc esi
jmp 0x405819
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 [0x4086d2], 0
ja 0x4058b6
cmp dword [0x408728], 0
jne 0x4058eb
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 0x408040
push eax
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec byte [0x4086d2]
cmp byte [ebp - 0x314], 0
je 0x4058f2
jmp 0x4057c5
cmp dword [0x408728], 0
je 0x405860
lea eax, [ebp + 0xe]
push 2
push eax
push dword [0x408478]
call dword [sym.imp.KERNEL32.dll__lread]
movzx eax, word [ebp + 0xe]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408478]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x4058a2
and byte [ebp - 0x314], 0
xor eax, eax
cmp dword [ebp - 4], eax
je 0x405906
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x405916
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