Function at 0x41faf1
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov eax, ecx
xor esi, esi
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], esi
push dword [eax + 0x10]
call dword [sym.imp.ntdll.dll_RtlNormalizeProcessParams]
mov edi, eax
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x1c], esi
inc ecx
mov dword [ebp - 8], esi
inc eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ecx
mov edx, esi
mov ebx, esi
test edi, edi
je 0x41fbfc
mov eax, dword [edi + 0xc]
lea ecx, [edi + 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x41fb53
cmp word [ecx], si
jne 0x41fb60
lea ecx, [edi + 0x38]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x41fbd4
movzx edi, word [ecx]
mov ebx, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x41fbd1
cmp word [ebx], si
je 0x41fbd1
test edi, edi
je 0x41fbd1
movzx eax, word [ebx]
test ax, ax
je 0x41fb99
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
test eax, eax
je 0x41fb99
add ebx, 2
dec edi
sub edi, 1
mov dword [ebp - 4], edi
jne 0x41fb75
test edi, edi
je 0x41fbd1
cmp word [ebx], si
je 0x41fb68
inc dword [ebp - 0xc]
mov dword [ebp - 0x28], ebx
add ebx, 2
dec edi
sub edi, 1
je 0x41fbbc
movzx eax, word [ebx]
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
test eax, eax
je 0x41fba4
mov ecx, dword [ebp - 8]
mov eax, ebx
sub eax, dword [ebp - 0x28]
sar eax, 1
lea ecx, [ecx + eax*2]
add ecx, 2
mov dword [ebp - 8], ecx
jmp 0x41fb65
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 0x48]
mov edx, esi
test ecx, ecx
je 0x41fbf3
jmp 0x41fbee
add ecx, 2
inc edx
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fbe3
cmp word [ecx], si
jne 0x41fbdf
mov ecx, dword [ebp - 0xc]
lea eax, [edx + 1]
mov edx, dword [ebp - 0x10]
lea edi, [ecx + eax]
cmp edi, 2
jbe 0x41fc37
cmp ecx, 1
jbe 0x41fc12
movzx ecx, word [edx]
mov ebx, dword [edx + 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
shl edi, 2
add eax, edi
push eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x41fc65
mov esi, 0xc0000017
lea ebx, [ebp - 0x18]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41fc42
int3
test esi, esi
js 0x41fc57
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push eax
push ebx
call fcn.0041b551
pop ecx
pop ecx
mov esi, eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 0xc], 1
mov dword [ebp - 0x24], eax
jbe 0x41fd32
mov edx, dword [ebp - 8]
add edi, eax
mov ecx, dword [ebp - 4]
add edx, eax
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x41fd32
cmp edi, edx
jae 0x41fd2f
cmp word [ebx], si
je 0x41fd2f
test ecx, ecx
je 0x41fd2f
movzx eax, word [ebx]
test ax, ax
je 0x41fcc7
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
mov ecx, dword [ebp - 4]
test eax, eax
je 0x41fcc7
add ebx, 2
dec ecx
sub ecx, 1
mov dword [ebp - 4], ecx
jne 0x41fca0
test ecx, ecx
je 0x41fd2f
cmp word [ebx], si
je 0x41fd24
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
add eax, 4
inc dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov ax, word [ebx]
mov edx, edi
mov word [edi], ax
add ebx, 2
add edi, 2
mov dword [ebp - 0x2c], edx
dec ecx
sub ecx, 1
mov dword [ebp - 4], ecx
je 0x41fd0e
cmp edi, dword [ebp - 0xc]
jae 0x41fd1d
movzx eax, word [ebx]
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
mov ecx, dword [ebp - 4]
test eax, eax
je 0x41fcda
mov edx, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0xc]
jae 0x41fd1d
xor eax, eax
mov word [edi], ax
add edi, 2
jmp 0x41fd24
mov edi, edx
xor eax, eax
mov word [edi], ax
mov edx, dword [ebp - 0xc]
test ecx, ecx
jne 0x41fc87
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
lea ebx, [eax + 4]
mov dword [eax], esi
mov edx, ebx
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x41fd5d
jmp 0x41fd58
mov dword [edx], ecx
add edx, 4
add ecx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fd4d
cmp word [ecx], si
jne 0x41fd45
mov dword [edx], esi
jmp 0x41fc3a