Function at 0x4043c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0x30
mov word [edx], 0
mov word [ecx], 0
mov eax, dword [eax]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x104
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax + 0xc]
sub esp, 0x14
test eax, eax
jne 0x40441c
cmp word [ebx], 0
jne 0x4044b0
mov eax, dword [edi]
lea edx, [ebp - 0x18]
mov dword [esp + 4], 0x4168d8
mov dword [esp + 8], edx
mov dword [esp], edi
call dword [eax]
sub esp, 0xc
test eax, eax
js 0x404468
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0xa0000006
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0xc
test eax, eax
jns 0x404470
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0x10c
mov dword [esp], eax
call sub.advapi32.dll_CommandLineFromMsiDescriptor
sub esp, 0xc
test eax, eax
je 0x4044d0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
jmp 0x40445a
mov eax, dword [edi]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], 0x400
call dword [eax + 0x28]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4046e7
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
add eax, 0x10c
mov dword [esp], eax
call sub.advapi32.dll_CommandLineFromMsiDescriptor
sub esp, 0xc
mov edi, eax
test byte [0x40d014], 8
jne 0x404638
test edi, edi
jne 0x4045db
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax]
test cx, cx
je 0x4046dd
lea edi, [eax + 2]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0
mov ebx, edx
mov dword [ebp - 0x28], esi
jmp 0x404587
cmp cx, 0x5c
jne 0x4045f0
mov esi, 0x5c
add ebx, 1
add eax, 2
mov word [eax - 2], si
mov ecx, dword [ebp - 0x1c]
mov esi, eax
sub esi, ecx
lea ecx, [eax - 2]
cmp esi, 0x208
cmove eax, ecx
movzx ecx, word [edi]
add edi, 2
test cx, cx
je 0x4045b0
mov edx, edi
cmp cx, 9
je 0x404595
cmp cx, 0x20
jne 0x404550
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4046a0
mov word [eax], cx
xor ebx, ebx
add eax, 2
jmp 0x404569
mov esi, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
lea ecx, [esi + 0x7fe]
jmp 0x4045ce
add esi, 2
add edx, 2
mov word [esi - 2], ax
cmp ecx, esi
je 0x4045d6
movzx eax, word [edx]
test ax, ax
jne 0x4045c0
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40449d
cmp cx, 0x22
jne 0x4045a0
mov ecx, ebx
shr ecx, 0x1f
add ecx, ebx
sar ecx, 1
and ebx, 1
jne 0x404618
xor dword [ebp - 0x24], 1
add ecx, ecx
xor ebx, ebx
sub eax, ecx
jmp 0x404569
mov ebx, 0x7fffffff
sub ebx, ecx
lea ecx, [eax + ebx*2]
mov ebx, 0x22
mov word [ecx], bx
lea eax, [ecx + 2]
xor ebx, ebx
jmp 0x404569
mov eax, dword [ebp - 0x20]
shr eax, 0x10
test eax, eax
je 0x4046c8
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x404670
mov eax, dword [ebp - 0x20]
call fcn.00402980
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.______command____:__s_n
mov dword [esp + 8], str.get_cmdline
mov dword [esp + 4], 0x40d014
mov dword [esp], 3
call fcn.00402c50
jmp 0x40451c
mov esi, dword [ebp - 0x28]
lea edx, [edi - 2]
lea esi, [esi]
lea esi, [esi]
movzx ecx, word [edx + 2]
add edx, 2
cmp cx, 9
je 0x4046b0
cmp cx, 0x20
je 0x4046b0
jmp 0x4045b3
mov eax, dword [ebp - 0x20]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00402b40
jmp 0x404670
mov edx, dword [ebp - 0x20]
mov eax, ebx
jmp 0x4045b3
test byte [0x40d014], 2
jne 0x4046fd
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40d014
mov dword [esp], 1
call fcn.00402c50
jmp 0x4046f0