Function at 0x4058ff
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0x1c]
call fcn.004078b9
push 0x1e
mov dword [ebp - 0xb4], str.SeCreateTokenPrivilege
mov dword [ebp - 0xb0], str.SeAssignPrimaryTokenPrivilege
mov dword [ebp - 0xac], str.SeLockMemoryPrivilege
mov dword [ebp - 0xa8], str.SeIncreaseQuotaPrivilege
mov dword [ebp - 0xa4], str.SeUnsolicitedInputPrivilege
mov dword [ebp - 0xa0], str.SeMachineAccountPrivilege
mov dword [ebp - 0x9c], str.SeTcbPrivilege
mov dword [ebp - 0x98], str.SeSecurityPrivilege
mov dword [ebp - 0x94], str.SeTakeOwnershipPrivilege
mov dword [ebp - 0x90], str.SeLoadDriverPrivilege
mov dword [ebp - 0x8c], str.SeSystemProfilePrivilege
mov dword [ebp - 0x88], str.SeSystemtimePrivilege
mov dword [ebp - 0x84], str.SeProfileSingleProcessPrivilege
mov dword [ebp - 0x80], str.SeIncreaseBasePriorityPrivilege
mov dword [ebp - 0x7c], str.SeCreatePagefilePrivilege
mov dword [ebp - 0x78], str.SeCreatePermanentPrivilege
mov dword [ebp - 0x74], str.SeBackupPrivilege
mov dword [ebp - 0x70], str.SeRestorePrivilege
mov dword [ebp - 0x6c], str.SeShutdownPrivilege
mov dword [ebp - 0x68], str.SeDebugPrivilege
mov dword [ebp - 0x64], str.SeAuditPrivilege
mov dword [ebp - 0x60], str.SeSystemEnvironmentPrivilege
mov dword [ebp - 0x5c], str.SeChangeNotifyPrivilege
mov dword [ebp - 0x58], str.SeRemoteShutdownPrivilege
mov dword [ebp - 0x54], str.SeUndockPrivilege
mov dword [ebp - 0x50], str.SeSyncAgentPrivilege
mov dword [ebp - 0x4c], str.SeEnableDelegationPrivilege
mov dword [ebp - 0x48], str.SeManageVolumePrivilege
mov dword [ebp - 0x44], str.SeImpersonatePrivilege
mov dword [ebp - 0x40], 0x4aa188
lea esi, [ebp - 0x21c]
pop edi
mov ecx, esi
call fcn.00405c2b
add esi, 0xc
dec edi
jne 0x405a17
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x21c]
push 0x1e
push eax
call fcn.0044ecda
lea eax, [ebp - 0x21c]
push 0x1e
push eax
call fcn.0044ecac
mov al, byte [ebp - 5]
push 1
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x21c]
xor edi, edi
push 0x1e
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.0044ed1e
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ef4f
lea eax, [ebp - 0x30]
push eax
call fcn.0040ef61
add esp, 0x2c
lea ecx, [ebp - 0x38]
call fcn.00473bce
push 0x146
lea ecx, [ebp - 0x38]
call fcn.00450a4f
lea eax, [ebp - 0x28]
push eax
call fcn.0044ede9
cmp dword [ebp - 0x24], edi
pop ecx
mov esi, eax
jne 0x405aab
xor eax, eax
jmp 0x405ab7
mov eax, dword [ebp - 0x20]
push 0xc
sub eax, dword [ebp - 0x24]
pop ecx
cdq
idiv ecx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411a7d
pop ecx
pop ecx
push eax
push 0x4aa184
lea eax, [ebp - 4]
push esi
push eax
call fcn.00411a7d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x14]
push 0x4a9724
push eax
call fcn.0040673f
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004066f3
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040665f
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push eax
push dword [eax - 8]
call fcn.0040678b
lea ecx, [ebp - 0x18]
call fcn.00401085
lea ecx, [ebp - 0x10]
call fcn.00401085
lea ecx, [ebp - 0x14]
call fcn.00401085
lea ecx, [ebp - 4]
call fcn.00401085
lea ecx, [ebp - 0xc]
call fcn.00401085
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, ebx
push dword [eax]
call fcn.004025b6
mov esi, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x20]
je 0x405bf1
mov eax, dword [esi + 8]
lea edi, [ebp - 0x30]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x405b5f
lea edi, [ebp - 0x2c]
xor edx, edx
mov eax, dword [edi]
cmp dword [ebp - 0xc], edx
mov ecx, dword [esi]
setne dl
inc edx
inc edx
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00402401
test eax, eax
mov dword [ebp - 4], eax
jl 0x405be9
push edi
lea eax, [esi + 4]
push 0x4aa044
push eax
push 0x4aa178
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004066f3
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040665f
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004066f3
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040665f
mov ecx, dword [ebx + 0x1c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00406290
mov ecx, eax
call fcn.004065e8
lea ecx, [ebp - 0x14]
call fcn.00401085
lea ecx, [ebp - 0x10]
call fcn.00401085
lea ecx, [ebp - 0x18]
call fcn.00401085
lea ecx, [ebp - 0x3c]
call fcn.00401085
add esi, 0xc
jmp 0x405b46
lea ecx, [ebp - 0x38]
call fcn.00473bfc
lea ecx, [ebp - 0x30]
call fcn.00401085
lea ecx, [ebp - 0x2c]
call fcn.00401085
lea ecx, [ebp - 0x28]
call fcn.0040625d
push fcn.0043ea0b
push 0x1e
lea eax, [ebp - 0x21c]
push 0xc
push eax
call fcn.00406359
pop edi
pop esi
pop ebx
leave
ret