Function at 0x7dd84ab2
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [ebp + 0x10], edi
jmp 0x7dd84b44
push 0x58
push 0x7dd84d08
call fcn.7dd715c0
xor edi, edi
mov dword [ebp - 0x1c], edi
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x30]
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call sub.KERNELBASE.dll_BaseGetProcessDllPath
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x7ddaf036
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
call esi
mov dword [ebp + 0xc], eax
cmp eax, edi
jl 0x7dd84b18
push dword [ebp - 0x20]
lea eax, [ebp - 0x60]
push eax
call esi
mov dword [ebp + 0xc], eax
cmp eax, edi
jl 0x7dd84b18
push dword [ebp + 0x14]
lea eax, [ebp - 0x58]
push eax
call esi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], edi
jl 0x7dd84cde
cmp dword [ebp + 0x10], edi
je 0x7dd84a35
push dword [ebp + 0x10]
lea eax, [ebp - 0x50]
push eax
call esi
mov dword [ebp + 0xc], eax
cmp eax, edi
jl 0x7dd84cde
lea eax, [ebp - 0x50]
mov dword [ebp + 0x10], eax
mov edi, dword [ebp + 0x1c]
mov eax, dword [edi + 8]
test eax, eax
je 0x7ddaf042
push eax
lea eax, [ebp - 0x40]
push eax
call esi
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x7dd84cde
mov eax, dword [edi + 4]
test eax, eax
jne 0x7ddaf052
push 0x7dd759e8
lea eax, [ebp - 0x38]
push eax
call esi
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x2c], eax
mov ax, word [edi + 0x32]
mov word [ebp - 0x30], ax
mov word [ebp - 0x2e], ax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x7dd8b47e
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call esi
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x7dd84cde
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlCreateProcessParametersEx]
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x7dd84cde
and dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x50], eax
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x54], eax
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x5c], eax
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x60], eax
mov eax, dword [edi + 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x64], eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x68], eax
movzx eax, word [edi + 0x30]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x6c], eax
mov eax, 0x700
test dword [edi + 0x2c], eax
je 0x7dd84c5f
mov ecx, dword [edi + 0x38]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x18], ecx
mov ecx, dword [edi + 0x3c]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [edi + 0x40]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp + 0x20]
test dl, 8
jne 0x7dd95db1
test dl, 0x10
jne 0x7dd89beb
test edx, 0x8000000
jne 0x7dd8b19d
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + 0x10]
mov esi, dword [ebp - 0x1c]
mov dword [esi + 0x10], ecx
test dword [edi + 0x2c], eax
je 0x7dd852d7
test edx, 0x200
jne 0x7ddaf069
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + 8]
and ecx, 0x100
or dword [eax + 8], ecx
test edx, 0x10000000
jne 0x7ddaf07e
test edx, 0x20000000
jne 0x7ddaf08a
test edx, 0x40000000
jne 0x7ddaf096
mov dword [ebp - 4], 0xfffffffe
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x7dd84cf0
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call sub.KERNELBASE.dll_BaseReleaseProcessDllPath
cmp dword [ebp + 0xc], esi
jl 0x7ddaf0be
mov eax, dword [ebp - 0x1c]
call fcn.7dd71605
ret 0x20
xor esi, esi
cmp dword [ebp + 0x24], esi
je 0x7dd9c1c0
mov eax, dword [ebx + 0x10]
test dword [eax + 0x68], 0x200
jne 0x7dd9c1c0
mov ecx, 0x10000003
mov eax, dword [eax + 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x18], eax
cmp dword [ebp + 0x24], esi
je 0x7dd9c1db
mov eax, dword [ebx + 0x10]
test dword [eax + 0x68], 0x400
jne 0x7dd9c1db
mov eax, dword [eax + 0x1c]
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x1c], eax
cmp dword [ebp + 0x24], esi
je 0x7dd9c1f1
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x20], eax
jmp 0x7dd84c95
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0xfffffffe
jmp 0x7dd84c95
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0xfffffffd
jmp 0x7dd84c95
push eax
jmp 0x7dd84b9a
mov eax, dword [ebp - 0x1c]
or dword [eax + 0x10], 0xffffffff
jmp 0x7dd84c95
mov eax, dword [ebx + 0x10]
mov edi, dword [eax + 0x18]
mov ecx, 0x10000003
and edi, ecx
cmp edi, 3
jne 0x7dd85300
jmp 0x7dd852f7
mov eax, dword [ebx + 0x10]
mov edi, dword [eax + 0x1c]
and edi, ecx
cmp edi, 3
jne 0x7dd85322
jmp 0x7dd85319
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x20]
and eax, ecx
cmp eax, 3
jne 0x7dd84c95
jmp 0x7dd8532b
mov dword [ebp + 0xc], 0xc0000017
jmp 0x7dd84cde
push 0x7dd759e8
lea eax, [ebp - 0x40]
push eax
call esi
jmp 0x7dd84b64
push eax
lea eax, [ebp - 0x38]
push eax
call esi
mov dword [ebp + 0xc], eax
test eax, eax
jge 0x7dd84b7a
jmp 0x7dd84cde
test dl, 0x10
jne 0x7dd84ca1
mov eax, dword [ebp - 0x1c]
or dword [eax + 0x14], 1
jmp 0x7dd84ca1
mov eax, dword [ebp - 0x1c]
or dword [eax + 8], 2
jmp 0x7dd84cbf
mov eax, dword [ebp - 0x1c]
or dword [eax + 8], 4
jmp 0x7dd84ccb
mov eax, dword [ebp - 0x1c]
or dword [eax + 8], 8
jmp 0x7dd84cd7
cmp dword [ebp - 0x1c], esi
je 0x7ddaf0cc
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_RtlDestroyProcessParameters]
push dword [ebp + 0xc]
call sym.KERNEL32.dll_BaseSetLastNTError
xor eax, eax
jmp 0x7dd84cfc