Function at 0x40d030
Capabilities:
Acquire debug privileges

Disassembly:
push 0xffffffffffffffff
push 0x48e290
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b82d8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
xor ebx, ebx
mov dword [esi], ebx
mov al, byte [esp + 0x88]
mov edx, dword [esp + 0x84]
lea edi, [esi + 8]
mov byte [esi + 4], al
push 0xffffffffffffffff
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
mov word [edi + 4], cx
push edx
mov ecx, edi
mov dword [esp + 0x84], ebx
call fcn.004050d0
lea ebp, [esi + 0x24]
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], ax
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x8c]
mov dword [esi + 0x54], ecx
lea ecx, [esi + 0x58]
push eax
mov byte [esp + 0x80], 2
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
call fcn.00410330
push 1
push 0xffffffffffffffff
push 0x4959cc
mov ecx, edi
mov byte [esp + 0x84], 3
call fcn.0040ebb0
push 0xffffffffffffffff
cmp eax, 0xffffffff
je 0x40d13e
inc eax
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00410af0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x84], 4
call fcn.004050d0
cmp dword [esp + 0x44], 8
mov byte [esp + 0x78], 3
jb 0x40d147
mov edx, dword [esp + 0x30]
push edx
call fcn.00419bc5
add esp, 4
jmp 0x40d147
push ebx
push edi
mov ecx, ebp
call fcn.004050d0
lea eax, [esp + 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40d1a0
lea ecx, [esp + 0x20]
push ecx
push 0x4959d0
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 0x14]
push ebx
push ebx
push 0x10
lea edx, [esp + 0x28]
push edx
push ebx
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push str.SECURITY_LIB_PROTINJ_MUTEX_NAME
push ebx
push ebx
call edi
mov dword [esi + 0x40], eax
cmp eax, ebx
jne 0x40d1f7
push ebx
push 0x495986
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.00409730
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 5
call fcn.00410190
push 0x4aae1c
lea eax, [esp + 0x4c]
push eax
call fcn.0045d42c
push str.SECURITY_LIB_PING_MUTEX_NAME
push ebx
push ebx
call edi
mov dword [esi + 0x44], eax
cmp eax, ebx
jne 0x40d248
push ebx
push 0x495987
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.00409730
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7c], 6
call fcn.00410190
push 0x4aae1c
lea edx, [esp + 0x4c]
push edx
call fcn.0045d42c
push 0x14
call fcn.00419b96
add esp, 4
mov dword [esp + 0x88], eax
mov byte [esp + 0x78], 7
cmp eax, ebx
je 0x40d26f
push 1
mov ecx, eax
call fcn.004198d0
mov ebp, eax
jmp 0x40d271
xor ebp, ebp
mov edi, dword [esi]
mov byte [esp + 0x78], 3
cmp ebp, edi
je 0x40d290
cmp edi, ebx
je 0x40d290
mov ecx, edi
call fcn.00418900
push edi
call fcn.00419bc5
add esp, 4
mov eax, dword [esi + 0x54]
push eax
mov ecx, ebp
mov dword [esi], ebp
call fcn.00418710
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0xc