Function at 0x10128c10
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 0x28], eax
push 2
push str.SeDebugPrivilege
call fcn.10128950
add esp, 8
mov dword [ebp - 0xc], eax
push str.PSAPI.DLL
call fcn.1012db80
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10128c52
xor eax, eax
jmp 0x10128e21
push str.EnumProcessModules
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push str.GetModuleFileNameExW
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
je 0x10128c82
cmp dword [ebp - 0x10], 0
jne 0x10128c93
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10128e21
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10128dfb
mov dword [ebp - 0x1c], 0x400
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x10128cd9
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10108bce
add esp, 4
mov edx, dword [ebp - 0x1c]
shl edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10109636
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10128d09
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10128e21
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 0x14]
test eax, eax
jne 0x10128d47
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10108bce
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10128e21
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x1c]
je 0x10128cbf
mov edx, dword [ebp - 4]
shr edx, 2
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], 0
jmp 0x10128d6e
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 4]
jae 0x10128de5
push 0x104
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax*4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 0x10]
test eax, eax
jne 0x10128da2
xor ecx, ecx
mov word [ebp - 0x230], cx
jmp 0x10128de3
movzx edx, word [ebp - 0x230]
test edx, edx
je 0x10128de3
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.10128ae0
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + eax*4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp + 0xc]
test eax, eax
jne 0x10128de3
jmp 0x10128de5
jmp 0x10128d65
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10108bce
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x10128e12
mov eax, dword [ebp - 0xc]
push eax
push str.SeDebugPrivilege
call fcn.10128950
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret