Function at 0x10053630
Capabilities:
Patch process command line

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8ac
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x8a8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [esp + 0x18], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
push 0x1d8
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2cc]
push 0
push eax
mov dword [esp + 0x1c], edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x4a0]
xor esi, esi
mov dword [esp + 0x1c], esi
push 0x208
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x6a8]
push 0x208
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x20], esi
lea eax, [esp + 0x38]
mov dword [esp + 0x34], esi
xorps xmm0, xmm0
movups xmmword [esp + 0x24], xmm0
push 0x290
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10053891
push esi
push 0x18
lea ecx, [esp + 0x28]
push ecx
push esi
push edi
call eax
test eax, eax
jne 0x10053891
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10053891
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [esp + 0x2c8]
push esi
push 0x1d8
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x10053891
push esi
push 0x290
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2e4]
push edi
call ebx
test eax, eax
je 0x10053891
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1005388f
movzx ecx, word [esp + 0x78]
mov eax, ecx
shr eax, 1
cmp dword [ebp + 8], eax
jbe 0x1005388f
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
push dword [esp + 0x88]
push edi
call ebx
test eax, eax
je 0x10053891
movzx eax, word [esp + 0x78]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x10053891
mov eax, dword [esp + 0x10]
xor edx, edx
shr ecx, 1
lea esi, [edx + 1]
mov word [eax + ecx*2], dx
cmp dword [esp + 0x18], edx
je 0x1005388f
movzx ecx, word [esp + 0x70]
mov eax, ecx
shr eax, 1
cmp dword [esp + 0x14], eax
jbe 0x1005388f
lea eax, [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x4a8]
push eax
push dword [esp + 0x80]
push edi
call ebx
test eax, eax
je 0x10053891
movzx eax, word [esp + 0x70]
cmp dword [esp + 0x1c], eax
jne 0x10053891
push 0
push 0x103
lea edx, [esp + 0x6b0]
lea ecx, [esp + 0x4a8]
call fcn.10055ef0
add esp, 8
test eax, eax
je 0x10053891
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea eax, [esp + 0x6a8]
push 0x103
push eax
lea eax, [esp + 0x4a8]
push 0x104
push eax
call edi
lea ecx, [esp + 0x4b0]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10053840
mov ebx, dword [esp + 0x14]
sub ecx, edx
sar ecx, 1
cmp ecx, ebx
jae 0x10053891
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x4a0]
push 0xffffffffffffffff
push eax
push ebx
push esi
call edi
add esp, 0x10
xor eax, eax
mov word [esi + ebx*2 - 2], ax
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8a8]
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ecx, dword [esp + 0x8b4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret