Function at 0x51e03a84
Capabilities:
Identify system language via api

Disassembly:
push ebx
call fcn.51e031ca
pop ecx
jmp 0x51e03220
push dword [ebp + 8]
call fcn.51e02fa0
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
je 0x51e03ab0
push ebx
call fcn.51e031ca
cmp eax, dword [ebp + 0x10]
pop ecx
jb 0x51e0229e
mov eax, dword [ebp + 0x10]
mov esi, dword [ebx]
push edi
mov edi, dword [ebp - 4]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 8
mov ecx, eax
push ebx
push dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.51e03a51
add esp, 0x10
mov ebx, eax
test ebx, ebx
pop edi
je 0x51e265ca
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
jmp 0x51e03ab0
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [eax]
mov eax, dword [ebx]
push esi
lea ecx, [ebx + 8]
cmp eax, ecx
push 0
push dword [ebp + 0x10]
je 0x51e031f7
push eax
push dword [ebp + 8]
call fcn.51e03a51
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
test esi, esi
je 0x51e265e0
mov dword [ebx], eax
mov eax, esi
pop esi
pop ebx
leave
ret
cmp dword [0x51e8b560], 0
jne 0x51e26600
push ebx
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.51e12f98
lea esp, [ebp - 0xf8]
mov ecx, dword [ebp + 0x54]
call fcn.51e03d50
pop edi
pop esi
pop ebx
add ebp, 0x58
leave
ret 0x20
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.51e03b98
and dword [ebp - 4], 0
pop ecx
pop ecx
jmp 0x51e03ab0
call fcn.51e735ff
push dword [ebp + 0x60]
call dword [sym.imp.GDI32.dll_GetObjectType]
cmp eax, 0xc
jne 0x51e12f58
or byte [ebp + 0x6f], 0x80
jmp 0x51e12f58
mov edi, dword [ebp + 0x78]
mov esi, dword [ebp + 0x74]
xor eax, eax
test edi, edi
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xd4], esi
jbe 0x51e26648
cmp word [esi + eax*2], 0x80
jae 0x51e2662b
inc eax
cmp eax, edi
mov dword [ebp - 0xc4], eax
jb 0x51e26618
cmp eax, edi
jae 0x51e26648
push dword [ebp + 0x60]
call fcn.51e3fe84
test eax, eax
pop ecx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], eax
jne 0x51e26650
push ebx
push edi
push esi
jmp 0x51e12f6c
cmp eax, dword [0x51eb3ba4]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x51e266d3
and dword [0x51eb3b98], 0
lea ecx, [ebp - 0x80]
push ecx
push 0x3c
push eax
mov dword [0x51eb3ba4], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp + 0x18]
rep stosd dword es:[edi], eax
mov byte [ebp + 0x2f], 1
mov cl, byte [ebp + eax - 0x64]
mov byte [ebp + eax + 0x34], cl
inc eax
test cl, cl
jne 0x51e26685
xor edi, edi
push edi
push 0x51eb3b98
push 0x51e52b3b
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x60]
mov byte [ebp + 0x33], cl
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
mov eax, dword [0x51eb3b9c]
cmp eax, edi
je 0x51e266c1
push eax
call ebx
mov dword [0x51eb3b9c], edi
mov eax, dword [0x51eb3ba0]
cmp eax, edi
je 0x51e266d3
push eax
call ebx
mov dword [0x51eb3ba0], edi
mov ebx, dword [ebp - 0xc4]
test ebx, ebx
jle 0x51e266e0
dec ebx
jmp 0x51e266e2
xor ebx, ebx
movzx eax, word [esi + ebx*2]
push eax
mov dword [ebp - 0xd8], ebx
call fcn.51e52b03
pop ecx
mov ecx, dword [0x51eb3b98]
test ecx, eax
je 0x51e26704
mov esi, ecx
jmp 0x51e267bd
cmp dword [ebp - 0xc8], 0
jne 0x51e26793
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp + 0x18]
rep stosd dword es:[edi], eax
push 0xaa
mov byte [ebp + 0x2f], 1
call fcn.51e01c0c
test eax, eax
pop ecx
je 0x51e26763
mov edi, 0xaa
push edi
call fcn.51e01c0c
pop ecx
push eax
call fcn.51e03933
lea eax, [eax + eax + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.51e038cf
mov esi, esp
push edi
call fcn.51e01c0c
push eax
push esi
call fcn.51e5b8b9
add esp, 0xc
jmp 0x51e26765
xor eax, eax
lea edx, [ebp + 0x34]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x51e26768
push 0
lea eax, [ebp - 0xc8]
push eax
push 0x51e52b3b
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x60]
mov byte [ebp + 0x33], cl
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
mov esi, dword [ebp + 0x74]
movzx eax, word [esi + ebx*2]
push eax
call fcn.51e52b03
pop ecx
mov ecx, dword [ebp - 0xc8]
test ecx, eax
mov eax, dword [0x51eb3b98]
je 0x51e267b1
mov esi, ecx
jmp 0x51e267b9
mov esi, eax
not esi
not ecx
and esi, ecx
cmp esi, eax
jne 0x51e267ed
mov eax, dword [ebp - 0xc4]
add eax, ebx
cmp eax, dword [ebp + 0x78]
jae 0x51e2683b
mov edi, eax
mov eax, dword [ebp + 0x74]
movzx eax, word [eax + ebx*2]
push eax
call fcn.51e52b03
test esi, eax
pop ecx
je 0x51e2683b
inc ebx
inc edi
cmp edi, dword [ebp + 0x78]
mov dword [ebp - 0xd8], ebx
jb 0x51e267cc
jmp 0x51e2683b
mov eax, dword [ebp - 0xc4]
add eax, ebx
cmp eax, dword [ebp + 0x78]
jae 0x51e2683b
mov edi, eax
mov eax, dword [ebp + 0x74]
lea eax, [eax + ebx*2]
mov dword [ebp - 0xe0], eax
movzx eax, word [eax]
push eax
call fcn.51e52b03
test esi, eax
pop ecx
je 0x51e2683b
mov eax, dword [ebp - 0xe0]
movzx eax, word [eax]
push eax
call fcn.51e52b03
test dword [0x51eb3b98], eax
pop ecx
jne 0x51e2683b
inc ebx
inc edi
cmp edi, dword [ebp + 0x78]
mov dword [ebp - 0xd8], ebx
jb 0x51e267fc
cmp ebx, dword [ebp + 0x78]
jb 0x51e269b2
cmp esi, dword [0x51eb3b98]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
je 0x51e26970
cmp esi, dword [ebp - 0xc8]
jne 0x51e2693b
mov eax, dword [0x51eb3b9c]
test eax, eax
je 0x51e26878
cmp dword [0x51e8c474], 0
je 0x51e26929
push 0x17
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push 0x5c
push dword [ebp - 0xd0]
call dword [0x51e850f8]
mov eax, dword [0x51eb3b9c]
test eax, eax
je 0x51e268a4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x20
lea eax, [ebp - 0x28]
push eax
push 0xaa
call fcn.51e01c0c
pop ecx
push eax
call fcn.51e00420
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x60]
call fcn.51e52b61
mov byte [ebp - 0x2d], al
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e268e5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
sub ax, 0x804
neg ax
sbb eax, eax
inc eax
jmp 0x51e268f6
xor ecx, ecx
cmp dword [eax + 0x53a8], 0x804
sete cl
mov eax, ecx
test eax, eax
je 0x51e26913
push 0x40000
call fcn.51e773a8
push eax
call fcn.51e772b8
cmp byte [ebp - 0x2d], al
jne 0x51e26913
or byte [ebp - 0x2b], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [0x51e89c08]
and dword [0x51e8c474], 0
mov dword [0x51eb3b9c], eax
test eax, eax
je 0x51e26970
push eax
push dword [ebp + 0x60]
call ebx
mov esi, dword [0x51eb3b9c]
jmp 0x51e26976
mov eax, dword [0x51eb3ba0]
test eax, eax
jne 0x51e26962
mov esi, 0x51e35338
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x69], al
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x51eb3ba0], eax
push eax
push dword [ebp + 0x60]
call ebx
mov esi, dword [0x51eb3ba0]
jmp 0x51e26976
mov esi, dword [ebp - 0xcc]
push dword [ebp + 0x7c]
push dword [ebp - 0xd8]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.51e12f98
cmp dword [ebp - 0xd0], esi
mov edi, eax
je 0x51e269ab
push dword [ebp - 0xd0]
push dword [ebp + 0x60]
call ebx
mov eax, edi
jmp 0x51e12f80
mov ebx, dword [ebp - 0xc4]
test ebx, ebx
jle 0x51e269bf
dec ebx
jmp 0x51e269c1
xor ebx, ebx
push dword [ebp + 0x60]
and dword [ebp - 0xc4], 0
call dword [sym.imp.GDI32.dll_GetTextAlign]
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call dword [sym.imp.GDI32.dll_MoveToEx]
push 1
push dword [ebp + 0x60]
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edi, dword [ebp - 0xd4]
lea esi, [edi + ebx*2]
movzx eax, word [esi]
push eax
mov dword [ebp + 0x74], esi
call fcn.51e52b03
pop ecx
mov ecx, dword [0x51eb3b98]
test ecx, eax
je 0x51e26a1f
mov esi, ecx
jmp 0x51e26afa
cmp dword [ebp - 0xc8], 0
jne 0x51e26ad1
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp + 0x18]
rep stosd dword es:[edi], eax
push 0xaa
mov byte [ebp + 0x2f], 1
call fcn.51e01c0c
pop ecx
push 0xf
mov edx, eax
pop ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc0], esi
lea edi, [ebp - 0xbc]
rep stosd dword es:[edi], eax
push 0x20
lea eax, [ebp - 0xc0]
push eax
push edx
call fcn.51e00420
lea eax, [ebp - 0xc0]
push eax
mov word [ebp - 0x82], si
call fcn.51e03933
lea eax, [eax + eax + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.51e038cf
mov eax, esp
lea ecx, [ebp - 0xc0]
push ecx
push eax
call fcn.51e5b8b9
pop ecx
pop ecx
lea ecx, [ebp + 0x34]
mov dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x51e26aa1
push esi
lea eax, [ebp - 0xc8]
push eax
push 0x51e52b3b
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x60]
mov byte [ebp + 0x33], dl
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
mov edi, dword [ebp - 0xd4]
mov esi, dword [ebp + 0x74]
movzx eax, word [esi]
push eax
call fcn.51e52b03
pop ecx
mov ecx, dword [ebp - 0xc8]
test ecx, eax
mov eax, dword [0x51eb3b98]
je 0x51e26aee
mov esi, ecx
jmp 0x51e26af6
mov esi, eax
not esi
not ecx
and esi, ecx
cmp esi, eax
jne 0x51e26b27
mov eax, dword [ebp - 0xc4]
add eax, ebx
cmp eax, dword [ebp + 0x78]
jae 0x51e26b65
mov dword [ebp + 0x74], eax
movzx eax, word [edi + ebx*2]
push eax
call fcn.51e52b03
test esi, eax
pop ecx
je 0x51e26b65
inc ebx
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp + 0x78]
jb 0x51e26b0a
jmp 0x51e26b65
mov eax, dword [ebp - 0xc4]
add eax, ebx
cmp eax, dword [ebp + 0x78]
jae 0x51e26b65
mov dword [ebp + 0x74], eax
movzx eax, word [edi + ebx*2]
push eax
call fcn.51e52b03
test esi, eax
pop ecx
je 0x51e26b65
movzx eax, word [edi + ebx*2]
push eax
call fcn.51e52b03
test dword [0x51eb3b98], eax
pop ecx
jne 0x51e26b65
inc ebx
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp + 0x78]
jb 0x51e26b37
cmp esi, dword [0x51eb3b98]
je 0x51e26c56
cmp esi, dword [ebp - 0xc8]
jne 0x51e26c18
mov eax, dword [0x51eb3b9c]
test eax, eax
je 0x51e26b8f
cmp dword [0x51e8c474], 0
je 0x51e26bfd
push 0x17
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push 0x5c
push dword [ebp - 0xcc]
call dword [0x51e850f8]
mov eax, dword [0x51eb3b9c]
test eax, eax
je 0x51e26bbb
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x20
lea eax, [ebp - 0x28]
push eax
push 0xaa
call fcn.51e01c0c
pop ecx
push eax
call fcn.51e00420
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x60]
call fcn.51e52b61
mov byte [ebp - 0x2d], al
lea eax, [ebp - 0x44]
push eax
call dword [0x51e89c08]
and dword [0x51e8c474], 0
mov edi, dword [ebp - 0xd4]
mov dword [0x51eb3b9c], eax
test eax, eax
je 0x51e26c7a
push eax
push dword [ebp + 0x60]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x51eb3b9c]
mov dword [ebp - 0xcc], eax
jmp 0x51e26c7a
mov eax, dword [0x51eb3ba0]
test eax, eax
jne 0x51e26c45
mov esi, 0x51e35338
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x69], al
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, dword [ebp - 0xd4]
mov dword [0x51eb3ba0], eax
push eax
push dword [ebp + 0x60]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x51eb3ba0]
jmp 0x51e26c10
mov eax, dword [ebp - 0xcc]
cmp dword [ebp - 0xd0], eax
je 0x51e26c7a
mov esi, dword [ebp - 0xd0]
push esi
push dword [ebp + 0x60]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xcc], esi
cmp dword [ebp - 0xe4], 0
je 0x51e26ca5
push dword [ebp + 0x7c]
push ebx
push edi
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.51e12f98
and dword [ebp - 0xe4], 0
jmp 0x51e26cc5
push dword [ebp - 0xdc]
mov eax, dword [ebp + 0x6c]
push ebx
push edi
push dword [ebp + 0x70]
and eax, 0xfffffffd
push eax
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.51e12f98
test ebx, ebx
mov esi, eax
je 0x51e26d00
mov eax, dword [ebp - 0xdc]
add dword [ebp - 0xc4], ebx
test eax, eax
lea edi, [edi + ebx*2]
mov dword [ebp - 0xd4], edi
je 0x51e26ced
lea eax, [eax + ebx*4]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xc4]
xor ebx, ebx
cmp eax, dword [ebp + 0x78]
jb 0x51e269fe
jmp 0x51e26d02
xor esi, esi
mov ebx, dword [ebp + 0x60]
mov edi, dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push ebx
call edi
push dword [ebp - 0xe0]
push ebx
call edi
push 0
push dword [ebp - 0xe8]
push dword [ebp - 0xec]
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [ebp - 0xd0]
cmp eax, dword [ebp - 0xcc]
je 0x51e26d44
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, esi
jmp 0x51e12f80