Function at 0x659908
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 [0x41f2e8]
call fcn.0040c770
xor eax, eax
push ebp
push 0x659d75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x48]
lea eax, [ebp - 0x288]
mov ecx, 0x659d90
mov edx, dword [0x67ae44]
call fcn.0040c224
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.00428e90
test eax, eax
jne 0x6599ff
mov eax, dword [ebp - 0x264]
mov ebx, eax
test ebx, ebx
je 0x6599ad
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.0040c394
mov edx, dword [ebp - 0x28c]
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x278]
call fcn.00428ee0
test eax, eax
je 0x65999c
lea eax, [ebp - 0x278]
call fcn.00428f04
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x659a2d
mov eax, dword [0x67ae0c]
call fcn.00409670
mov eax, 4
call fcn.00659004
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jne 0x659a60
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x478]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x154]
jmp 0x659d1b
push 0x659db0
lea eax, [ebp - 4]
push eax
mov ecx, 0x659dcc
mov edx, 0x659df8
mov eax, dword [0x67ae0c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x659b17
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x27c], 0
lea ecx, [ebp - 0x290]
mov eax, dword [0x67add4]
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.00427138
test eax, eax
sete al
test al, al
je 0x659b09
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x478]
mov edx, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x154]
jmp 0x659b17
inc dword [ebp - 0x27c]
dec dword [ebp - 0x284]
jne 0x659aa9
push 0
mov ecx, 0x659e10
mov edx, 0x659df8
mov eax, dword [0x67ae0c]
mov ebx, dword [eax]
call dword [ebx + 0x20]
test al, al
je 0x659d1b
push 0
mov ecx, 0x659e44
mov edx, 0x659df8
mov eax, dword [0x67ae0c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
sub eax, 1
jb 0x659b57
je 0x659b65
dec eax
je 0x659b73
jmp 0x659b7f
call sub.kernel32.dll_GetUserDefaultUILanguage
mov word [ebp - 0x27e], ax
jmp 0x659b7f
call sub.kernel32.dll_GetSystemDefaultLangID
mov word [ebp - 0x27e], ax
jmp 0x659b7f
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov word [ebp - 0x27e], ax
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x659d1b
inc eax
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x27c], 0
xor eax, eax
push ebp
push 0x659cff
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x67ae44]
push 0x659e6c
lea ecx, [ebp - 0x29c]
mov eax, dword [0x67add4]
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 0x659e7c
lea eax, [ebp - 0x298]
mov edx, 4
call fcn.0040c2ac
mov ecx, dword [ebp - 0x298]
mov dl, 1
mov eax, dword [0x50f088]
call fcn.00512b98
mov dword [0x67ae10], eax
push 0
mov ecx, 0x659e98
mov edx, 0x659eac
mov eax, dword [0x67ae10]
mov ebx, dword [eax]
call dword [ebx + 0x10]
movzx edx, word [ebp - 0x27e]
cmp eax, edx
jne 0x659ceb
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x478]
mov edx, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x154]
mov eax, dword [0x67ae10]
call fcn.00409670
push 0
mov ecx, 0x659ec4
mov edx, 0x659df8
mov eax, dword [0x67ae0c]
mov ebx, dword [eax]
call dword [ebx + 0x20]
test al, al
je 0x659ce1
lea ecx, [ebp - 4]
mov eax, dword [0x67add4]
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 [0x67add4]
mov eax, dword [eax + 0x478]
mov eax, dword [eax + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [0x67add4]
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 [0x67add4]
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 0x659d1b
mov eax, dword [0x67ae10]
call fcn.00409670
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x659d09
inc dword [ebp - 0x27c]
dec dword [ebp - 0x284]
jne 0x659baf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x659d7c
lea eax, [ebp - 0x29c]
mov edx, 2
call fcn.0040b4c0
lea eax, [ebp - 0x290]
call fcn.0040b460
lea eax, [ebp - 0x28c]
call fcn.0040b460
lea eax, [ebp - 0x288]
call fcn.0040b460
lea eax, [ebp - 0x278]
mov edx, dword [0x41f2e8]
call fcn.0040cb3c
lea eax, [ebp - 4]
call fcn.0040b460
pop eax
jmp eax