Function at 0x532870
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 1
push str.SeDebugPrivilege
call fcn.005344e0
add esp, 8
cmp dword [0x6527a4], 0
je 0x532bcb
lea eax, [ebp - 0x18]
push eax
call fcn.00532c50
add esp, 4
mov edi, eax
cmp dword [ebp - 0x18], 0
je 0x532bd0
push ebx
push esi
xor eax, eax
mov esi, 0x1000
push esi
push eax
mov dword [ebp - 0xc], eax
lea ebx, [eax + 0x40]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x532959
lea ecx, [ebp - 0x2c]
push ecx
push esi
push eax
push ebx
call dword [0x6527a4]
mov edi, eax
cmp edi, 0xc0000004
jne 0x532911
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
cmp eax, esi
jbe 0x532909
mov esi, eax
jmp 0x53293e
add esi, 0x1000
jmp 0x53293e
test edi, edi
je 0x5329c8
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, 0xc0000002
jne 0x53295e
cmp ebx, 0x10
je 0x53295e
mov ebx, 0x10
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x5328d4
mov edi, 0xc0000017
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x532bbc
push 0x414
call fcn.00479f06
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
je 0x532ba7
mov eax, dword [ebp - 0xc]
mov ecx, eax
test eax, eax
mov dword [ebp - 0x28], 0
cmove ecx, ebx
mov eax, dword [ecx]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x532b97
mov ecx, dword [ebp - 0xc]
lea edx, [ebx + 0xa]
mov dword [ebp - 0x14], edx
lea eax, [ecx + 0x10]
mov dword [ebp - 0x2c], eax
test edi, edi
jne 0x532b94
test ecx, ecx
je 0x5329da
mov ecx, dword [eax - 4]
mov edx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x5329e6
cmp ebx, 0x10
jne 0x5329d2
mov ebx, dword [ebp - 4]
jmp 0x53296b
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x53295e
mov eax, dword [ebp - 0x14]
mov ecx, dword [edx - 6]
movzx edx, word [edx]
mov eax, dword [eax + 6]
mov ebx, dword [ebp + 8]
test dword [ebp + 0xc], eax
je 0x532b6f
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], edx
push eax
push 0x414
push esi
push 8
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
push eax
push 0x22e37c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x532b6f
cmp word [esi + 0x208], 0
je 0x532b6f
push 0x10
push str.DeviceHarddisk
push esi
call fcn.005d1f45
add esp, 0xc
test eax, eax
jne 0x532b6f
cmp dword [esi + 0x410], 0x14
mov eax, 0x5ef920
cmovne eax, esi
push eax
call fcn.0050e9a0
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
test esi, esi
je 0x532b67
mov eax, dword [ebp - 8]
add eax, 0x208
push eax
call fcn.0050e9a0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x532b57
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x532acc
mov eax, dword [ebx]
lea ecx, [esi*4]
push dword [ebp - 0x24]
push dword [eax + ecx]
call fcn.005d09f9
add esp, 8
test eax, eax
jne 0x532ac4
mov eax, dword [ebx]
push dword [ebp - 0x10]
push dword [eax + esi*4 + 4]
call fcn.005d09f9
add esp, 8
test eax, eax
je 0x532b3d
add esi, 2
cmp esi, dword [ebx + 8]
jb 0x532a94
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.00482220
test eax, eax
je 0x532b1e
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
xor esi, esi
call fcn.00482220
test eax, eax
je 0x532b02
xor eax, eax
push eax
call fcn.0058bb5f
add esp, 4
push esi
call fcn.0058bb5f
add esp, 4
jmp 0x532b6c
mov eax, dword [ebp - 0x1c]
mov edi, 0xc0000017
push eax
call fcn.0058bb5f
add esp, 4
push esi
call fcn.0058bb5f
add esp, 4
jmp 0x532b6c
mov eax, dword [ebp - 0x10]
mov edi, 0xc0000017
mov esi, dword [ebp - 0x20]
push eax
call fcn.0058bb5f
add esp, 4
push esi
call fcn.0058bb5f
add esp, 4
jmp 0x532b6c
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x24]
push eax
call fcn.0058bb5f
add esp, 4
push esi
call fcn.0058bb5f
add esp, 4
jmp 0x532b6c
push esi
mov edi, 0xc0000017
call fcn.0058bb5f
add esp, 4
jmp 0x532b6c
mov edi, 0xc0000017
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
inc ecx
mov edx, dword [ebp - 0x14]
add eax, 0x1c
add edx, 0x10
mov dword [ebp - 0x28], ecx
cmp ecx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], edx
jb 0x5329b2
mov ebx, dword [ebp - 4]
push 0x414
push esi
call fcn.0058bb51
add esp, 8
jmp 0x532bac
mov edi, 0xc0000017
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x18]
call fcn.00532e40
add esp, 4
pop esi
pop ebx
jmp 0x532bd0
mov edi, 0xc0000139
push 0
push str.SeDebugPrivilege
call fcn.005344e0
mov eax, dword [0x6527ac]
add esp, 8
test eax, eax
je 0x532bf0
push edi
call eax
pop edi
mov esp, ebp
pop ebp
ret
or edi, 0x10000000
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret