Function at 0x501110
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x6c
call dword [0x799af0]
lea edx, [ebp - 0x4c]
mov dword [esp + 4], 0x28
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [0x799a3c]
sub esp, 0xc
test eax, eax
jne 0x501150
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], 1
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], eax
call fcn.0053b100
test eax, eax
jne 0x501184
call fcn.00401d00
mov ecx, eax
call fcn.00401bf0
cmp eax, 4
jle 0x501204
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
mov dword [esp + 8], eax
call dword [0x799b78]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x501700
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], eax
call fcn.0053b100
mov dword [esp], esi
mov dword [esp + 4], 0x64
call dword [0x799bb0]
mov edi, dword [0x799ac0]
sub esp, 8
test eax, eax
mov eax, dword [ebp - 0x4c]
setne bl
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], esi
call edi
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x30
mov esi, dword [0x799024]
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], esi
call fcn.00642bb0
lea edi, [ebp - 0x20]
mov ebx, eax
mov dword [esp + 4], 2
mov ecx, eax
mov dword [esp], edi
call dword [0x7990a8]
sub esp, 8
mov eax, 1
lea edi, [ebp - 0x48]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 1
mov esi, dword [0x799260]
mov dword [ebx + 0x10], 0
mov word [ebx + 0x14], ax
mov dword [ebx + 0x18], 2
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0x40000000
mov dword [ebp - 0x1c], ebx
mov dword [esp + 8], 5
mov dword [esp + 4], 0x6b4f8a
mov dword [esp], edi
call esi
mov ecx, ebx
mov dword [esp], edi
mov ebx, dword [0x7990bc]
call ebx
mov eax, dword [ebp - 0x48]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x5012c7
cmp edx, 0xffffffff
je 0x5012e0
lock sub dword [eax], 1
mov eax, dword [ebp - 0x48]
jne 0x5012e0
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x799020]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x501740
lea eax, [ebp - 0x44]
mov dword [esp + 8], 0x1a
mov dword [esp + 4], str.Can_not_set_SE_DEBUG_NAME.
mov dword [esp], eax
call esi
lea eax, [ebp - 0x44]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x44]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x501330
cmp edx, 0xffffffff
je 0x501349
lock sub dword [eax], 1
mov eax, dword [ebp - 0x44]
jne 0x501349
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x799020]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x501720
lea eax, [ebp - 0x40]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6b4fab
mov dword [esp], eax
call esi
lea eax, [ebp - 0x40]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x40]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x501394
cmp edx, 0xffffffff
je 0x5013ad
lock sub dword [eax], 1
mov eax, dword [ebp - 0x40]
jne 0x5013ad
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x799020]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x501870
lea eax, [ebp - 0x3c]
mov dword [esp + 8], 0x38
mov dword [esp + 4], str.static_bool_ProcessUtils::killProcessByPid_unsigned_int_
mov dword [esp], eax
call esi
lea eax, [ebp - 0x3c]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x3c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x501400
cmp edx, 0xffffffff
je 0x501419
lock sub dword [eax], 1
mov eax, dword [ebp - 0x3c]
jne 0x501419
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x799020]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x501850
lea eax, [ebp - 0x38]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6b4fad
mov dword [esp], eax
call esi
lea eax, [ebp - 0x38]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x38]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x501464
cmp edx, 0xffffffff
je 0x50147d
lock sub dword [eax], 1
mov eax, dword [ebp - 0x38]
jne 0x50147d
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x799020]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x501830
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x11
mov dword [esp + 4], 0x6b4fd9
mov dword [esp], eax
call esi
lea eax, [ebp - 0x34]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x34]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x5014d0
cmp edx, 0xffffffff
je 0x5014e9
lock sub dword [eax], 1
mov eax, dword [ebp - 0x34]
jne 0x5014e9
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x799020]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov edi, ecx
jne 0x501810
lea eax, [ebp - 0x30]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6b4fad
mov dword [esp], eax
call esi
lea eax, [ebp - 0x30]
mov ecx, edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x30]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x501534
cmp edx, 0xffffffff
je 0x50154d
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
jne 0x50154d
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x799020]
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x14], 0
mov ecx, eax
jne 0x5017f0
mov dword [esp], 0x265
call dword [0x7990c4]
mov ecx, dword [ebp - 0x1c]
sub esp, 4
cmp byte [ecx + 0x14], 0
mov dword [ebp - 0x5c], ecx
jne 0x5017d0
lea edi, [ebp - 0x2c]
mov dword [esp + 8], 9
mov dword [esp + 4], 0x6b4feb
mov dword [esp], edi
call esi
mov dword [esp], edi
mov ecx, dword [ebp - 0x5c]
call ebx
mov eax, dword [ebp - 0x2c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x5015c0
cmp edx, 0xffffffff
je 0x5015d9
lock sub dword [eax], 1
mov eax, dword [ebp - 0x2c]
jne 0x5015d9
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x799020]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
mov dword [ebp - 0x5c], ecx
jne 0x5017b0
call dword [0x7992ac]
mov ecx, dword [ebp - 0x5c]
mov dword [esp], eax
call dword [0x7990b8]
mov ecx, dword [ebp - 0x1c]
sub esp, 4
cmp byte [ecx + 0x14], 0
jne 0x501780
call dword [0x7992a8]
mov dword [esp], eax
mov ecx, edi
call dword [0x799430]
mov eax, dword [ebp - 0x2c]
sub esp, 4
lea ecx, [ebp - 0x1c]
mov edx, dword [eax + 4]
mov dword [esp + 4], edx
add eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [0x7991ac]
mov ecx, dword [ebp - 0x1c]
sub esp, 8
cmp byte [ecx + 0x14], 0
mov dword [ebp - 0x5c], ecx
jne 0x501760
lea eax, [ebp - 0x28]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6b4fab
mov dword [esp], eax
call esi
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x28]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x501690
cmp edx, 0xffffffff
je 0x5016a9
lock sub dword [eax], 1
mov eax, dword [ebp - 0x28]
jne 0x5016a9
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x799020]
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx + 0x14], 0
jne 0x501795
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
test edx, edx
je 0x5016d0
cmp edx, 0xffffffff
je 0x5016e9
lock sub dword [eax], 1
mov eax, dword [ebp - 0x2c]
jne 0x5016e9
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x799020]
lea ecx, [ebp - 0x24]
call fcn.004021c0
jmp 0x501184
mov eax, dword [ebp - 0x4c]
xor ebx, ebx
mov dword [esp], eax
call dword [0x799ac0]
sub esp, 4
jmp 0x501140
mov dword [esp], 0x20
call dword [0x7990c0]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x501358
mov dword [esp], 0x20
call dword [0x7990c0]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x5012ef
mov dword [esp], 0x20
call dword [0x7990c0]
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [ebp - 0x5c], eax
jmp 0x50164b
mov dword [esp], 0x20
call dword [0x7990c0]
sub esp, 4
jmp 0x50160b
mov dword [esp], 0x20
call dword [0x7990c0]
sub esp, 4
jmp 0x5016b6
mov dword [esp], 0x20
call dword [0x7990c0]
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [ebp - 0x5c], eax
jmp 0x5015e9
mov dword [esp], 0x20
call dword [0x7990c0]
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [ebp - 0x5c], eax
jmp 0x50157c
mov dword [esp], 0x20
call dword [0x7990c0]
sub esp, 4
mov ecx, dword [ebp - 0x1c]
jmp 0x50155c
mov dword [esp], 0x20
call dword [0x7990c0]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x5014f8
mov dword [esp], 0x20
call dword [0x7990c0]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x50148c
mov dword [esp], 0x20
call dword [0x7990c0]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x501428
mov dword [esp], 0x20
call dword [0x7990c0]
sub esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x5013bc