Function at 0x10087880
Capabilities:
Patch process command line
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x37c
push ebx
push esi
push edi
push eax
xor edi, edi
push edi
push 0x410
call dword [sym.imp.psklutil.dll_Ordinal_560]
mov esi, eax
cmp esi, edi
je 0x10087a8c
push esi
call fcn.100876e0
add esp, 4
mov dword [esp + 0x10], edi
push str.ntdll
test eax, eax
je 0x100879c6
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, edi
je 0x1008791e
push str.NtWow64QueryInformationProcess64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x1008791e
push edi
push 0x30
lea ecx, [esp + 0x18]
push ecx
push edi
push esi
call eax
cmp eax, edi
jl 0x10087a85
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, eax
or edx, ecx
je 0x10087a85
push edi
push 0x2c4
lea edx, [esp + 0xc8]
push edx
push ecx
push eax
push esi
call fcn.10087830
add esp, 0x18
test eax, eax
je 0x10087a85
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xe0]
push edi
push 0x80
lea eax, [esp + 0x48]
push eax
push ecx
push edx
push esi
call fcn.10087830
add esp, 0x18
test eax, eax
je 0x10087a85
movzx ebx, word [esp + 0x78]
lea eax, [ebx + 2]
push 0
push eax
call dword [sym.imp.pskalloc.dll_Pmalloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x10087a85
xor edx, edx
push edx
mov ecx, ebx
shr ecx, 1
push ebx
mov word [edi + ecx*2], dx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
push edi
push eax
push ecx
push esi
call fcn.10087830
add esp, 0x18
jmp 0x10087a75
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, edi
je 0x10087a06
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x10087a06
push edi
push 0x18
lea edx, [esp + 0x18]
push edx
push edi
push esi
call eax
cmp eax, edi
jl 0x10087a85
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x10087a85
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
push 0x1d8
lea ecx, [esp + 0xc8]
push ecx
push eax
push esi
call ebx
test eax, eax
je 0x10087a85
mov eax, dword [esp + 0xd0]
push 0
push 0x48
lea edx, [esp + 0x48]
push edx
push eax
push esi
call ebx
test eax, eax
je 0x10087a85
movzx ebx, word [esp + 0x64]
lea ecx, [ebx + 2]
push 0
push ecx
call dword [sym.imp.pskalloc.dll_Pmalloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x10087a85
xor eax, eax
push eax
mov edx, ebx
push ebx
shr edx, 1
mov word [edi + edx*2], ax
mov ecx, dword [esp + 0x70]
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x10087a85
push edi
call dword [sym.imp.pskalloc.dll_Pfree]
add esp, 4
xor edi, edi
push esi
call dword [sym.imp.psklutil.dll_Ordinal_561]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret