Function at 0x666f38
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd64
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x278]
mov edx, dword [0x41f3b0]
call fcn.0040c7ac
xor eax, eax
push ebp
push 0x6673b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 0x288]
mov ecx, 0x6673d0
mov edx, dword [0x68a250]
call fcn.0040c260
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.00428f70
test eax, eax
jne 0x66702f
mov eax, dword [ebp - 0x264]
mov ebx, eax
test ebx, ebx
je 0x666fdd
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x28c]
push eax
mov ecx, ebx
sub ecx, 6
mov edx, 1
mov eax, dword [ebp - 0x264]
call fcn.0040c3d0
mov edx, dword [ebp - 0x28c]
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x278]
call fcn.00428fc0
test eax, eax
je 0x666fcc
lea eax, [ebp - 0x278]
call fcn.00428fe4
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x66705d
mov eax, dword [0x68a214]
call fcn.00409674
mov eax, 4
call fcn.00661318
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jne 0x667090
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x154]
jmp 0x66735c
push 0x6673f0
lea eax, [ebp - 4]
push eax
mov ecx, 0x66740c
mov edx, 0x66742c
mov eax, dword [0x68a214]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x667147
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x290]
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [ebp - 0x27c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, dword [ebp - 0x290]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x294], ebx
mov eax, dword [ebp - 0x294]
call fcn.00427218
test eax, eax
sete al
test al, al
je 0x667139
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov edx, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x154]
jmp 0x667147
inc dword [ebp - 0x27c]
dec dword [ebp - 0x284]
jne 0x6670d9
push 0
mov ecx, 0x667444
mov edx, 0x66742c
mov eax, dword [0x68a214]
mov ebx, dword [eax]
call dword [ebx + 0x20]
test al, al
je 0x66735c
push 0
mov ecx, 0x667478
mov edx, 0x66742c
mov eax, dword [0x68a214]
mov ebx, dword [eax]
call dword [ebx + 0x10]
sub eax, 1
jb 0x66718a
je 0x667198
dec eax
je 0x6671a6
dec eax
je 0x6671b4
jmp 0x6671c0
call sub.kernel32.dll_GetUserDefaultUILanguage
mov word [ebp - 0x27e], ax
jmp 0x6671c0
call sub.kernel32.dll_GetSystemDefaultLangID
mov word [ebp - 0x27e], ax
jmp 0x6671c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov word [ebp - 0x27e], ax
jmp 0x6671c0
call sub.kernel32.dll_GetUserDefaultLangID
mov word [ebp - 0x27e], ax
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x66735c
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x27c], 0
xor eax, eax
push ebp
push 0x667340
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x68a250]
push 0x6674a0
lea ecx, [ebp - 0x29c]
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [ebp - 0x27c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x29c]
push 0x6674b0
lea eax, [ebp - 0x298]
mov edx, 4
call fcn.0040c2e8
mov ecx, dword [ebp - 0x298]
mov dl, 1
mov eax, dword [0x50f1a8]
call fcn.00512cb8
mov dword [0x68a218], eax
push 0
mov ecx, 0x6674cc
mov edx, 0x6674e0
mov eax, dword [0x68a218]
mov ebx, dword [eax]
call dword [ebx + 0x10]
movzx edx, word [ebp - 0x27e]
cmp eax, edx
jne 0x66732c
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov edx, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x154]
mov eax, dword [0x68a218]
call fcn.00409674
push 0
mov ecx, 0x6674f8
mov edx, 0x66742c
mov eax, dword [0x68a214]
mov ebx, dword [eax]
call dword [ebx + 0x20]
test al, al
je 0x667322
lea ecx, [ebp - 4]
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [ebp - 0x27c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x154]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x66735c
mov eax, dword [0x68a218]
call fcn.00409674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x66734a
inc dword [ebp - 0x27c]
dec dword [ebp - 0x284]
jne 0x6671f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6673bd
lea eax, [ebp - 0x29c]
mov edx, 2
call fcn.0040b4c4
lea eax, [ebp - 0x290]
call fcn.0040b464
lea eax, [ebp - 0x28c]
call fcn.0040b464
lea eax, [ebp - 0x288]
call fcn.0040b464
lea eax, [ebp - 0x278]
mov edx, dword [0x41f3b0]
call fcn.0040cb78
lea eax, [ebp - 4]
call fcn.0040b464
pop eax
jmp eax