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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push 0xffffffffffffffff
push 0x4bedc8
push eax
mov eax, dword [ebp + 0x14]
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [eax], 0
mov dword [ecx], 0
push edi
mov byte [edx], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4203e1
sub ecx, esi
sar ecx, 1
push eax
mov dword [ebp - 0x1c], ecx
call fcn.00441380
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [0x50b39c]
add eax, 0x1b4
push eax
call fcn.004ad2c0
push eax
mov dword [ebp - 0x14], eax
call fcn.00441380
push eax
mov dword [ebp - 0x18], eax
call fcn.004ad2f0
add esp, 0x10
test eax, eax
je 0x42042c
xor ecx, ecx
mov word [eax], cx
mov edi, dword [ebx]
movzx eax, word [edi]
cmp ax, 0x20
je 0x42055b
cmp ax, 0x22
jne 0x4204bd
add edi, 2
push 0x22
push edi
call fcn.004b03ac
mov esi, eax
add esp, 8
test esi, esi
jne 0x4204b0
mov esi, dword [0x50b3b0]
mov dword [ebp + 8], esi
mov dword [0x50b3b0], 1
mov ecx, dword [0x50b39c]
push 1
mov dword [ebp - 4], eax
call fcn.004065c0
mov ecx, dword [0x50b37c]
neg ecx
push 0x40
sbb ecx, ecx
and ecx, dword [0x50b384]
push eax
push str.Invalid_command_line:_quates_are_not_balanced
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
mov dword [0x50b3b0], esi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
movzx edx, word [esi]
xor eax, eax
mov dword [ebp - 0x10], edx
mov word [esi], ax
jmp 0x4204f0
push 0x20
push edi
call fcn.004b03ac
mov esi, eax
add esp, 8
test esi, esi
jne 0x4204e5
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4204d3
sub eax, edx
sar eax, 1
lea esi, [edi + eax*2]
movzx ecx, word [esi]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov word [esi], dx
push 0x5c
push edi
call fcn.004b135e
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x420506
add ebx, 2
jmp 0x420508
mov ebx, edi
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push eax
push ebx
call edi
test eax, eax
je 0x42052d
mov ecx, dword [ebp - 0x18]
push ecx
push ebx
call edi
test eax, eax
je 0x42052d
mov dx, word [ebp - 0x10]
mov word [esi], dx
jmp 0x420558
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov edx, esi
sub edx, eax
sar edx, 1
sub ecx, edx
add ecx, ecx
test ecx, ecx
jle 0x420553
push ecx
add esi, 2
push esi
push eax
call fcn.004b0bb0
add esp, 0xc
jmp 0x420558
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
mov esi, ecx
nop
movzx eax, word [esi]
cmp ax, 0x20
je 0x42056f
cmp ax, 0x22
jne 0x420574
add esi, 2
jmp 0x420560
cmp word [esi], 0
jne 0x4205a4
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov eax, dword [ebx]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
push 0x4c1318
mov word [eax], cx
push str.ConEmuArgs
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x420658
push ecx
push str.ConEmuArgs
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebx]
push eax
call fcn.00441380
mov ecx, dword [0x50b39c]
mov dword [ecx + 0x208c], eax
movzx eax, word [esi]
add esp, 4
cmp ax, 0x2f
je 0x4205f7
cmp ax, 0x2d
je 0x4205f7
push 0x2f
push esi
call fcn.004b03ac
add esp, 8
test eax, eax
jne 0x4205f7
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
mov eax, dword [ebx]
mov dword [ecx], eax
jmp 0x420658
mov eax, dword [ebx]
push str._cmd
push eax
call fcn.004b138a
mov esi, dword [ebp + 0xc]
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x420649
xor edx, edx
mov word [eax], dx
add dword [esi], 2
mov eax, dword [esi]
push 7
push str.cmdlist
push eax
call fcn.00441e90
add esp, 0xc
test eax, eax
jne 0x420639
mov eax, dword [ebp + 0x10]
add dword [esi], 0xe
mov byte [eax], 1
jmp 0x42063c
add dword [esi], 6
mov ecx, dword [esi]
push ecx
call fcn.004ad3e0
add esp, 4
mov dword [esi], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx]
push edx
push eax
call fcn.00420300
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret