Function at 0x4296f5
Capabilities:
Identify system language via api

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x62ece4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x74
mov eax, 0x5b08f2
call fcn.00499ab7
xor ebx, ebx
mov dword [ebp - 0x38], ecx
mov esi, str.LanguageLoader::AutoDetectLanguage
cmp byte [0x643648], bl
je 0x429749
mov eax, dword [0x643644]
cmp eax, ebx
je 0x429749
push str.Trying_to_find_auto_detected_language
push 0xf8
push esi
push ebx
push eax
call fcn.00402740
add esp, 0x14
mov dword [ebp - 0x24], ebx
call fcn.004840f7
mov eax, dword [eax + 8]
push 0x104
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp]
push eax
call edi
push str.languages
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp]
push eax
call edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x30], eax
cmp byte [0x643648], bl
je 0x429855
mov eax, dword [0x643644]
cmp eax, ebx
je 0x4297dc
push edi
push str.GetUserDefaultLCID____d
push 0x108
push esi
push ebx
push eax
call fcn.004026b0
mov eax, dword [0x643644]
add esp, 0x18
cmp byte [0x643648], bl
je 0x429855
cmp eax, ebx
je 0x429805
push dword [ebp - 0x18]
push str.GetThreadLocale____d
push 0x109
push esi
push ebx
push eax
call fcn.004026b0
mov eax, dword [0x643644]
add esp, 0x18
cmp byte [0x643648], bl
je 0x429855
cmp eax, ebx
je 0x429830
movzx ecx, word [ebp - 0x30]
push ecx
push str.GetUserDefaultUILanguage____d
push 0x10a
push esi
push ebx
push eax
call fcn.004026b0
mov eax, dword [0x643644]
add esp, 0x18
cmp byte [0x643648], bl
je 0x429855
cmp eax, ebx
je 0x429855
lea ecx, [ebp]
push ecx
push str.Languages_Folder____s
push 0x10c
push esi
push ebx
push eax
call fcn.00402740
add esp, 0x18
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x5cc534
call fcn.00408c50
push ecx
lea eax, [ebp]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov dword [ebp - 4], ebx
call fcn.00408c50
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x50]
push eax
call fcn.0041dfaa
add esp, 0xc
mov dword [ebp - 4], 1
cmp byte [0x643648], bl
je 0x4298be
mov eax, dword [0x643644]
cmp eax, ebx
je 0x4298be
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x44]
sar ecx, 2
push ecx
push str.Languages_Count____d
push pe_nt_image_headers32
push esi
push ebx
push eax
call fcn.004026b0
add esp, 0x18
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], ebx
sar eax, 2
test eax, eax
jbe 0x429b1e
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x20]
call fcn.00408c50
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0041b184
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d962
push 0x5cc56c
push dword [ebp - 0x20]
call fcn.0049c7cd
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x429aed
mov edi, dword [ebp - 0x38]
mov ecx, dword [edi]
push ebx
push eax
call fcn.00478920
test al, al
je 0x429adf
mov ecx, dword [edi]
call fcn.00477cc0
mov ecx, eax
mov dword [ebp - 0x28], ecx
cmp ecx, ebx
je 0x429ad8
push str.LangID
call fcn.00478590
push eax
lea ecx, [ebp - 0x1c]
call fcn.004146a7
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], ebx
je 0x429ac9
lea ecx, [ebp - 0x68]
call fcn.00407840
push ebx
push 0x2c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0041686d
cmp eax, 0xffffffff
jne 0x429985
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x68]
call fcn.004079f0
jmp 0x4299da
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x5cc594
call fcn.004146a7
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 5
call fcn.00408810
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 4
call fcn.004074a0
add esp, 0xc
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.0041f300
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00407d60
push dword [ebp - 0x80]
call fcn.0047b2f7
pop ecx
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14], ebx
sar eax, 2
test eax, eax
jbe 0x429ab8
movzx esi, word [ebp - 0x30]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x68]
call fcn.0041b184
push ecx
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
call fcn.00408810
call fcn.00407660
pop ecx
cmp eax, esi
jne 0x429a21
push dword [ebp - 0x28]
mov ecx, edi
call fcn.004294cf
test eax, eax
jne 0x429a37
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x5c]
inc dword [ebp - 0x14]
sar eax, 2
cmp dword [ebp - 0x14], eax
jb 0x4299f2
jmp 0x429ab8
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.0041b184
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.0041b184
mov ecx, eax
call fcn.0040cf80
sub esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov byte [ebp - 4], 7
call fcn.004287b2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.Interface_Language
mov byte [ebp - 4], 8
call fcn.00402800
mov ecx, 0x63f9a0
mov byte [ebp - 4], 7
call fcn.0042b76a
lea eax, [ebp - 0x18]
lea ecx, [edi + 0x4c]
push eax
call fcn.00408700
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 0x24], 1
call fcn.00407130
lea ecx, [ebp - 0x68]
call fcn.00407d60
push dword [ebp - 0x68]
call fcn.0047b2f7
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00407130
mov ecx, dword [edi]
call fcn.00477bf0
push dword [ebp - 0x2c]
call fcn.0049c68b
pop ecx
cmp dword [ebp - 0x24], ebx
jne 0x429b13
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00407130
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
inc dword [ebp - 0x10]
sar eax, 2
cmp dword [ebp - 0x10], eax
jb 0x4298d2
jmp 0x429b1e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00407130
lea ecx, [ebp - 0x50]
call fcn.00407d60
push dword [ebp - 0x50]
call fcn.0047b2f7
mov eax, dword [ebp - 0x24]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00499aa8
add ebp, 0x20c
leave
ret