Function at 0x1004b1b4
Capabilities:
Compare security identifiers
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 2
pop edi
mov esi, ecx
mov dword [ebp - 8], 0xca4f833f
mov dword [ebp - 0x14], 0xd4a1cf04
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 5
push edi
call fcn.10017f97
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x1004b1f5
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x2c], 0xfffffff6
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jl 0x1004b1e7
mov dword [ebp - 8], ebx
jmp 0x1004b210
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x38]
mov dword [eax + ecx*4], 1
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jl 0x1004b200
mov dword [ebp - 8], ebx
jmp 0x1004b258
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0xc], ebx
jmp 0x1004b250
mov dword [ebp - 0x10], 0xfffffffb
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x10], ebx
jl 0x1004b246
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1004b241
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
dec dword [ebp - 0x10]
jns 0x1004b231
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x2c]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jle 0x1004b222
inc dword [ebp - 8]
cmp dword [ebp - 8], edi
jle 0x1004b21a
cmp dword [ebp - 8], ebx
jne 0x1004b2c7
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], ebx
je 0x1004b274
cmp dword [ebp - 0x28], ebx
je 0x1004b274
xor edx, edx
inc edx
jmp 0x1004b276
mov edx, ebx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
cmp edx, eax
setge cl
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov eax, dword [ebp - 0x24]
neg ecx
sbb ecx, ecx
xor edx, edx
inc ecx
cmp ecx, eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 8]
setg dl
sub ecx, edx
xor edx, edx
cmp ecx, eax
setle dl
sub edx, dword [ebp - 0x2c]
jne 0x1004b2b1
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
je 0x1004b2bc
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 8], ebx
je 0x1004b301
mov dword [ebp - 0x10], 0x8842b4cf
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0xfffffff9
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
jmp 0x1004b337
mov dword [ebp - 0xc], ebx
jmp 0x1004b314
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x50], 0x1401cea0
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x1004b306
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
inc ecx
mov dword [eax + 4], ecx
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1004b337
push 0x73d
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [ebp - 0x38]
call fcn.10018895
push 0x1c5f
push 0x685b
push 1
push 0x25f2
push 0x7a02
push esi
call fcn.10045fd0
mov dword [ebp - 0x18], 0xd546
add esp, 0x18
mov dword [ebp - 0x18], 0x184c506d
mov dword [ebp - 0x18], 0xd7b1c2a2
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x18], 0xfffffffe
mov dword [ebp - 0x18], 0xfffffff6
mov dword [ebp - 0x18], 0xa955a63a
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x18], 0x9ae65c34
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0x2e5769e8
mov dword [ebp - 0xc], ebx
jmp 0x1004b3be
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x20], 0x9949dfcf
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jl 0x1004b3b0
inc dword [ebp - 0x14]
push esi
call fcn.1002ed95
pop ecx
push edi
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.10017f97
mov dword [ebp - 0xc], 0xdf2f4a8b
mov dword [ebp - 0xc], ebx
jmp 0x1004b3f4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x44]
mov dword [eax + ecx*4], 0x75c9
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jl 0x1004b3e4
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], ebx
jl 0x1004b415
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x44]
cmp dword [eax + ecx*4], ebx
jne 0x1004b415
dec dword [ebp - 0xc]
jns 0x1004b405
lea ecx, [ebp - 0x44]
call fcn.10018895
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret