Function at 0x6679c0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd60
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x294], 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 [0x41f394]
call fcn.0040c7a0
xor eax, eax
push ebp
push 0x667f19
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, 0x667f34
mov edx, dword [0x68a254]
call fcn.0040c254
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.00428f54
test eax, eax
jne 0x667abd
mov eax, dword [ebp - 0x264]
mov ebx, eax
test ebx, ebx
je 0x667a6b
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.0040c3c4
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.00428fa4
test eax, eax
je 0x667a5a
lea eax, [ebp - 0x278]
call fcn.00428fc8
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 0x667aeb
mov eax, dword [0x68a214]
call fcn.00409668
mov eax, 4
call fcn.006621dc
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 0x667b1e
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x154]
jmp 0x667eba
push 0x667f54
lea eax, [ebp - 4]
push eax
mov ecx, 0x667f70
mov edx, 0x667f90
mov eax, dword [0x68a214]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, 0x667fa8
call fcn.00641bc4
test ax, ax
jbe 0x667b71
mov eax, 0x667fa8
call fcn.00641bc4
movzx eax, ax
inc eax
lea edx, [ebp - 0x290]
call fcn.00407540
mov eax, dword [ebp - 0x290]
lea edx, [ebp - 4]
call fcn.00427464
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 0x667c0b
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x294]
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 - 0x294]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x298], ebx
mov eax, dword [ebp - 0x298]
call fcn.004271fc
test eax, eax
sete al
test al, al
je 0x667bfd
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
mov edx, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x154]
jmp 0x667c0b
inc dword [ebp - 0x27c]
dec dword [ebp - 0x284]
jne 0x667b9d
mov eax, 0x667fc0
call fcn.00641db8
or al, byte [0x68a229]
je 0x667ca5
xor eax, eax
push ebp
push 0x667c9b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x478]
call fcn.005516f4
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 0x667eba
push 0
mov ecx, 0x667fe0
mov edx, 0x667f90
mov eax, dword [0x68a214]
mov ebx, dword [eax]
call dword [ebx + 0x20]
test al, al
je 0x667eba
push 0
mov ecx, 0x668014
mov edx, 0x667f90
mov eax, dword [0x68a214]
mov ebx, dword [eax]
call dword [ebx + 0x10]
sub eax, 1
jb 0x667ce8
je 0x667cf6
dec eax
je 0x667d04
dec eax
je 0x667d12
jmp 0x667d1e
call sub.kernel32.dll_GetUserDefaultUILanguage
mov word [ebp - 0x27e], ax
jmp 0x667d1e
call sub.kernel32.dll_GetSystemDefaultLangID
mov word [ebp - 0x27e], ax
jmp 0x667d1e
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov word [ebp - 0x27e], ax
jmp 0x667d1e
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 0x667eba
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x27c], 0
xor eax, eax
push ebp
push 0x667e9e
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x68a254]
push 0x66803c
lea ecx, [ebp - 0x2a0]
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 - 0x2a0]
push 0x66804c
lea eax, [ebp - 0x29c]
mov edx, 4
call fcn.0040c2dc
mov ecx, dword [ebp - 0x29c]
mov dl, 1
mov eax, dword [0x50f384]
call fcn.00512e94
mov dword [0x68a218], eax
push 0
mov ecx, 0x668068
mov edx, 0x66807c
mov eax, dword [0x68a218]
mov ebx, dword [eax]
call dword [ebx + 0x10]
movzx edx, word [ebp - 0x27e]
cmp eax, edx
jne 0x667e8a
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.00409668
push 0
mov ecx, 0x668094
mov edx, 0x667f90
mov eax, dword [0x68a214]
mov ebx, dword [eax]
call dword [ebx + 0x20]
test al, al
je 0x667e80
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 0x667eba
mov eax, dword [0x68a218]
call fcn.00409668
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x667ea8
inc dword [ebp - 0x27c]
dec dword [ebp - 0x284]
jne 0x667d4e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x667f20
lea eax, [ebp - 0x2a0]
mov edx, 2
call fcn.0040b4b8
lea eax, [ebp - 0x294]
mov edx, 2
call fcn.0040b4b8
lea eax, [ebp - 0x28c]
call fcn.0040b458
lea eax, [ebp - 0x288]
call fcn.0040b458
lea eax, [ebp - 0x278]
mov edx, dword [0x41f394]
call fcn.0040cb6c
lea eax, [ebp - 4]
call fcn.0040b458
pop eax
jmp eax