Function at 0x40433c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp + 8], 0
jg 0x4043c8
mov dword [ebp - 0x30], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4043c5
push 0x4f
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp + 8], eax
mov dword [ebp - 0x30], esp
push dword [ebp + 8]
push 0
push 0x400
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4043fe
push 0x7e
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404787
mov dword [ebp - 0x30], esp
lea eax, [ebp - 8]
push eax
push 8
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x404440
push 0xeb
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
test eax, eax
je 0x40475b
mov eax, 0x4c7779
test eax, eax
je 0x404464
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004422bd
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x404475
push ebx
call fcn.004422cf
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004047a7
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push dword [ebp - 0x30]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4044e2
push 0x19e
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
test eax, eax
je 0x40472f
lea eax, [ebp - 0x14]
push eax
call fcn.004047ce
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x30]
push 0
push 0
push 2
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x404534
push 0x236
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x404565
push 0x26a
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004047ce
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x30]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 2
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4045ae
push 0x2b6
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
push 0
push dword [ebp - 0x18]
call fcn.004047e8
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x4c7438]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.004011c1
push eax
lea eax, [ebp - 0x20]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4046d4
fild dword [ebp - 0x20]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fmul qword [0x4c7440]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x4c7490]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.004011c1
push eax
push dword [ebp - 0x18]
call fcn.004047e8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], esp
push dword [ebp - 0x24]
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x404652
push 0x41b
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
test eax, eax
je 0x4046cb
fild dword [ebp - 0x20]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fmul qword [0x4c7440]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x4c7440]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.004011c1
push eax
push dword [ebp - 0x18]
call fcn.004047e8
mov dword [ebp - 0x28], eax
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push dword [ebp - 0x28]
push 2
mov ebx, 0xc4
call fcn.00443a60
add esp, 0x1c
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x10
mov eax, 0
setne al
mov dword [ebp - 0x2c], eax
jmp 0x4046d4
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x4045e4
add esp, 0xc
mov dword [ebp - 0x30], esp
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x404703
push 0x562
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0x30], esp
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40472f
push 0x57c
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40475b
push 0x598
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
mov dword [ebp - 0x30], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x404787
push 0x5b4
push 0x402b7c1
push 6
call fcn.004422c3
add esp, 0xc
mov eax, dword [ebp - 0x2c]
jmp 0x40478f
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4047a0
push ebx
call fcn.004422cf
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8