Function at 0x4034af
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 0x403519
dec eax
jne 0x4037d0
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 0x403500
xor eax, eax
inc eax
cmp ax, 1
je 0x403510
cmp ax, 2
jne 0x4037d0
movzx eax, ax
push eax
jmp 0x4037b5
push dword [ebp + 8]
call fcn.00403332
mov eax, dword [0x408bd0]
pop ecx
jmp 0x40352a
inc eax
cmp byte [eax], 0
jne 0x403529
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 0x403570
cmp byte [eax], 0x2e
je 0x40357f
dec eax
lea ecx, [ebp - 0x10c]
cmp eax, ecx
ja 0x40356a
cmp byte [eax], 0x2e
jne 0x40358b
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
cmp dword [0x408800], ebx
mov esi, 0x208
je 0x4035b7
movzx eax, byte [0x408b6f]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408bd8]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x4035db
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 0x4035fc
lea eax, [ebp - 0x314]
push eax
push 0x3f1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
cmp dword [0x408800], ebx
je 0x403621
movzx eax, byte [0x408b70]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x408bd8]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x403645
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 0x403660
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 0x403696
cmp al, 0x2c
je 0x40369a
cmp al, 0x3b
je 0x40369a
inc esi
mov al, byte [esi]
test al, al
jne 0x40368b
mov al, byte [esi]
cmp al, 0x2c
je 0x4036a4
cmp al, 0x3b
jne 0x4036e3
and byte [esi], 0
inc esi
push esi
call fcn.00402bfc
test eax, eax
pop ecx
je 0x4036db
test byte [0x408b61], 0x80
jne 0x4036db
cmp eax, dword [ebp - 8]
jne 0x4036db
mov eax, dword [ebp + 0x10]
mov dword [0x408bd4], eax
mov dword [ebp - 4], 1
jmp 0x4036db
cmp al, 0x2c
je 0x40369a
cmp al, 0x3b
je 0x40369a
inc esi
mov al, byte [esi]
test al, al
jne 0x4036d2
jmp 0x40369a
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 0x403770
cmp dword [0x408800], 0
jne 0x4037a5
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 0x40367d
jmp 0x4037ac
cmp dword [0x408800], 0
je 0x403719
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 0x40375b
and byte [ebp - 0x314], 0
xor eax, eax
cmp dword [ebp - 4], eax
je 0x4037c0
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4037d0
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