Function at 0x403dfb
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 0x403e65
dec eax
jne 0x404146
xor ebx, ebx
push ebx
push ebx
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 [0x40b00c], eax
mov eax, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0x10
cmp cx, 2
jne 0x403e4c
xor eax, eax
inc eax
cmp ax, 1
je 0x403e5c
cmp ax, 2
jne 0x404146
movzx eax, ax
push eax
jmp 0x404127
push dword [ebp + 8]
call fcn.00403c7e
mov eax, dword [0x40b008]
pop ecx
xor ebx, ebx
jmp 0x403e78
inc eax
cmp byte [eax], bl
jne 0x403e77
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
inc eax
push eax
push dword [ebp + 8]
call edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [0x40aa10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x40aa00], ebx
jne 0x403ed0
cmp byte [0x40a500], bl
je 0x403ed0
push 0x40a500
push esi
lea eax, [ebp - 0x10c]
push eax
push eax
push str.ModuleFileName
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x10c]
jmp 0x403eec
cmp byte [eax], 0x2e
je 0x403efb
dec eax
lea ecx, [ebp - 0x10c]
cmp eax, ecx
ja 0x403ee6
cmp byte [eax], 0x2e
jne 0x403f07
push str..ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [0x40aa00], ebx
mov esi, 0x208
je 0x403f31
movzx eax, byte [0x40ad6f]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x40b010]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x403f55
lea eax, [ebp - 0x10c]
push eax
push esi
lea eax, [ebp - 0x314]
push eax
push 0x40847d
push str.WiseInitLangPrompt
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x314], bl
je 0x403f75
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 [0x40aa00], ebx
je 0x403f9a
movzx eax, byte [0x40ad70]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x40b010]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x403fbe
lea eax, [ebp - 0x10c]
push eax
push esi
lea eax, [ebp - 0x314]
push eax
push 0x40847d
push str.WiseInitLangDefault
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x314], bl
jne 0x403fd8
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 - 8], eax
mov dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
mov al, byte [ebp - 0x314]
lea esi, [ebp - 0x314]
jmp 0x404009
cmp al, 0x2c
je 0x40400d
cmp al, 0x3b
je 0x40400d
inc esi
mov al, byte [esi]
cmp al, bl
jne 0x403ffe
mov al, byte [esi]
cmp al, 0x2c
je 0x404017
cmp al, 0x3b
jne 0x404059
mov byte [esi], bl
inc esi
push esi
call fcn.0040306a
cmp eax, ebx
pop ecx
je 0x404051
test byte [0x40ad61], 0x80
jne 0x404051
xor eax, dword [ebp - 8]
test ax, 0x3ff
jne 0x404051
mov eax, dword [ebp + 0x10]
mov dword [0x40b00c], eax
mov dword [ebp - 4], 1
jmp 0x404051
cmp al, 0x2c
je 0x40400d
cmp al, 0x3b
je 0x40400d
inc esi
mov al, byte [esi]
cmp al, bl
jne 0x404048
jmp 0x40400d
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x314]
push eax
push ebx
push 0x180
push 0x3f0
push dword [ebp + 8]
call esi
push eax
call edi
inc dword [ebp + 0x10]
cmp byte [0x40ad72], bl
ja 0x4040e6
cmp dword [0x40aa00], ebx
jne 0x40411a
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 0x40847d
lea eax, [ebp - 0x414]
push eax
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec byte [0x40ad72]
cmp byte [ebp - 0x314], bl
jne 0x403ff0
jmp 0x404120
cmp dword [0x40aa00], ebx
je 0x404090
push 2
lea eax, [ebp + 0xe]
push eax
push dword [0x40b010]
call dword [sym.imp.KERNEL32.dll__lread]
movzx eax, word [ebp + 0xe]
push eax
lea eax, [ebp - 0x314]
push eax
push dword [0x40b010]
call dword [sym.imp.KERNEL32.dll__lread]
jmp 0x4040d2
mov byte [ebp - 0x314], bl
cmp dword [ebp - 4], ebx
je 0x404132
push 1
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x404146
push ebx
push ebx
push 0x186
push 0x3f0
push dword [ebp + 8]
call esi
push eax
call edi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10