Function at 0x4017d6
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x48
call fcn.004027ca
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x12
rep stosd dword es:[edi], eax
push 0x10
call fcn.004027ca
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0xc
call fcn.004027ca
add esp, 4
mov dword [ebp - 0x20], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push 8
call fcn.004027ca
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0xc
call fcn.004027ca
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x516b62
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push ebx
mov ebx, edi
mov ecx, 1
push ecx
push ebx
push 8
call fcn.004027ca
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push ebx
push 0xc
call fcn.004027ca
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
pop ebx
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x4018b8
pop ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], esp
mov eax, 0
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401943
push 0x19
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
push dword [ebp - 4]
mov eax, 1
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401975
push 0x40
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0x402890
call fcn.004027d0
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], esp
push 0x44
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.004027ca
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, 2
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401aa1
push 0xa1
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov ebx, dword [ebp - 0x34]
push ebx
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0040177f
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.004027c4
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 0x44
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x30], ebx
mov eax, str.WinSta0Default
push eax
mov ebx, dword [ebp - 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401b91
push ebx
call fcn.004027c4
add esp, 4
pop eax
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
mov dword [ebp - 0x30], esp
push 0x10
push dword [ebp - 0x14]
mov eax, 3
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401bc8
push 0x192
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x30], esp
mov eax, 4
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401bf1
push 0x1eb
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x34], eax
push 0x80000301
push 0
push 0x200e0
push 0x80000301
push 0
push 0x20008
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 0x20
push 7
mov ebx, 0x402890
call fcn.004027d0
add esp, 0x58
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x34]
mov eax, 5
call fcn.004027be
cmp dword [ebp - 0x3c], esp
je 0x401c90
push 0x1fe
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x401cce
mov dword [ebp - 0x30], esp
mov eax, 6
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401cc6
push 0x25a
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x1c], eax
jmp 0x402311
mov dword [ebp - 0x30], esp
push dword [ebp - 0x20]
push str.SeDebugPrivilege
push 0
mov eax, 7
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401d04
push 0x2a7
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x401d42
mov dword [ebp - 0x30], esp
mov eax, 6
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401d3a
push 0x2fe
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x1c], eax
jmp 0x402311
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x24]
mov ebx, dword [ebx + 4]
call fcn.004017b6
mov eax, 0
cmp eax, ecx
jl 0x401d7c
push 0x353
push 0x40130b4
push 1
call fcn.004027b8
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x20]
push eax
push 0xc
call fcn.004027ca
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x30]
mov ebx, dword [ebx]
push ebx
call fcn.004027c4
add esp, 4
pop eax
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x24]
mov ebx, dword [ebx + 4]
call fcn.004017b6
mov eax, 0
cmp eax, ecx
jl 0x401dda
push 0x38c
push 0x40130b4
push 1
call fcn.004027b8
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 2
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x28]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x18]
mov eax, 8
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401e34
push 0x3e7
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x401e72
mov dword [ebp - 0x30], esp
mov eax, 6
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401e6a
push 0x43e
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x1c], eax
jmp 0x402311
push 0x80000301
push 0
lea eax, [ebp - 4]
push eax
push 1
mov eax, 1
mov ebx, 0x45dbb0
call fcn.004027d6
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 4
push dword [ebp - 0x30]
push 0xc
push dword [ebp - 0x28]
mov eax, 9
call fcn.004027be
cmp dword [ebp - 0x34], esp
je 0x401ed0
push 0x4a9
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x401f09
mov dword [ebp - 0x30], esp
mov eax, 6
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401f06
push 0x4eb
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], esp
push 0
push 0
push 0x10
mov eax, dword [ebp - 0x24]
push eax
push 0x14
call fcn.004027ca
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ecx, 1
mov ebx, dword [ebx]
add ebx, 8
push ebx
push ecx
mov ebx, dword [ebx]
push ebx
mov ebx, dword [ebx]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ecx
pop ebx
add ebx, 4
dec ecx
jne 0x401f4e
pop ebx
add ebx, 4
push 0
push dword [ebp - 0x28]
mov eax, 0xa
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x401fbf
push 0x525
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x34]
push ebx
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push edi
mov edi, dword [edi]
mov ecx, 1
add edi, 8
push ebx
push edi
push ecx
mov edi, dword [edi]
push edi
mov edi, dword [edi]
push ebx
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ebx
add ebx, 0xc
pop edi
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
pop ecx
pop edi
pop ebx
add edi, 4
add ebx, 0x10
dec ecx
jne 0x401fdf
pop edi
add edi, 4
call fcn.004027c4
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x402079
mov dword [ebp - 0x30], esp
mov eax, 6
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x402071
push 0x582
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x1c], eax
jmp 0x402311
mov dword [ebp - 0x30], esp
push 1
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xb
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x4020ae
push 0x5bd
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
test eax, eax
je 0x4020e6
push 0x80000301
push 0
push 0x400
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0x402890
call fcn.004027d0
add esp, 0x1c
mov dword [ebp - 0xc], eax
jmp 0x4020ed
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.004027ca
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
push 0
push 0
push 0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x28]
mov eax, 0xc
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x402211
push 0x665
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x34]
push ebx
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0040177f
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.004027c4
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x402311
mov dword [ebp - 0x30], esp
mov eax, 6
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x402309
push 0x6e5
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov dword [ebp - 0x1c], eax
jmp 0x402311
cmp dword [ebp - 8], 0
je 0x402347
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
mov eax, 0xd
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x402347
push 0x78a
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
cmp dword [ebp - 0x28], 0
je 0x40237d
mov dword [ebp - 0x30], esp
push dword [ebp - 0x28]
mov eax, 0xd
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x40237d
push 0x7dc
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x4023b3
mov dword [ebp - 0x30], esp
push dword [ebp - 0x18]
mov eax, 0xd
call fcn.004027be
cmp dword [ebp - 0x30], esp
je 0x4023b3
push 0x82e
push 0x40130b4
push 6
call fcn.004027b8
add esp, 0xc
mov eax, dword [ebp - 0x1c]
jmp 0x4023bb
push eax
mov ebx, dword [ebp - 0x10]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4023d3
push ebx
call fcn.004027c4
add esp, 4
pop ebx
call fcn.004027c4
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004027c4
add esp, 4
mov ebx, dword [ebp - 0x20]
push ebx
call fcn.004027c4
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402419
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402415
imul eax, dword [ebx]
jmp 0x40240a
mov ecx, eax
test ecx, ecx
je 0x402441
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.004027c4
add esp, 4
pop ebx
call fcn.004027c4
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40241f
call fcn.004027c4
add esp, 4
pop ebx
call fcn.004027c4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8