Function at 0x51e4601b
Capabilities:
Identify system language via api

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x130
push ebx
push esi
mov esi, dword [ebp + 0x7c]
mov ebx, dword [esi + 0x10]
push edi
xor edi, edi
cmp dword [0x51eb3b3c], edi
je 0x51e4604a
call fcn.51e45ee7
cmp dword [0x51eb3b3c], edi
jne 0x51e463a4
lea eax, [ebp - 0xbc]
push esi
push eax
call fcn.51e455d7
mov eax, dword [0x51e8b69c]
cmp word [eax + 0x537c], di
pop ecx
pop ecx
jne 0x51e46070
cmp word [eax + 0x53a4], di
je 0x51e46081
test byte [ebp - 0xbc], 0x80
je 0x51e4607e
or byte [esi], 0x80
jmp 0x51e46081
and byte [esi], 0x7f
call fcn.51e170f4
test eax, eax
je 0x51e463a0
mov eax, dword [0x51e8b69c]
cmp byte [eax + 0x52c8], 0
jne 0x51e463a0
cmp dword [ebx + 0x14], edi
je 0x51e463a4
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x114]
mov dword [ebp + 0x70], eax
mov eax, 0x51eb3b28
add esi, 0x28
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 2
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x7c]
push eax
push edi
call fcn.51e163c1
add esp, 0xc
mov esi, 0x51eb3b28
push esi
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
call edi
mov eax, dword [ebp + 0x7c]
push 0x51eb3b30
push dword [eax + 4]
call edi
push 2
push esi
call fcn.51e4d912
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], 0x28
call fcn.51e4d95e
or dword [ebp + 0x44], 0xffffffff
or dword [ebp + 0x48], 0xffffffff
lea esi, [ebp + 0xc]
lea edi, [ebp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x54]
sub esi, dword [ebp + 0x4c]
lea eax, [ebp + 0x44]
push eax
xor edi, edi
inc edi
push edi
push 0xb54
push dword [ebx + 0x14]
call dword [0x51e8bba0]
mov ecx, dword [ebp - 0xb0]
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x58]
sub eax, dword [ebp + 0x50]
test byte [ecx + 2], 2
je 0x51e46155
mov ecx, dword [0x51e8b69c]
sub eax, dword [ecx + 0x54]
cdq
idiv dword [ebp + 0x5c]
cmp dword [ebp + 0x70], eax
jl 0x51e46161
mov dword [ebp + 0x70], eax
cmp dword [ebp + 0x70], edi
jg 0x51e46169
mov dword [ebp + 0x70], edi
push 9
xor eax, eax
pop ecx
lea edi, [ebp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x70]
dec eax
mov dword [ebp + 0x24], eax
je 0x51e46197
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.51e05f9d
test eax, eax
pop ecx
pop ecx
jne 0x51e46197
dec dword [ebp + 0x24]
jne 0x51e4617c
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0xb0]
inc eax
imul eax, dword [ebp + 0x5c]
inc eax
inc eax
test byte [ecx + 2], 2
je 0x51e461b6
mov ecx, dword [0x51e8b69c]
add eax, dword [ecx + 0x54]
mov edi, dword [ebp + 0x7c]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x118]
imul eax, dword [0x51e8b840]
shl eax, 1
cdq
mov ecx, 0x5a0
idiv ecx
mov ecx, dword [0x51eb3b30]
sub ecx, dword [0x51eb3b28]
inc eax
sar eax, 1
cmp ecx, eax
jle 0x51e461eb
mov eax, ecx
cmp eax, esi
mov dword [ebx + 0x18], eax
jle 0x51e461f5
mov dword [ebx + 0x18], esi
mov eax, dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 0x1c]
push 0x1e
mov dword [ebp - 0x88], eax
push dword [ebx + 0x1c]
xor eax, eax
push dword [ebx + 0x18]
push eax
push eax
push eax
push dword [ebx + 0x14]
call esi
mov eax, dword [0x51eb3b34]
mov ecx, dword [ebx + 0x1c]
add ecx, eax
mov dword [ebp + 0x64], eax
mov eax, dword [0x51e8b69c]
mov dword [ebp + 0x6c], ecx
cmp word [eax + 0x537c], 0
je 0x51e4624d
test byte [edi], 0x40
je 0x51e4624d
mov eax, dword [0x51eb3b30]
sub eax, dword [ebx + 0x18]
jmp 0x51e46252
mov eax, dword [0x51eb3b28]
mov ecx, dword [ebx + 0x18]
add ecx, eax
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x60]
push 0x51eb3b28
push eax
mov dword [ebp + 0x68], ecx
call fcn.51e4dc6f
mov eax, dword [0x51e8b69c]
add esp, 0xc
test eax, eax
jne 0x51e4636a
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call edi
cmp ax, 0x411
je 0x51e46377
call edi
cmp ax, 0x404
je 0x51e46377
call edi
cmp ax, 0x412
je 0x51e46377
call edi
cmp ax, 0x804
je 0x51e46377
and dword [ebp + 0x70], 0
mov eax, dword [ebp + 0x6c]
sub eax, dword [ebp + 0x64]
push 0x10
push eax
mov eax, dword [ebp + 0x68]
sub eax, dword [ebp + 0x60]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
push dword [ebp + 0x70]
push dword [ebx + 0xc]
call esi
mov eax, dword [ebx + 0xc]
mov dword [0x51eb3b3c], eax
mov eax, dword [ebp + 0x7c]
mov eax, dword [eax + 4]
push eax
mov byte [ebx + 0x20], 1
mov dword [0x51eb3b40], eax
call fcn.51e4da3c
test eax, eax
pop ecx
mov dword [0x51eb3b44], eax
je 0x51e4631f
push 0xfffffffffffffffc
push eax
call dword [0x51e8b698]
push 0x51e45efd
push 0xfffffffffffffffc
push dword [0x51eb3b44]
mov dword [0x51eb3b38], eax
call dword [0x51e8bbc4]
xor edi, edi
lea eax, [ebp - 0xbc]
mov byte [ebx + 0x22], 1
inc edi
push eax
mov dword [ebp - 0x5c], edi
call fcn.51e18578
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0x5c], edi
call fcn.51e16f9d
push dword [ebp + 0x7c]
call fcn.51e06ea4
add esp, 0xc
push 0x57
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp + 0x70]
push dword [ebx + 0xc]
call esi
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x51e463a4
cmp dword [eax + 0x53b8], 0
je 0x51e462b5
mov eax, dword [0x51e8a120]
test eax, eax
je 0x51e462b5
mov eax, dword [eax + 0x84]
test eax, eax
je 0x51e462b5
lea ecx, [ebp + 0x60]
push ecx
call eax
mov dword [ebp + 0x70], eax
jmp 0x51e462b9
mov byte [ebx + 0x25], 0
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret