Function at 0x411690
Capabilities:
Compare security identifiers
Enumerate process modules

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e19ed
push eax
mov eax, 0x1884
mov dword fs:[0], esp
call fcn.0047af40
mov eax, dword [esp + 0x1894]
push ebx
push esi
push eax
xor ebx, ebx
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 8], esi
mov dword [esp + 0x1894], ebx
cmp esi, ebx
jne 0x4116fc
mov dword [esp + 0x1894], 0xffffffff
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1884]
mov dword fs:[0], ecx
add esp, 0x1890
ret
lea ecx, [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x34]
push edx
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x411749
mov dword [esp + 0x1894], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov dword [esp + 4], ebx
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1884]
mov dword fs:[0], ecx
add esp, 0x1890
ret
mov ecx, dword [esp + 0x2c]
push 0x3ff
lea eax, [esp + 0x90]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x41171a
lea eax, [esp + 0x8c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411770
sub eax, edx
sar eax, 1
push ebp
mov ebp, eax
lea eax, [esp + 0x90]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411790
sub eax, edx
sar eax, 1
cmp eax, 0xb
jae 0x4117bf
mov dword [esp + 0x1898], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], ebx
jmp 0x411ac8
lea edx, [esp + ebp*2 + 0x7c]
push 0x4e90b4
push edx
call fcn.0047befd
add esp, 8
test eax, eax
je 0x4117ee
mov dword [esp + 0x1898], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040b710
jmp 0x411ac8
lea eax, [esp + 0x14]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41182e
mov dword [esp + 0x1898], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.0040b710
pop ebp
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1884]
mov dword fs:[0], ecx
add esp, 0x1890
ret
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push 1
push edx
mov dword [esp + 0x28], ebx
call edi
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x411aa8
push eax
call fcn.0045d8be
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
mov byte [esp + 0x189c], 1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 1
push edx
call edi
test eax, eax
je 0x411a98
mov eax, dword [esp + 0x18a8]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x411a98
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov eax, dword [esi]
push edx
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x411a98
add ebp, 0xfffffff5
push ebp
lea ecx, [esp + 0x98]
push ecx
mov esi, 0x3ff
lea edx, [esp + 0x89c]
push esi
push edx
call fcn.0047c145
add esp, 0x10
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x189c], 2
push 0x20019
push 0x4e94ac
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x30]
call fcn.0040b4c0
test eax, eax
jne 0x411959
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1098]
push ecx
push str.InstallPath
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], esi
call fcn.0040b520
test eax, eax
jne 0x411959
lea edx, [esp + 0x894]
push edx
lea eax, [esp + 0x1098]
push eax
call fcn.0047befd
add esp, 8
test eax, eax
jne 0x411959
mov ecx, dword [esp + 0x18ac]
mov dword [ecx], 1
jmp 0x411a7c
xor edx, edx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], dx
mov byte [esp + 0x189c], 3
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x60]
call fcn.0040c5c0
mov byte [esp + 0x189c], 4
push 0x4e94ac
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0040c600
add esp, 0xc
mov byte [esp + 0x189c], 5
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x4c]
call fcn.0040c030
mov byte [esp + 0x189c], 4
lea ecx, [esp + 0x78]
call fcn.0040b970
mov byte [esp + 0x189c], 3
lea ecx, [esp + 0x5c]
call fcn.0040b970
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x189c], 6
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x4119f6
lea eax, [esp + 0x44]
push 0x20019
push eax
push reloc.WS2_32.dll_closesocket
lea ecx, [esp + 0x38]
call fcn.0040b4c0
test eax, eax
jne 0x411a5a
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1098]
push eax
push str.InstallPath
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], esi
call fcn.0040b520
test eax, eax
jne 0x411a5a
lea ecx, [esp + 0x894]
push ecx
lea edx, [esp + 0x1098]
push edx
call fcn.0047befd
add esp, 8
test eax, eax
jne 0x411a5a
mov eax, dword [esp + 0x18ac]
mov dword [eax], 1
mov byte [esp + 0x189c], 3
lea ecx, [esp + 0x2c]
call fcn.0040b730
mov byte [esp + 0x189c], 2
lea ecx, [esp + 0x40]
call fcn.0040b970
mov byte [esp + 0x189c], 1
lea ecx, [esp + 0x24]
call fcn.0040b730
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [esp + 0x189c], bl
lea ecx, [esp + 0x38]
call fcn.0042b4a0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x189c], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040b710
pop edi
mov ecx, dword [esp + 0x1890]
pop ebp
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1890
ret