Function at 0x10021b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
push dword [eax + 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_RtlNormalizeProcessParams]
mov esi, eax
lea eax, [ebp - 4]
xor ecx, ecx
inc ecx
cmp esi, ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
je 0x1002374
lea eax, [esi + 0x40]
cmp dword [eax + 4], ebx
je 0x1002203
cmp word [eax], bx
jne 0x1002206
lea eax, [esi + 0x38]
push edi
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
mov edi, dword [ebp - 0x28]
cmp edi, ebx
mov eax, edi
je 0x1002246
mov cl, byte [edi]
cmp cl, bl
je 0x1002246
cmp cl, 0x20
jg 0x100222e
inc eax
mov cl, byte [eax]
cmp cl, bl
jne 0x1002222
mov cl, byte [eax]
cmp cl, bl
je 0x1002246
inc dword [ebp - 0xc]
cmp cl, 0x20
jle 0x1002242
inc eax
cmp byte [eax], 0x20
jg 0x100223c
mov cl, byte [eax]
jmp 0x100221e
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0x48]
inc ecx
cmp eax, ebx
je 0x1002265
jmp 0x1002260
inc dword [ebp - 0x10]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1002256
cmp word [eax], bx
jne 0x1002253
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0xc]
inc edx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov dword [eax + 0xbf4], ebx
add ecx, edx
lea eax, [ecx*4 + 0x10]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
jne 0x10022a0
mov eax, dword fs:[0x18]
jmp 0x10022f4
lea eax, [esi + 0x40]
mov dword [edi], ebx
cmp dword [eax + 4], ebx
mov dword [ebp - 0x20], edi
je 0x10022b2
cmp word [eax], bx
jne 0x10022b5
lea eax, [esi + 0x38]
push 1
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
mov esi, dword [ebp - 0x28]
cmp esi, ebx
movzx ecx, word [ebp - 0x2c]
je 0x100233a
mov eax, dword fs:[0x18]
add ecx, 2
push ecx
mov dword [eax + 0xbf4], ebx
mov eax, dword [ebp + 8]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
jne 0x1002336
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x1002364
mov dword [ebp - 8], 0xc0000017
jmp 0x1002364
cmp cl, bl
je 0x100233a
cmp cl, 0x20
jg 0x100231a
inc esi
mov cl, byte [esi]
cmp cl, bl
jne 0x100230e
cmp byte [esi], bl
je 0x100233a
mov dword [edi], eax
add edi, 4
inc dword [ebp - 0x18]
jmp 0x100232c
mov byte [eax], cl
inc eax
inc esi
mov cl, byte [esi]
cmp cl, 0x20
jg 0x1002328
mov byte [eax], bl
inc eax
mov cl, byte [esi]
jmp 0x100230a
mov eax, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [eax + 0x48]
add edi, 4
cmp eax, ebx
mov dword [ebp - 0x1c], edi
je 0x1002362
jmp 0x100235d
mov dword [edi], eax
add edi, 4
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1002353
cmp word [eax], bx
jne 0x100234e
mov dword [edi], ebx
cmp dword [ebp - 0x14], ebx
pop edi
je 0x100236f
call sub.ntdll.dll_DbgBreakPoint
cmp dword [ebp - 8], ebx
jl 0x100238b
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.0100191d
add esp, 0x10
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
pop esi
pop ebx
leave
ret 4