Function at 0x10018b4d
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x10079b17
call fcn.10079240
sub esp, 0xe0
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x24], ecx
je 0x10019102
mov dword [ebp - 0x18], 0xfffffffd
xor ebx, ebx
mov dword [ebp - 0x14], 0xfffffffa
mov dword [ebp - 0x24], 0xef33
mov dword [ebp + 8], ebx
jmp 0x10018b9c
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0xe0], 0xcd546735
inc dword [ebp + 8]
cmp dword [ebp + 8], 3
jl 0x10018b8b
cmp dword [ebp - 0x18], 0x1124f01c
push 1
pop edx
jg 0x10018c68
mov dword [ebp - 0x20], 0x78d8
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], 0xd
jne 0x10018bea
mov dword [ebp - 0x14], 0x1249
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x10018bd8
push ebx
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xd
je 0x10018bc2
xor edx, edx
inc edx
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp eax, edx
setg cl
xor edx, edx
mov dword [ebp - 0xe0], ecx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
setge dl
add edx, 2
neg edx
sbb edx, edx
inc edx
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp eax, edx
mov eax, dword [ebp - 0x14]
setl cl
xor edx, edx
cmp ecx, 0xd714f98c
setne dl
xor ecx, ecx
cmp eax, edx
mov eax, dword [ebp - 0x18]
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 0x18]
setle dl
xor ecx, ecx
cmp eax, edx
mov eax, dword [ebp - 0x20]
setge cl
mov dword [ebp + 8], ecx
xor ecx, ecx
cmp dword [ebp + 8], eax
setl cl
xor eax, eax
cmp ecx, 0xf6a0
setle al
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
jmp 0x10018c76
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x10018c79
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
xor edx, edx
inc edx
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x10018de7
mov dword [ebp - 0x18], 0x915a
mov dword [ebp - 0x20], edx
mov dword [ebp + 8], ebx
jmp 0x10018ca2
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x44], 0xfffffffd
inc dword [ebp + 8]
cmp dword [ebp + 8], 3
jl 0x10018c94
mov dword [ebp - 0x18], 0x8ec0ae97
mov dword [ebp - 0x18], ebx
jmp 0x10018dc2
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x44]
cmp dword [ebp - 0x24], eax
jne 0x10018cd3
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x40]
xor ecx, ecx
cmp eax, 0x4bcd
setne cl
cmp ecx, dword [ebp - 0x18]
jge 0x10018cf0
mov eax, dword [ebp - 0x18]
mov esi, ebx
cmp dword [ebp + eax*4 - 0x44], ebx
je 0x10018cf2
mov esi, edx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x44]
cmp eax, esi
setge cl
mov dword [ebp - 0x20], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x24]
cmp eax, 0x6eab3cf8
setl cl
cmp ecx, 0xeec54165
jbe 0x10018d8f
mov dword [ebp - 0x1c], edx
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
cmp eax, edx
setle cl
cmp ecx, edx
sbb eax, eax
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
jmp 0x10018d87
cmp dword [ebp - 0x1c], ebx
jne 0x10018dbc
mov dword [ebp - 0x24], ebx
jmp 0x10018d7e
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x10018d5e
push ebx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x1c], ebx
jmp 0x10018d75
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x10018d72
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jle 0x10018d63
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 2
jle 0x10018d4f
dec dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0xffffffea
jle 0x10018d45
jmp 0x10018dbc
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x10018da2
push 0x4a8
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x10018dbc
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
inc dword [ebp - 0x18]
push 1
pop edx
cmp dword [ebp - 0x18], 2
jle 0x10018cb7
push ebx
push 0xd0f
push 0x138b
push 0x1698
push 0xd3f
call dword [sym.imp.GDI32.dll_CreateBitmap]
push dword [ebp + 8]
movdqa xmm0, xmmword [0x10007b30]
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x24], 0x40d7f825
push eax
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
movdqu xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.10017bef
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], 0xf69a0165
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], 0
je 0x10018e52
push ebx
push 0x588
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov dword [ebp - 0x24], ebx
jmp 0x100190eb
push dword [ebp + 8]
movdqa xmm0, xmmword [0x10007b80]
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x34], ebx
push eax
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], ebx
movdqu xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0x2c], ebx
call fcn.10017bef
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], 0x81eca6c8
push 2
call fcn.100164e9
mov byte [ebp - 4], 2
mov dword [ebp + 8], ebx
jmp 0x10018ec4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x98]
mov dword [eax + ecx*4], 7
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x10018eb1
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], 0
je 0x10018ee9
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], 3
jg 0x100190d2
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0xa445a8cc
xor edx, edx
mov dword [ebp - 0x38], 0x58e9d28b
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x34]
cmp dword [eax + ecx*4], 0xec21
mov eax, dword [ebp + 8]
sete dl
sub edx, eax
mov dword [ebp - 0x14], edx
xor edx, edx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov esi, dword [esi + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
cmp ecx, eax
setge dl
imul edx, dword [ebp + 8]
add edx, dword [ebp - 0x24]
sub edx, dword [ebp + 8]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp esi, edx
setge cl
xor eax, eax
add ecx, esi
mov esi, dword [ebp - 0x20]
cmp ecx, 0xfffffffd
setne al
imul edx, eax, 0x2b4b
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + edi*4]
add ecx, dword [eax + esi*4]
xor eax, eax
cmp ecx, edx
setne al
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x20], 3
cmp dword [ebp - 0x20], ebx
jl 0x100190c2
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], 0xd28e4879
mov dword [ebp - 0x1c], 0xa0c09020
mov dword [ebp - 0x18], 0x3de76903
mov dword [ebp - 0x1c], 0x5c8bb6af
cmp dword [ebp - 0x24], ebx
je 0x10018fdd
cmp dword [ebp + 8], ebx
je 0x10018fbf
cmp dword [ebp - 0x14], ebx
je 0x10018fbf
xor eax, eax
inc eax
jmp 0x10018fc1
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x18]
test eax, eax
je 0x10018fdd
xor edi, edi
inc edi
jmp 0x10018fdf
mov edi, ebx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ecx*4]
xor ecx, ecx
mov dword [edx + esi*4], eax
cmp edi, 0x5fcb
mov eax, dword [ebp - 0x38]
setge cl
mov dword [eax + 0xc], 0x5fcb
xor eax, eax
cmp dword [edx + esi*4], ecx
sete al
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], 3
cmp dword [ebp - 0x14], ebx
jl 0x100190b9
mov dword [ebp - 0x1c], 0x1d67a3d5
lea ecx, [ebp - 0x8c]
push 3
call fcn.100164e9
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], ebx
jmp 0x10019057
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x8c]
mov dword [eax + ecx*4], 0xe776e9f8
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x10019044
mov dword [ebp - 0x18], 3
cmp dword [ebp - 0x18], ebx
jl 0x100190a1
push 3
lea ecx, [ebp - 0x68]
call fcn.100164e9
mov dword [ebp - 0x1c], ebx
jmp 0x10019088
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x68]
mov dword [eax + ecx*4], 0x6e2e31b5
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 3
jl 0x10019078
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x68]
inc dword [eax + 4]
call fcn.1001656b
dec dword [ebp - 0x18]
jns 0x10019069
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.1001656b
dec dword [ebp - 0x14]
jns 0x10019027
dec dword [ebp - 0x20]
jns 0x10018f8f
inc dword [ebp + 8]
cmp dword [ebp + 8], 3
mov esi, dword [ebp - 0x28]
jle 0x10018efc
lea ecx, [ebp - 0x98]
call fcn.1001656b
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.1001656b
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x1d
je 0x10018e5a
lea ecx, [ebp - 0x50]
call fcn.1001656b
jmp 0x10019370
push 4
lea ecx, [ebp - 0x74]
call fcn.100164e9
xor eax, eax
xor ebx, ebx
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa8], 0xffffffff
mov dword [ebp - 0xa4], 0xffffffff
mov dword [ebp - 0xa0], 0xffffffff
push 4
mov dword [ebp - 0x9c], 0xffffffff
pop edx
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], edx
jge 0x1001915b
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x74]
mov dword [eax + ecx*4], edx
inc dword [ebp + 8]
cmp dword [ebp + 8], edx
jl 0x10019147
xor eax, eax
inc eax
push 3
mov dword [ebp - 0x14], ebx
pop esi
jmp 0x10019189
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x20], ebx
jl 0x10019186
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], bl
je 0x1001917e
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
dec dword [ebp - 0x20]
jns 0x1001916e
xor eax, eax
inc eax
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jle 0x10019163
lea ecx, [ebp - 0x74]
call fcn.1001656b
push esi
lea ecx, [ebp - 0x80]
call fcn.100164e9
mov dword [ebp - 4], 4
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x20], 1
mov dword [ebp + 8], ebx
jmp 0x100191c9
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x80]
mov dword [eax + ecx*4], 0x7571177e
inc dword [ebp + 8]
cmp dword [ebp + 8], esi
jl 0x100191b9
mov dword [ebp - 0x14], 2
cmp dword [ebp - 0x14], ebx
jl 0x100192b2
push 1
lea ecx, [ebp - 0x5c]
call fcn.100164e9
mov byte [ebp - 4], 5
xor edx, edx
mov dword [ebp + 8], 0x8f6efba1
inc edx
mov dword [ebp + 8], 0xfffffffa
mov dword [ebp + 8], ebx
jmp 0x10019212
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x5c]
mov dword [eax + ecx*4], 0xe2c0d37a
inc dword [ebp + 8]
cmp dword [ebp + 8], edx
jl 0x10019202
mov dword [ebp + 8], ebx
jmp 0x1001922d
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0xe8], 5
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x1001921c
mov eax, dword [ebp - 0x5c]
mov dword [eax], ebx
jmp 0x1001923d
xor edx, edx
inc edx
mov dword [ebp + 8], 2
lea ecx, [ebp - 0xb4]
push edx
call fcn.100164e9
xor edx, edx
mov dword [ebp + 8], ebx
inc edx
jmp 0x1001926b
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xb4]
mov dword [eax + ecx*4], 0xfffffff8
inc dword [ebp + 8]
cmp dword [ebp + 8], edx
jl 0x10019258
inc dword [ebp - 0x20]
lea ecx, [ebp - 0xb4]
call fcn.1001656b
mov eax, dword [ebp - 0x5c]
inc dword [eax]
cmp dword [eax], 2
jle 0x1001923a
mov byte [ebp + 0xb], bl
cmp byte [ebp + 0xb], 0
je 0x1001929d
push 0x16c0
push ebx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.1001656b
dec dword [ebp - 0x14]
jns 0x100191de
lea ecx, [ebp - 0x80]
call fcn.1001656b
mov eax, dword [edi]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
test eax, eax
mov eax, dword [edi]
setne cl
xor edx, edx
mov dword [ebp - 0x28], ecx
inc edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], edx
mov dword [ecx], eax
mov eax, dword [edi]
add eax, dword [ecx]
mov dword [esi], eax
cmp dword [esi], ebx
jne 0x100192e3
mov dword [ebp + 8], ebx
mov eax, dword [edi]
xor ecx, ecx
cmp dword [ebp + 8], eax
setl cl
cmp ecx, 5
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, 0xf4ea
mov eax, dword [edi]
setge cl
imul eax, ecx
xor ecx, ecx
imul eax, eax, 0xfffffff8
cmp eax, 0xd77c
mov eax, dword [edi]
setge cl
imul eax, ecx
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x1001931d
mov eax, dword [ecx]
mov eax, dword [ecx]
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp dword [eax], 0xa5b7
mov eax, dword [ebp + 0x14]
setne cl
cmp ecx, 6
sbb ecx, ecx
neg ecx
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [eax]
imul eax, dword [ebp - 0x28]
cmp eax, 0xfffffff9
setle cl
xor eax, eax
cmp ecx, 0x3bd7
setne al
cmp eax, dword [edi]
jne 0x1001935c
cmp dword [esi], ebx
jne 0x1001935e
mov edx, ebx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
xor eax, eax
cmp edx, 0x6ac116e0
sete al
add dword [ecx], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret