Function at 0x420031
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 0x42013c
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 0x420093
cmp word [ecx], si
jne 0x4200a0
lea ecx, [edi + 0x38]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x420114
movzx edi, word [ecx]
mov ebx, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x420111
cmp word [ebx], si
je 0x420111
test edi, edi
je 0x420111
movzx eax, word [ebx]
test ax, ax
je 0x4200d9
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
test eax, eax
je 0x4200d9
add ebx, 2
dec edi
sub edi, 1
mov dword [ebp - 4], edi
jne 0x4200b5
test edi, edi
je 0x420111
cmp word [ebx], si
je 0x4200a8
inc dword [ebp - 0xc]
mov dword [ebp - 0x28], ebx
add ebx, 2
dec edi
sub edi, 1
je 0x4200fc
movzx eax, word [ebx]
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
test eax, eax
je 0x4200e4
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 0x4200a5
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 0x48]
mov edx, esi
test ecx, ecx
je 0x420133
jmp 0x42012e
add ecx, 2
inc edx
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420123
cmp word [ecx], si
jne 0x42011f
mov ecx, dword [ebp - 0xc]
lea eax, [edx + 1]
mov edx, dword [ebp - 0x10]
lea edi, [ecx + eax]
cmp edi, 2
jbe 0x420177
cmp ecx, 1
jbe 0x420152
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 0x4201a5
mov esi, 0xc0000017
lea ebx, [ebp - 0x18]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x420182
int3
test esi, esi
js 0x420197
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push eax
push ebx
call fcn.0041b6c1
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 0x420272
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 0x420272
cmp edi, edx
jae 0x42026f
cmp word [ebx], si
je 0x42026f
test ecx, ecx
je 0x42026f
movzx eax, word [ebx]
test ax, ax
je 0x420207
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
mov ecx, dword [ebp - 4]
test eax, eax
je 0x420207
add ebx, 2
dec ecx
sub ecx, 1
mov dword [ebp - 4], ecx
jne 0x4201e0
test ecx, ecx
je 0x42026f
cmp word [ebx], si
je 0x420264
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 0x42024e
cmp edi, dword [ebp - 0xc]
jae 0x42025d
movzx eax, word [ebx]
push eax
call dword [sym.imp.ntdll.dll_iswspace]
pop ecx
mov ecx, dword [ebp - 4]
test eax, eax
je 0x42021a
mov edx, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0xc]
jae 0x42025d
xor eax, eax
mov word [edi], ax
add edi, 2
jmp 0x420264
mov edi, edx
xor eax, eax
mov word [edi], ax
mov edx, dword [ebp - 0xc]
test ecx, ecx
jne 0x4201c7
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 0x42029d
jmp 0x420298
mov dword [edx], ecx
add edx, 4
add ecx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42028d
cmp word [ecx], si
jne 0x420285
mov dword [edx], esi
jmp 0x42017a