Function at 0x40d1f6
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
pop ecx
and byte [ebp - 0x228], bl
xor eax, eax
lea edi, reloc.KERNEL32.dll_GetProcessHeap
and byte [ebp - 0x128], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, reloc.KERNEL32.dll_GetProcessHeap
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push str.SeDebugPrivilege
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
stosb byte es:[edi], al
call fcn.00413886
pop ecx
pop ecx
push 0xf003f
push ebx
push ebx
call dword [0x47d030]
mov edi, dword [0x47d17c]
mov esi, 0x10000
push esi
push 0x40
mov dword [ebp - 0x10], eax
call edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], eax
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push esi
push eax
push 3
push 0x30
push dword [ebp - 0x10]
call dword [section..rdata]
push 0x104
push 0x40
call edi
mov byte [eax], 0x6f
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ebx
jbe 0x40d561
mov ebx, dword [ebp - 8]
mov esi, dword [0x47d1e0]
and dword [ebp - 0x24], 0
push 0xf01ff
push dword [ebx]
push dword [ebp - 0x10]
call dword [0x47d02c]
test eax, eax
mov dword [ebp - 0x20], eax
je 0x40d54d
mov edi, 0x1000
push edi
push 0x40
call dword [0x47d17c]
lea ecx, [ebp - 0x24]
mov dword [ebp - 8], eax
push ecx
push edi
push eax
push dword [ebp - 0x20]
call dword [0x47d074]
cmp dword [ebx + 0xc], 1
push 0x100
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push 0
push eax
je 0x40d31e
call fcn.0045c91a
mov edi, dword [0x47d1d4]
add esp, 0xc
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push 0x48aeb0
push eax
call edi
jmp 0x40d33e
call fcn.0045c91a
add esp, 0xc
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push 0x48aea8
push eax
call dword [0x47d1d4]
mov edi, dword [0x47d1d4]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 2
jne 0x40d36b
push 0x100
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push 0
push eax
call fcn.0045c91a
add esp, 0xc
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push 0x48aea0
push eax
call edi
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 3
jne 0x40d398
push 0x100
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push 0
push eax
call fcn.0045c91a
add esp, 0xc
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push 0x48ae98
push eax
call edi
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 4
jne 0x40d3c5
push 0x100
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push 0
push eax
call fcn.0045c91a
add esp, 0xc
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push 0x48ae90
push eax
call edi
and byte [ebp - 0x328], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, reloc.KERNEL32.dll_GetProcessHeap
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp - 8]
push dword [edi + 0xc]
call esi
test eax, eax
jle 0x40d400
push dword [edi + 0xc]
call esi
push eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push dword [edi + 0xc]
push eax
call fcn.0045c8f0
add esp, 0xc
push dword [ebx + 4]
call esi
mov edi, eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call esi
add edi, eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call esi
add edi, eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call esi
push dword [ebx]
add edi, eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [edi + eax + 6]
mov edi, dword [ebp - 0xc]
add ecx, eax
push edi
mov dword [ebp - 8], ecx
call dword [0x47d22c]
cmp eax, dword [ebp - 8]
jae 0x40d458
push 0x42
push dword [ebp - 8]
push edi
call dword [0x47d184]
mov dword [ebp - 0xc], eax
mov edi, eax
push dword [ebx + 4]
call esi
test eax, eax
jle 0x40d479
push dword [ebx + 4]
call esi
inc eax
push eax
mov eax, dword [ebp - 4]
push dword [ebx + 4]
add eax, edi
push eax
call fcn.0045c8f0
add esp, 0xc
push dword [ebx + 4]
call esi
mov ecx, dword [ebp - 4]
push dword [ebx]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
call esi
test eax, eax
jle 0x40d4a6
push dword [ebx]
call esi
inc eax
push eax
mov eax, dword [ebp - 4]
push dword [ebx]
add eax, edi
push eax
call fcn.0045c8f0
add esp, 0xc
push dword [ebx]
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call esi
inc eax
push eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call fcn.0045c8f0
add esp, 0xc
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call esi
inc eax
push eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call fcn.0045c8f0
add esp, 0xc
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call esi
inc eax
push eax
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call fcn.0045c8f0
add esp, 0xc
lea eax, reloc.KERNEL32.dll_GetProcessHeap
push eax
call esi
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
inc dword [ebp - 0x14]
add ebx, 0x24
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jb 0x40d2ad
xor ebx, ebx
push dword [ebp - 0x10]
call dword [0x47d028]
push 0x42
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [0x47d184]
push ebx
push str.SeDebugPrivilege
mov esi, eax
call fcn.00413886
pop ecx
mov eax, esi
pop ecx
pop edi
pop esi
pop ebx
leave
ret