Function at 0x50c32d
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x41c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
push edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push eax
push 0x5fff64
push 1
xor edi, edi
push edi
push 0x5fff54
mov dword [ebp - 0x14], edi
call esi
cmp dword [ebp - 0x14], edi
jne 0x50c378
mov dword [ebx], 2
mov eax, ebx
jmp 0x50c856
lea eax, [ebp - 0x10]
push eax
push 0x5fff74
push 1
push edi
push 0x5fff84
mov dword [ebp - 0x10], edi
call esi
cmp dword [ebp - 0x10], edi
jne 0x50c3a8
mov dword [ebx], 2
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x50c371
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x50c371
call fcn.0050b382
movzx eax, ax
movzx eax, ax
push eax
lea esi, [ebp - 0xe0]
call fcn.0050b15a
lea eax, [ebp - 0xc]
push eax
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftSpeechRecognizers
mov dword [ebp - 0xc], edi
call fcn.0050b0ae
test eax, eax
jge 0x50c3f6
mov eax, dword [ebp - 0xc]
cmp eax, edi
mov dword [ebx], 2
je 0x50c3e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x50c399
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x50c399
cmp dword [ebp - 0xc], edi
jne 0x50c403
mov dword [ebx], 2
jmp 0x50c3e7
xor eax, eax
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
mov esi, dword [ebp - 0xc]
je 0x50c41a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], ebx
mov eax, dword [esi]
push ebx
lea ecx, [ebp - 8]
push ecx
push 1
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x50c446
cmp dword [ebp - 0x28], edi
je 0x50c4bc
mov eax, dword [ebp - 8]
inc edi
cmp eax, ebx
je 0x50c40a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x50c407
cmp dword [ebp - 0x28], edi
je 0x50c4bc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
cmp eax, ebx
mov esi, dword [ebp - 0xc]
je 0x50c467
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], ebx
mov eax, dword [esi]
push ebx
lea ecx, [ebp - 8]
push ecx
push 1
push esi
call dword [eax + 0xc]
test eax, eax
je 0x50c4bc
mov esi, dword [ebp + 8]
mov dword [esi], 2
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x50c48e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x50c49b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x50c4a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x50c4b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x50c856
cmp dword [ebp - 8], ebx
mov eax, dword [ebp - 0xc]
jne 0x50c4cf
mov esi, dword [ebp + 8]
mov dword [esi], 2
jmp 0x50c491
cmp eax, ebx
je 0x50c4dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x50c478
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x50c4fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0xc]
push eax
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftSpeechRecoProfiles
call fcn.0050b0ae
test eax, eax
jl 0x50c478
cmp dword [ebp - 0xc], ebx
mov eax, dword [ebp - 8]
jne 0x50c530
cmp eax, ebx
mov esi, dword [ebp + 8]
mov dword [esi], 2
je 0x50c49b
jmp 0x50c488
mov ebx, dword [ebp + 0x10]
xor edi, edi
cmp eax, edi
mov esi, dword [ebp - 0xc]
je 0x50c545
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], edi
mov eax, dword [esi]
push edi
lea ecx, [ebp - 8]
push ecx
push 1
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x50c5dc
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x50c535
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0xe0]
push edx
mov word [ebp - 0x2ec], di
mov dword [ebp - 0x38], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp eax, 0x8004503a
jne 0x50c591
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push edi
push eax
call dword [ecx + 0x18]
cmp eax, edi
jl 0x50c5a8
mov edx, dword [ebp - 0x38]
push 0x104
lea esi, [ebp - 0x2ec]
call fcn.004a8ff7
lea eax, [ebx + 0x214]
push eax
lea eax, [ebp - 0x2ec]
push eax
call fcn.005a6122
test eax, eax
pop ecx
pop ecx
je 0x50c5dc
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x50c535
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x50c535
cmp dword [ebp - 8], edi
je 0x50c5ed
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x50c5fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc], edi
lea eax, [ebx + 4]
cmp word [eax], di
je 0x50c623
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00517644
push eax
lea edi, [ebx + 0x20c]
call fcn.0050a441
lea ecx, [ebp - 0x30]
call fcn.0050a40d
lea edi, [ebx + 0x20c]
mov eax, edi
call fcn.00405d4e
test al, al
je 0x50c66e
mov esi, dword [ebp + 8]
mov dword [esi], 2
mov eax, dword [ebp - 8]
test eax, eax
je 0x50c64a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x50c657
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x50c664
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
jmp 0x50c4ad
lea ecx, [ebp - 0x20]
call fcn.0050a37e
mov eax, dword [edi]
test eax, eax
je 0x50c681
mov al, byte [eax + 8]
jmp 0x50c683
mov al, 1
cmp al, 2
push 2
pop esi
push edi
jbe 0x50c6c4
and dword [ebp - 0x5c], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x60], 0x5c8e20
mov byte [ebp - 0x57], 1
call fcn.005117bc
push eax
lea edi, [ebp - 0x20]
call fcn.0050a441
lea ecx, [ebp - 0x40]
call fcn.0050a40d
mov dword [ebp - 0x60], 0x5c8ca0
jmp 0x50c6cc
lea edi, [ebp - 0x20]
call fcn.0050a441
push 0x1c
call fcn.004a8f86
test eax, eax
pop ecx
je 0x50c70a
mov dl, byte [ebx + 0x42d]
lea ecx, [eax + 0xb]
and ecx, 0xfffffffc
mov dword [eax], 0x609580
mov dword [eax + 4], ecx
mov dword [ecx], 0
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x20]
mov dword [eax], 0x6082c8
mov dword [eax + 0x14], ecx
mov byte [eax + 0x18], dl
jmp 0x50c70c
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push 1
push eax
push ecx
call dword [edx + 0x24]
test eax, eax
jge 0x50c726
mov edi, dword [ebp + 8]
mov dword [edi], esi
jmp 0x50c818
mov eax, dword [ebp - 0x10]
and dword [ebp - 0x18], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50c71c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x50c752
mov edi, dword [ebp + 8]
mov dword [edi], esi
jmp 0x50c80b
mov edx, dword [ebp - 0x18]
mov edi, dword [edx]
mov ecx, 0x4046
push ecx
mov eax, 0x40000000
push eax
push ecx
push eax
push edx
call dword [edi + 0x28]
test eax, eax
mov eax, dword [ebp - 0x18]
jge 0x50c77a
mov edi, dword [ebp + 8]
mov dword [edi], esi
jmp 0x50c80e
mov ecx, dword [eax]
push 3
push eax
call dword [ecx + 0x44]
test eax, eax
mov eax, dword [ebp - 0x18]
jl 0x50c770
lea edx, [ebp - 0x1c]
push edx
xor edi, edi
push edi
push edi
mov dword [ebp - 0x1c], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
test eax, eax
mov eax, dword [ebp - 0x1c]
jl 0x50c7fc
cmp eax, edi
je 0x50c7fc
cmp dword [ebx + 0x420], edi
mov ecx, dword [eax]
push edi
je 0x50cab7
push eax
call dword [ecx + 0xc]
test eax, eax
mov eax, dword [ebp - 0x1c]
jl 0x50c7fc
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
push 1
push 0x23
push 0x3e9
push str.VID_Command
push eax
call dword [ecx + 0x10]
test eax, eax
mov eax, dword [ebp - 0x1c]
jl 0x50c7fc
push dword [ebp - 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
mov eax, dword [ebp - 0x1c]
jl 0x50c7fc
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x28]
test eax, eax
jge 0x50c85d
mov eax, dword [ebp - 0x1c]
test eax, eax
mov edi, dword [ebp + 8]
mov dword [edi], esi
je 0x50c80b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50c818
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x20]
call fcn.0050a40d
mov eax, dword [ebp - 8]
test eax, eax
je 0x50c82d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x50c83a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x50c847
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x50c854
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0x420]
xor edx, edx
xor ebx, ebx
cmp word [esi], dx
je 0x50c8e6
fld1
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + 2]
mov dword [ebp - 0x7c], eax
lea eax, [edx + esi]
lea esi, [ebp - 0x94]
push esi
push ecx
mov dword [ebp - 0x94], str.VID_Cmd
mov dword [ebp - 0x8c], str.Property
fstp dword [esp]
push 1
push 0x5bbe3c
push eax
push 0
push dword [ebp - 0x54]
mov word [ebp - 0x84], 3
mov edx, dword [ecx]
push ecx
call dword [edx + 0x1c]
test eax, eax
jl 0x50ca87
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0x420]
inc ebx
mov edx, ebx
imul edx, edx, 0x20a
cmp word [edx + esi], 0
jne 0x50c86f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x28]
test eax, eax
mov eax, dword [ebp - 0x1c]
jl 0x50ca8a
mov ecx, dword [eax]
push 1
push 0x3e9
push eax
call dword [ecx + 0x4c]
test eax, eax
jl 0x50ca87
mov esi, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov byte [ebp - 0x21], 0
inc edi
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
push 0x1f4
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, esi
call dword [eax + 8]
cmp dword [ebp - 0x28], edi
je 0x50cb2a
cmp dword [ebp - 0x28], 2
je 0x50c91d
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0xac]
push edx
push edi
push eax
call dword [ecx + 0x2c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
je 0x50c984
cmp dword [ebp - 0x44], ebx
jbe 0x50cb6d
cmp word [ebp - 0xac], 0x22
jne 0x50cb6d
mov byte [ebp - 0x21], 1
cmp dword [ebp - 0x44], edi
jb 0x50c91d
movzx eax, word [ebp - 0xac]
cmp eax, 0x22
je 0x50cb88
cmp eax, 0x26
jne 0x50c94a
mov eax, dword [ebp - 0x98]
push ebx
lea edx, [ebp - 0x3c]
push edx
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
mov esi, eax
mov dword [ebp - 0x3c], ebx
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x40], esi
call dword [ecx + 0x14]
push dword [ebp - 0x3c]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.004b08e5
mov eax, dword [esi]
lea ecx, [ebp - 0xcc]
push ecx
push esi
call dword [eax + 0x1c]
test eax, eax
jl 0x50cb02
xor ebx, ebx
push ebx
mov esi, 0x2710
push esi
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
call fcn.00598260
push ebx
push esi
push dword [ebp - 0xc0]
mov dword [ebp - 0x34], eax
push dword [ebp - 0xc4]
mov dword [ebp - 0x30], edx
call fcn.00598260
cmp dword [ebp - 0x50], ebx
mov esi, eax
mov eax, dword [ebp - 0x50]
mov edi, edx
jne 0x50ca29
mov eax, 0x5b07d8
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebx]
push edi
push esi
push dword [ebp - 0x30]
mov ecx, ebx
push dword [ebp - 0x34]
push eax
call dword [edx]
mov eax, dword [ebx + 0x210]
test eax, eax
je 0x50cb02
cmp dword [eax + 4], 0
jbe 0x50ca5a
push 0x5bbe3c
call fcn.00558e38
pop ecx
push 0x1c
call fcn.004a8f86
test eax, eax
pop ecx
je 0x50cad6
add esi, dword [ebp - 0x34]
mov ecx, dword [ebx + 0x210]
adc edi, dword [ebp - 0x30]
mov ecx, dword [ecx + 4]
push edi
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x4c]
call fcn.0050b113
jmp 0x50cad8
mov eax, dword [ebp - 0x1c]
test eax, eax
mov esi, dword [ebp + 8]
mov dword [esi], 2
je 0x50ca9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50caaa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x20]
call fcn.0050a40d
jmp 0x50c63d
push edi
push eax
call dword [ecx + 0x50]
test eax, eax
mov eax, dword [ebp - 0x1c]
jl 0x50c7fc
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x58]
cmp eax, edi
jmp 0x50c90b
xor eax, eax
xor esi, esi
lea edx, [ebx + 0x428]
mov dword [eax], esi
mov ecx, dword [edx]
cmp ecx, esi
jne 0x50caee
mov dword [edx], eax
jmp 0x50caf4
mov ecx, dword [ecx]
cmp dword [ecx], esi
jne 0x50caec
mov dword [ecx], eax
mov eax, dword [ebx + 0x210]
lea edi, [ebp - 0x50]
call fcn.00558d2a
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x3c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x50]
call fcn.0058f8c9
mov esi, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
pop ecx
inc edi
jmp 0x50c94a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x18]
call fcn.0050c26a
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x50cb53
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x50cb60
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x20]
call fcn.0050a40d
jmp 0x50c481
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x18]
call fcn.0050c26a
mov esi, dword [ebp + 8]
mov dword [esi], edi
jmp 0x50cb46
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x58]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
cmp byte [ebp - 0x21], 0
je 0x50cba9
mov dword [ebp - 0x68], edi
lea eax, [ebp - 0x68]
jmp 0x50cbaf
mov dword [ebp - 0x64], ebx
lea eax, [ebp - 0x64]
mov eax, dword [eax]
jmp 0x50cb41