Function at 0x40642f
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0x10], 0
jne 0x40643f
xor eax, eax
jmp 0x406448
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push esi
push edi
mov ecx, 0x425c7c
push dword [ebp + 0x10]
push eax
call fcn.00403080
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x431208
push 0x67
push dword [ebp + 8]
call esi
push 0x64
push 0x431140
push 0x67
push dword [ebp + 8]
call esi
push 1
lea eax, [ebp - 8]
pop ebx
mov dword [ebp - 8], 8
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push dword [ebp + 8]
mov eax, 0x4316d8
mov dword [0x431748], 0x419080
mov dword [0x425318], eax
push 0
push eax
mov dword [0x4316d8], 0x84
mov dword [0x43173c], 0x300
call fcn.00407ca5
mov esi, 0x4163b8
mov eax, esi
test eax, eax
je 0x4064d9
mov edi, 0x425308
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp + 8]
call fcn.004068b3
call fcn.00405f67
push dword [0x43176c]
push 0x4247c0
call fcn.00405e04
push dword [0x431d88]
mov dword [0x43176c], eax
push str.disable_dark_theme
call fcn.00405e04
push ebx
push str.soft_paint
mov dword [0x431d88], eax
mov esi, eax
mov dword [0x419110], ebx
call fcn.00405e04
add esp, 0x1c
mov dword [0x419110], eax
call fcn.004063fd
test eax, eax
je 0x40654b
call fcn.004035b8
test esi, esi
jne 0x40654b
push ebx
push dword [0x4312d0]
call fcn.00403cd5
pop ecx
pop ecx
call fcn.00414e74
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call edi
mov si, ax
and esi, 0x3ff
call edi
push 7
mov dword [0x431768], ebx
pop edx
shr ax, 0xa
cmp esi, edx
jne 0x406580
and dword [0x431768], 0
jmp 0x406823
push 9
pop edi
cmp esi, edi
jne 0x406592
mov dword [0x431768], ebx
jmp 0x406823
cmp esi, 0x11
jne 0x4065a6
mov dword [0x431768], 2
jmp 0x406823
cmp esi, 0x10
jne 0x4065ba
mov dword [0x431768], 3
jmp 0x406823
cmp esi, 0xc
jne 0x4065ce
mov dword [0x431768], 4
jmp 0x406823
cmp esi, 4
jne 0x4065f5
cmp ax, bx
mov dword [0x431768], 5
jne 0x406823
mov dword [0x431768], 8
jmp 0x406823
cmp esi, 0x13
jne 0x40661d
cmp ax, 2
mov dword [0x431768], 6
jne 0x406823
mov dword [0x431768], 0x15
jmp 0x406823
push 0xa
pop ecx
cmp esi, ecx
jne 0x406652
cmp ax, di
mov dword [0x431768], edx
jne 0x406639
mov dword [0x431768], 0x17
cmp ax, 8
jne 0x406823
mov dword [0x431768], 0x23
jmp 0x406823
cmp esi, 0x16
jne 0x406662
mov dword [0x431768], edi
jmp 0x406823
cmp esi, 5
jne 0x406672
mov dword [0x431768], ecx
jmp 0x406823
cmp esi, 0x18
jne 0x406686
mov dword [0x431768], 0xb
jmp 0x406823
push 0x19
pop edi
cmp esi, edi
jne 0x40669c
mov dword [0x431768], 0xc
jmp 0x406823
push 0x1d
pop edx
cmp esi, edx
jne 0x4066b2
mov dword [0x431768], 0xd
jmp 0x406823
cmp esi, 8
jne 0x4066c6
mov dword [0x431768], 0xe
jmp 0x406823
cmp esi, ebx
jne 0x4066d9
mov dword [0x431768], 0xf
jmp 0x406823
push 0x15
pop ecx
cmp esi, ecx
jne 0x4066ef
mov dword [0x431768], 0x10
jmp 0x406823
cmp esi, 0xe
jne 0x406703
mov dword [0x431768], 0x11
jmp 0x406823
push 0x12
pop eax
cmp esi, eax
jne 0x406714
mov dword [0x431768], eax
jmp 0x406823
push 0x1f
pop eax
cmp esi, eax
jne 0x40672a
mov dword [0x431768], 0x13
jmp 0x406823
cmp esi, 0x29
je 0x406667
cmp esi, 6
jne 0x406747
mov dword [0x431768], 0x16
jmp 0x406823
cmp esi, 2
jne 0x40675b
mov dword [0x431768], 0x18
jmp 0x406823
cmp esi, 0x22
je 0x406657
cmp esi, 0x1e
jne 0x406778
mov dword [0x431768], 0x1a
jmp 0x406823
cmp esi, 0x14
jne 0x40678c
mov dword [0x431768], 0x1c
jmp 0x406823
cmp esi, 0x3c
jne 0x40679c
mov dword [0x431768], edx
jmp 0x406823
cmp esi, 0x2a
je 0x40670a
cmp esi, 0x36
jne 0x4067b6
mov dword [0x431768], 0x20
jmp 0x406823
cmp esi, 0x39
jne 0x4067c7
mov dword [0x431768], 0x21
jmp 0x406823
cmp esi, 0x21
je 0x406643
cmp esi, 0x3e
jne 0x4067e1
mov dword [0x431768], 0x24
jmp 0x406823
cmp esi, 0x64
jne 0x4067f2
mov dword [0x431768], 0x25
jmp 0x406823
cmp esi, 0xb
jne 0x406803
mov dword [0x431768], 0x26
jmp 0x406823
cmp esi, 3
jne 0x406814
mov dword [0x431768], 0x27
jmp 0x406823
cmp esi, 0x1a
jne 0x406823
mov dword [0x431768], 0x28
push dword [0x431768]
push 0x4247b8
call fcn.00405e04
pop ecx
mov dword [0x431768], eax
pop ecx
call fcn.00406dc5
test eax, eax
je 0x406854
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0040692b
pop ecx
test eax, eax
pop ecx
jne 0x406858
xor eax, eax
jmp 0x4068ac
push 0x6d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
xor ebx, ebx
mov edi, eax
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
call esi
test eax, eax
je 0x4068a9
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4068a0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [ebp - 0x24]
push ebx
push eax
jmp 0x406874
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x10