Function at 0x4267f0
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [eax], 0
mov dword [ebx], 0
push edi
mov byte [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x426820
sub ecx, esi
sar ecx, 1
push 0
push eax
mov dword [ebp - 0x10], ecx
call fcn.0044c570
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov edx, dword [0x52fe2c]
add edx, 0x1b4
push edx
call fcn.004c62c0
push 0
push eax
mov dword [ebp - 8], eax
call fcn.0044c570
push eax
mov dword [ebp - 0xc], eax
call fcn.004c62f0
add esp, 0x18
test eax, eax
je 0x426871
xor ecx, ecx
mov word [eax], cx
mov edi, dword [esi]
movzx eax, word [edi]
cmp ax, 0x20
je 0x426968
cmp ax, 0x22
jne 0x4268c4
add edi, 2
push 0x22
push edi
call fcn.004c9bca
mov esi, eax
add esp, 8
test esi, esi
jne 0x4268b7
push 1
push 0xffffffffffffffff
push eax
push 0x40
push str.Invalid_command_line:_quates_are_not_balanced
call fcn.004262f0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, word [esi]
xor eax, eax
mov dword [ebp - 4], edx
mov word [esi], ax
jmp 0x4268fd
push 0x20
push edi
call fcn.004c9bca
mov esi, eax
add esp, 8
test esi, esi
jne 0x4268f2
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4268e0
sub eax, edx
sar eax, 1
lea esi, [edi + eax*2]
movzx ecx, word [esi]
xor edx, edx
mov dword [ebp - 4], ecx
mov word [esi], dx
push 0x5c
push edi
call fcn.004ca94c
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x426913
add ebx, 2
jmp 0x426915
mov ebx, edi
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push eax
push ebx
call edi
test eax, eax
je 0x42693a
mov ecx, dword [ebp - 0xc]
push ecx
push ebx
call edi
test eax, eax
je 0x42693a
mov dx, word [ebp - 4]
mov word [esi], dx
jmp 0x426965
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov edx, esi
sub edx, eax
sar edx, 1
sub ecx, edx
add ecx, ecx
test ecx, ecx
jle 0x426960
push ecx
add esi, 2
push esi
push eax
call fcn.004c9f70
add esp, 0xc
jmp 0x426965
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov esi, ecx
nop
movzx eax, word [esi]
cmp ax, 0x20
je 0x42697f
cmp ax, 0x22
jne 0x426984
add esi, 2
jmp 0x426970
cmp word [esi], 0
jne 0x4269ba
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, edx
mov edx, dword [ecx]
xor eax, eax
push 0x4e5034
mov word [edx], ax
push str.ConEmuArgs
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ecx
call fcn.00406cc0
add esp, 4
push eax
call fcn.0044c570
mov ecx, dword [0x52fe2c]
mov dword [ecx + 0x2090], eax
mov edx, dword [0x52fe2c]
mov eax, dword [edx + 0x2090]
add esp, 8
push eax
push str.ConEmuArgs
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
movzx eax, word [esi]
cmp ax, 0x2f
je 0x426a2c
cmp ax, 0x2d
je 0x426a2c
push 0x2f
push esi
call fcn.004c9bca
add esp, 8
test eax, eax
jne 0x426a2c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov dword [ecx], 0xffffffff
mov eax, dword [edx]
pop edi
mov dword [ebx], eax
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push str._cmd
push eax
call fcn.004ca978
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x426a5b
mov eax, dword [esi]
push 0x4ebf68
push eax
call fcn.004ca978
add esp, 8
mov dword [ebx], eax
test eax, eax
je 0x426a96
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx], dx
add dword [ebx], 2
mov eax, dword [ebx]
push 7
push 0x4ebf58
push eax
call fcn.0044d3f0
add esp, 0xc
test eax, eax
jne 0x426a86
mov eax, dword [ebp + 0x10]
add dword [ebx], 0xe
mov byte [eax], 1
jmp 0x426a89
add dword [ebx], 6
mov ecx, dword [ebx]
push ecx
call fcn.00406cc0
add esp, 4
mov dword [ebx], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [esi]
push edx
push eax
call fcn.00426750
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret