Function at 0x41a539
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
push 8
call fcn.0043087b
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0xc
call fcn.0043087b
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x50ef38
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.0043087b
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.0043087b
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 0x41a58f
pop ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
mov eax, 0x3e
call fcn.00430899
cmp dword [ebp - 0x10], esp
je 0x41a60c
push 0x36
push 0x402b843
push 6
call fcn.0043088d
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0x430d20
call fcn.00430887
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
mov eax, 0x3c
call fcn.00430899
cmp dword [ebp - 0x1c], esp
je 0x41a66f
push 0x49
push 0x402b843
push 6
call fcn.0043088d
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41a686
mov eax, 0
jmp 0x41a898
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 4]
call fcn.00402499
mov eax, 0
cmp eax, ecx
jl 0x41a6b1
push 0x8b
push 0x402b843
push 1
call fcn.0043088d
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push str.SeDebugPrivilege
push 0
mov eax, 0x3f
call fcn.00430899
cmp dword [ebp - 0x14], esp
je 0x41a6f3
push 0x8b
push 0x402b843
push 6
call fcn.0043088d
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 1
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 4]
call fcn.00402499
mov eax, 0
cmp eax, ecx
jl 0x41a72d
push 0xf7
push 0x402b843
push 1
call fcn.0043088d
add esp, 0xc
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 0x10
mov eax, dword [ebp - 8]
push eax
push 0x10
call fcn.0043087b
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 0x41a788
pop ebx
add ebx, 4
push 0
push dword [ebp - 4]
mov eax, 0x40
call fcn.00430899
cmp dword [ebp - 0x10], esp
je 0x41a7ef
push 0x147
push 0x402b843
push 6
call fcn.0043088d
add esp, 0xc
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 0x41a80f
pop edi
add edi, 4
call fcn.00430881
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
mov eax, 0x36
call fcn.00430899
cmp dword [ebp - 0x10], esp
je 0x41a890
push 0x18d
push 0x402b843
push 6
call fcn.0043088d
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0x41a898
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x41a8be
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x41a8ba
imul eax, dword [ebx]
jmp 0x41a8af
mov ecx, eax
test ecx, ecx
je 0x41a8e6
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.00430881
add esp, 4
pop ebx
call fcn.00430881
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x41a8c4
call fcn.00430881
add esp, 4
pop ebx
call fcn.00430881
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret