Function at 0x51e06734
Capabilities:
Identify system language via api

Disassembly:
cmp byte [eax + 0x2d], 0
je 0x51e05f8b
cmp dword [eax + 0x28], 0xffffffff
je 0x51e05f8b
mov eax, dword [ebx]
push edx
push edx
push dword [ebx + 0xc]
lea eax, [eax + esi*2]
push eax
call fcn.51e05f1b
test eax, eax
jne 0x51e0702d
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x18]
je 0x51e067c6
mov ecx, dword [ebx + 4]
add eax, ecx
mov ecx, dword [ebx + 8]
cmp eax, ecx
ja 0x51e067c6
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x14], edi
jmp 0x51e067c6
cmp byte [eax + 0xf1], 0
jne 0x51e22003
jmp 0x51e0702d
mov eax, dword [ebp + 0x44]
shr eax, 1
push eax
push dword [ebx + 8]
lea eax, [ebp + 0x68]
push eax
push dword [ebx]
call fcn.51e05dd3
test eax, eax
je 0x51e22012
jmp 0x51e07145
push ebp
lea ebp, [esp - 0x26c]
sub esp, 0x2ec
mov eax, dword [0x51e8c240]
push ebx
push esi
mov esi, dword [ebp + 0x274]
mov ebx, dword [esi + 0x54]
push edi
push esi
mov dword [ebp + 0x268], eax
call fcn.51e09b97
mov eax, dword [esi + 0xc]
xor edi, edi
cmp byte [eax + 0xed], 0
pop ecx
mov dword [ebp + 0x60], edi
je 0x51e067a1
mov eax, dword [0x51e8b69c]
cmp eax, edi
je 0x51e21fa9
cmp dword [eax + 0x53bc], edi
jne 0x51e21fd3
test byte [eax + 0x53b6], 0x3c
jne 0x51e21fd3
cmp byte [ebx + 0x24], 0
jne 0x51e06fd3
xor ecx, ecx
cmp dword [ebx + 0x18], ecx
jne 0x51e220a3
mov eax, dword [ebp + 0x274]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0xed], cl
je 0x51e067c6
cmp byte [ebx + 0x24], cl
jne 0x51e2209a
mov ecx, dword [ebp + 0x274]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 0xfc]
test eax, eax
pop edi
pop esi
pop ebx
jne 0x51e220c2
mov ecx, dword [ebp + 0x268]
mov eax, dword [ebp + 0x60]
call fcn.51e03d50
add ebp, 0x26c
leave
ret
mov edx, dword [ebx + 0x14]
cmp edx, edi
je 0x51e067a1
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 8]
lea edi, [esi + ecx]
cmp edi, eax
jne 0x51e067a1
sub eax, ecx
add eax, edx
xor edi, edi
cmp eax, edi
jbe 0x51e067a1
cmp eax, 0x100
jae 0x51e067a1
cmp ecx, edi
mov eax, dword [ebp + 0x274]
mov eax, dword [eax + 0x10]
mov dword [ebp + 0x58], eax
ja 0x51e05f37
add esi, edx
cmp esi, 0x200
ja 0x51e067c6
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 0x18]
mov esi, dword [ebx]
lea ecx, [eax + eax]
mov dword [ebp + 0x64], ecx
mov edx, ecx
shr ecx, 2
lea edi, [ebp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebx + 0xc]
shl ecx, 1
mov edi, edx
mov edx, ecx
shr ecx, 2
lea edi, [ebp + edi + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebp + 0x274]
add ecx, eax
and word [ebp + ecx*2 + 0x68], 0
push 9
mov dword [ebp + 0x5c], eax
pop ecx
xor eax, eax
lea edi, [ebp + 0x34]
push esi
rep stosd dword es:[edi], eax
call fcn.51e0c64f
or dword [ebp - 0x60], 0xffffffff
mov dword [ebp + 0x34], eax
lea eax, [ebp + 0x68]
mov dword [ebp + 0x40], eax
xor edi, edi
lea eax, [ebp - 0x80]
push 2
inc edi
push eax
mov dword [ebp + 0x3c], 0x200
mov dword [ebp + 0x54], edi
mov dword [ebp - 0x14], esi
call fcn.51e18d27
mov esi, dword [ebp + 0x58]
push edi
push edi
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.51e06f01
mov ecx, dword [ebp + 0x38]
add esp, 0x20
cmp al, 4
mov dword [esi + 0x28], ecx
setne cl
mov byte [esi + 0x2d], cl
xor ecx, ecx
cmp al, 4
sete cl
cmp al, 1
mov byte [esi + 0x2c], al
mov dword [esi + 0x128], ecx
je 0x51e070f4
cmp al, 2
jne 0x51e067c6
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.51e05f9d
test eax, eax
pop ecx
pop ecx
je 0x51e067c6
mov byte [esi + 0x2c], 1
mov edi, dword [ebp + 0x44]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 0x18]
shr edi, 1
lea edx, [eax + ecx]
add esi, edi
cmp edx, esi
mov dword [ebp + 0x64], edx
ja 0x51e067c6
push ecx
push ecx
mov ecx, dword [ebx]
push dword [ebx + 0xc]
lea eax, [ecx + eax*2]
push eax
call fcn.51e05dd3
test eax, eax
je 0x51e06288
xor eax, eax
cmp dword [ebp + 0x64], eax
lea esi, [ebp + 0x68]
jle 0x51e0715d
cmp word [esi], 0
je 0x51e0715d
inc esi
inc esi
inc eax
cmp eax, dword [ebp + 0x64]
jl 0x51e0714f
sub edi, eax
test edi, edi
jle 0x51e067c6
cmp word [esi], 0
je 0x51e067c6
mov edx, dword [ebx + 0x14]
lea ecx, [ebp + 0x68]
mov eax, esi
sub eax, ecx
mov ecx, dword [ebp + 0x44]
sar eax, 1
shl eax, 1
sub ecx, eax
mov eax, dword [ebx + 0x10]
sub eax, edx
shl eax, 1
cmp ecx, eax
jae 0x51e07191
mov eax, ecx
mov edi, dword [ebx + 0xc]
lea edi, [edi + edx*2]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 8]
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebx + 0x18]
and dword [ebx + 0x28], 0
mov edx, edi
sub edx, esi
add edx, ecx
mov dword [ebx + 0x1c], edx
cdq
sub eax, edx
sar eax, 1
mov edx, eax
sub edx, esi
add edx, edi
add edx, ecx
add eax, ecx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x14], eax
jmp 0x51e067c6
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
cmp ax, 0x411
je 0x51e21fd3
call esi
cmp ax, 0x404
je 0x51e21fd3
call esi
cmp ax, 0x412
je 0x51e21fd3
call esi
cmp ax, 0x804
jne 0x51e06797
cmp dword [ebx + 0x2c], edi
jne 0x51e067a1
mov eax, dword [0x51e8a120]
cmp eax, edi
je 0x51e06797
mov eax, dword [eax + 0x48]
cmp eax, edi
je 0x51e06797
call eax
test eax, eax
je 0x51e067a1
jmp 0x51e06797
cmp byte [eax + 0x2c], 2
jne 0x51e0702d
jmp 0x51e05f43
mov ecx, dword [ebx + 0x14]
cmp ecx, dword [ebx + 0x18]
je 0x51e067c6
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
lea edx, [eax + ecx]
cmp edx, esi
ja 0x51e067c6
push ecx
push ecx
mov ecx, dword [ebx]
push dword [ebx + 0xc]
mov dword [ebx + 0x20], esi
lea eax, [ecx + eax*2]
xor esi, esi
push eax
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x28], esi
call fcn.51e05f1b
test eax, eax
jne 0x51e22059
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x14], esi
jmp 0x51e067c6
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebx + 0x10]
shr eax, 1
cmp eax, ecx
jb 0x51e22067
mov eax, ecx
sub eax, dword [ebp + 0x5c]
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 0xc]
mov edx, eax
mov eax, dword [ebx + 0x14]
mov ecx, edx
sub ecx, eax
shl ecx, 1
add esi, eax
lea edi, [edi + eax*2]
mov eax, ecx
shr ecx, 2
lea esi, [ebp + esi*2 + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x14], edx
jmp 0x51e067c6
cmp dword [ebx + 0x14], ecx
je 0x51e067c6
mov eax, dword [ebp + 0x274]
mov eax, dword [eax + 0x10]
mov byte [eax + 0x2d], 0
mov dword [eax + 0x128], ecx
mov byte [eax + 0xf1], 0
jmp 0x51e067c6
cmp word [eax], 0
je 0x51e067e0
or dword [ebp - 0x60], 0xffffffff
lea eax, [ebp - 0x80]
push 1
push eax
mov dword [ebp - 0x14], ecx
call fcn.51e18d27
mov eax, dword [ebp - 0x78]
test eax, eax
pop ecx
pop ecx
jne 0x51e220ef
and dword [ebp + 0x60], eax
jmp 0x51e067e0
lea ecx, [ebp - 0x80]
push ecx
call dword [eax + 0x54]
pop ecx
mov dword [ebp + 0x60], eax
jmp 0x51e067e0