Function at 0x40bf82
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 8
call fcn.00411bd7
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 8
call fcn.00411bd7
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0xc
call fcn.00411bd7
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x49af82
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.00411bd7
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 8
call fcn.00411bd7
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x40bff7
pop ebx
jmp 0x40c056
mov dword [ebp - 0x10], esp
lea eax, [ebp - 4]
push eax
push 0xf01ff
push dword [ebp + 8]
mov eax, 0x2e
call fcn.00411c01
cmp dword [ebp - 0x10], esp
je 0x40c081
push 6
call fcn.00411bf5
add esp, 4
push 0x490af0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.00401051
add esp, 8
cmp eax, 0
jne 0x40c0ba
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c0b4
push ebx
call fcn.00411bd1
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push 0
mov eax, 0x2f
call fcn.00411c01
cmp dword [ebp - 0x10], esp
je 0x40c0e6
push 6
call fcn.00411bf5
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx + 4]
call fcn.0040133e
mov eax, 0
cmp eax, ecx
jl 0x40c116
push 1
call fcn.00411bf5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 8]
push eax
push 8
call fcn.00411bd7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx]
push ebx
call fcn.00411bd1
add esp, 4
pop eax
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx + 4]
call fcn.0040133e
mov eax, 0
cmp eax, ecx
jl 0x40c16a
push 1
call fcn.00411bf5
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 2
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x10
call fcn.00411bd7
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 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
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 0x40c1c5
pop ebx
add ebx, 4
push 0
push dword [ebp - 4]
mov eax, 0x30
call fcn.00411c01
cmp dword [ebp - 0x10], esp
je 0x40c222
push 6
call fcn.00411bf5
add esp, 4
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
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
pop ebx
add ebx, 8
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, 0xc
dec ecx
jne 0x40c242
pop edi
add edi, 4
call fcn.00411bd1
add esp, 4
pop eax
jmp 0x40c2a9
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.00411bd1
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40c2db
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40c2d7
imul eax, dword [ebx]
jmp 0x40c2cc
mov ecx, eax
test ecx, ecx
je 0x40c303
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00411bd1
add esp, 4
pop ebx
call fcn.00411bd1
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40c2e1
call fcn.00411bd1
add esp, 4
pop ebx
call fcn.00411bd1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc