Function at 0x51e16c00
Capabilities:
Identify system language via api

Disassembly:
cmp dword [ebp - 0x28], eax
jne 0x51e1a2b5
cmp dword [ebp - 0x1c], edi
je 0x51e2a533
jmp 0x51e1a2b5
mov ecx, dword [0x51e8c348]
mov eax, dword [ebp - 4]
mov dword [ecx + 0x68], eax
cmp byte [ecx + 0x118], 0
jne 0x51e2a610
mov eax, dword [ebp - 8]
mov dword [ecx + 0x6c], eax
jmp 0x51e16d57
cmp dword [ebp - 0x28], 0
je 0x51e2a59f
cmp dword [ebp - 0x20], 0
je 0x51e2a59f
cmp dword [ebp - 0x1c], edi
jne 0x51e2a59f
jmp 0x51e1a24f
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x51e8b69c]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x51e2a480
xor ecx, ecx
cmp dword [eax + 0x53ac], 0x412
sete cl
mov eax, ecx
cmp eax, edi
mov eax, dword [0x51e8c348]
jne 0x51e2a495
mov ecx, dword [eax + 0x58]
mov dword [ebp - 0x10], ecx
mov esi, ecx
mov ecx, dword [eax + 0x54]
mov ebx, dword [eax + 0x5c]
mov dword [ebp - 0x28], ecx
xor ecx, ecx
cmp esi, ebx
sete cl
cmp dword [eax + 0x15c], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ecx
jne 0x51e2a4b0
call fcn.51e16841
mov ecx, dword [0x51e8c348]
cmp byte [ecx + 0x118], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x70]
mov dword [ebp - 0x2c], eax
jne 0x51e2a4ba
mov edx, dword [ecx + 0xac]
mov dword [ebp - 8], edx
cmp esi, dword [ecx + 0x34]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], edi
jb 0x51e2a4c8
cmp esi, ebx
jne 0x51e1a31a
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov ecx, dword [0x51e8c348]
mov eax, 0x7fa4
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x68], eax
mov eax, dword [ecx + 0x34]
cmp ebx, eax
mov dword [ebp - 0xc], eax
jb 0x51e16d57
cmp dword [ebp - 0x20], edi
je 0x51e16ce4
cmp dword [ebp - 0x28], edi
je 0x51e16ce4
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ecx + 0x34]
jne 0x51e16ce4
cmp eax, edi
jne 0x51e16d57
push 1
push dword [ecx + 0xdc]
lea eax, [ebp - 0x60]
push eax
call fcn.51e033b1
lea eax, [ebp - 0x60]
push eax
call fcn.51e038e8
add esp, 0x10
test eax, eax
je 0x51e1a30f
mov ebx, dword [ebp - 0x34]
mov ecx, dword [0x51e8c348]
mov edx, dword [ebp - 0x50]
cmp edx, dword [ecx + 0xe8]
mov eax, dword [ebp - 0x54]
mov esi, dword [eax + 4]
jb 0x51e1a223
cmp dword [ebp - 0x20], edi
je 0x51e16d57
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x1c], eax
jne 0x51e16d57
cmp byte [ecx + 0x118], 0
push edi
jne 0x51e2a5f9
mov eax, dword [ebp - 8]
mov dword [ecx + 0x6c], eax
call fcn.51e16386
pop ecx
mov ecx, dword [0x51e8c348]
mov dword [ecx + 0x68], eax
cmp dword [ebp - 0x24], edi
jne 0x51e16d6f
push edi
push edi
push edi
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov ecx, dword [0x51e8c348]
cmp byte [ecx + 0x118], 0
jne 0x51e2a5cf
pop edi
pop esi
pop ebx
leave
ret
mov dl, byte [ecx + 0x118]
test dl, dl
jne 0x51e2a4d4
mov ebx, dword [ecx + 0x10]
add ebx, dword [ebp - 8]
mov edi, dword [eax]
add edi, dword [ebp - 0xc]
cmp dword [ebp - 0x24], 0
jne 0x51e2a4ef
cmp dword [ebp - 0x10], edi
jae 0x51e13cec
push esi
push dword [ebp - 0x10]
xor eax, eax
push dword [ebp - 0xc]
inc eax
test dl, dl
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
jne 0x51e2a4e2
call fcn.51e16dfd
mov dword [ebp - 0x14], eax
mov ecx, dword [0x51e8c348]
xor eax, eax
add esp, 0xc
cmp dword [ecx + 0x50], eax
jne 0x51e1a296
cmp byte [ecx + 0x118], al
mov edx, dword [ebp - 4]
jne 0x51e1a28d
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x68], edx
mov edx, dword [ebp - 8]
mov dword [ecx + 0x6c], edx
cmp byte [ecx + 0x118], 0
jne 0x51e2a4f6
cmp dword [ebp - 0x18], edi
ja 0x51e2a533
cmp dword [ebp - 0x20], eax
jne 0x51e13cb1
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x34], 1
push dword [ebp - 0xc]
call fcn.51e16dfd
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 0x30], 0
je 0x51e2a544
mov eax, dword [ebp - 0x10]
and dword [ebp - 0x30], 0
cmp eax, dword [ebp - 0x18]
je 0x51e1a2f7
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x2c]
call dword [sym.imp.GDI32.dll_SetRectRgn]
cmp dword [ebp - 0x34], 0
je 0x51e2a599
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp dword [ebp - 0x1c], eax
je 0x51e13cc8
mov ecx, dword [0x51e8c348]
jmp 0x51e16d57
cmp dword [ebp - 0x24], edi
jne 0x51e16ca4
jmp 0x51e16cb5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
sub ax, 0x412
neg ax
sbb eax, eax
inc eax
jmp 0x51e16c29
test byte [eax + 0x11c], 1
je 0x51e16c36
mov esi, dword [eax + 0x120]
mov dword [ebp - 0x10], esi
jmp 0x51e16c3e
call fcn.51e59178
jmp 0x51e16d7c
mov edx, dword [ecx + 0xb0]
mov dword [ebp - 4], edx
jmp 0x51e16c8a
mov dword [ebp - 0x24], 1
jmp 0x51e16c9c
mov edi, dword [ebp - 4]
sub edi, dword [ecx + 0x10]
mov dword [ebp - 0x14], edi
jmp 0x51e1a237
call fcn.51e16dfd
mov dword [ebp - 8], eax
jmp 0x51e1a26f
xor eax, eax
jmp 0x51e1a296
cmp dword [ebp - 0x18], edi
ja 0x51e2a527
cmp dword [ebp - 0x20], eax
je 0x51e2a50a
cmp dword [ebp - 0x28], eax
jne 0x51e2a50a
cmp dword [ebp - 0x1c], edi
je 0x51e2a527
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x34], 1
push dword [ebp - 0xc]
call fcn.51e16dfd
add esp, 0xc
mov ebx, eax
jmp 0x51e1a2ce
push esi
call fcn.51e16386
mov ebx, eax
add ebx, esi
jmp 0x51e2a53e
push esi
call fcn.51e16386
add eax, esi
mov dword [ebp - 4], eax
pop ecx
jmp 0x51e1a2ce
mov eax, dword [0x51e8c348]
cmp byte [eax + 0x118], 0
push esi
je 0x51e2a55d
call fcn.51e16386
mov dword [ebp - 8], eax
jmp 0x51e2a565
call fcn.51e16386
mov dword [ebp - 0x14], eax
mov eax, dword [0x51e8b69c]
pop ecx
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [eax + 0x34]
call dword [sym.imp.GDI32.dll_SetRectRgn]
mov eax, dword [0x51e8b69c]
push 2
push dword [eax + 0x34]
push dword [ebp - 0x2c]
push dword [ebp - 0x2c]
call dword [sym.imp.GDI32.dll_CombineRgn]
jmp 0x51e1a2f7
mov ecx, dword [0x51e8c348]
cmp byte [ecx + 0x118], 0
mov dword [ebp - 0xc], edi
je 0x51e2a5b3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0x51e2a5b6
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x60]
push eax
call fcn.51e038e8
xor edi, edi
test eax, eax
pop ecx
jne 0x51e16d0c
jmp 0x51e1a30f
mov edx, dword [ecx + 8]
mov eax, 0xc00
and edx, eax
cmp edx, eax
jne 0x51e16d7c
mov eax, dword [ecx + 0xa4]
cmp eax, dword [ecx + 0x6c]
jne 0x51e16d7c
add dword [ecx + 0x6c], 0xfffffffe
jmp 0x51e16d7c
mov eax, dword [ebp - 4]
mov dword [ecx + 0x68], eax
call fcn.51e16386
pop ecx
mov ecx, dword [0x51e8c348]
jmp 0x51e13ce4
mov dword [ecx + 0x6c], ebx
jmp 0x51e16d57