Function at 0x665670
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 0x665aee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6881e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 0x288]
mov ecx, 0x665b08
mov edx, dword [0x68824c]
call fcn.0040c260
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.00428f70
test eax, eax
jne 0x665767
mov eax, dword [ebp - 0x264]
mov ebx, eax
test ebx, ebx
je 0x665715
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 [0x6881e0]
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 0x665704
lea eax, [ebp - 0x278]
call fcn.00428fe4
mov eax, dword [0x6881e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x665795
mov eax, dword [0x688214]
call fcn.00409674
mov eax, 4
call fcn.00664d04
mov eax, dword [0x6881e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jne 0x6657c8
mov eax, dword [0x6881e0]
mov eax, dword [eax + 0x478]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x154]
jmp 0x665a94
push 0x665b28
lea eax, [ebp - 4]
push eax
mov ecx, 0x665b44
mov edx, 0x665b64
mov eax, dword [0x688214]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [0x6881e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x66587f
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x290]
mov eax, dword [0x6881e0]
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 0x665871
mov eax, dword [0x6881e0]
mov eax, dword [eax + 0x478]
mov edx, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x154]
jmp 0x66587f
inc dword [ebp - 0x27c]
dec dword [ebp - 0x284]
jne 0x665811
push 0
mov ecx, 0x665b7c
mov edx, 0x665b64
mov eax, dword [0x688214]
mov ebx, dword [eax]
call dword [ebx + 0x20]
test al, al
je 0x665a94
push 0
mov ecx, 0x665bb0
mov edx, 0x665b64
mov eax, dword [0x688214]
mov ebx, dword [eax]
call dword [ebx + 0x10]
sub eax, 1
jb 0x6658c2
je 0x6658d0
dec eax
je 0x6658de
dec eax
je 0x6658ec
jmp 0x6658f8
call sub.kernel32.dll_GetUserDefaultUILanguage
mov word [ebp - 0x27e], ax
jmp 0x6658f8
call sub.kernel32.dll_GetSystemDefaultLangID
mov word [ebp - 0x27e], ax
jmp 0x6658f8
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov word [ebp - 0x27e], ax
jmp 0x6658f8
call sub.kernel32.dll_GetUserDefaultLangID
mov word [ebp - 0x27e], ax
mov eax, dword [0x6881e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x665a94
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x27c], 0
xor eax, eax
push ebp
push 0x665a78
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x68824c]
push 0x665bd8
lea ecx, [ebp - 0x29c]
mov eax, dword [0x6881e0]
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 0x665be8
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 [0x688218], eax
push 0
mov ecx, 0x665c04
mov edx, 0x665c18
mov eax, dword [0x688218]
mov ebx, dword [eax]
call dword [ebx + 0x10]
movzx edx, word [ebp - 0x27e]
cmp eax, edx
jne 0x665a64
mov eax, dword [0x6881e0]
mov eax, dword [eax + 0x478]
mov edx, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x154]
mov eax, dword [0x688218]
call fcn.00409674
push 0
mov ecx, 0x665c30
mov edx, 0x665b64
mov eax, dword [0x688214]
mov ebx, dword [eax]
call dword [ebx + 0x20]
test al, al
je 0x665a5a
lea ecx, [ebp - 4]
mov eax, dword [0x6881e0]
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 [0x6881e0]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [0x6881e0]
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 [0x6881e0]
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 0x665a94
mov eax, dword [0x688218]
call fcn.00409674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x665a82
inc dword [ebp - 0x27c]
dec dword [ebp - 0x284]
jne 0x665928
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x665af5
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