Function at 0x411100
Capabilities:
Get process heap flags
Query environment variable
Set environment variable

Disassembly:
push ebp
mov eax, 0x403c
mov ebp, esp
push edi
push esi
push ebx
call fcn.004240d8
sub esp, eax
movzx eax, word [0x4331e0]
mov esi, dword [ebp + 8]
or ax, word [0x437480]
je 0x4114f3
mov dword [esp + 0x14], 0xffffffff
mov ebx, dword [sym.imp.kernel32.dll_CompareStringW]
mov dword [esp + 0x10], 0x426a1e
mov dword [esp + 0xc], 2
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1001
mov dword [esp], 0x400
call ebx
sub esp, 0x18
cmp eax, 2
jne 0x411260
movzx eax, word [esi + 4]
lea ebx, [esi + 4]
test ax, ax
je 0x411348
cmp ax, 9
je 0x411184
cmp ax, 0x20
jne 0x41119f
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x411348
cmp ax, 0x20
je 0x411184
cmp ax, 9
je 0x411184
cmp ax, 0x22
je 0x411320
mov dword [esp + 4], 0x3d
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x411348
xor ecx, ecx
cmp word [eax + 2], 0
mov word [eax], cx
jne 0x4113b5
mov dword [esp], 0xfffffff6
lea esi, [ebp - 0x4018]
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea edx, [ebp - 0x401c]
sub esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x2000
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._WCMD_ReadFile
test eax, eax
je 0x41124e
mov eax, dword [ebp - 0x401c]
cmp eax, 1
jbe 0x41124e
xor edx, edx
mov word [ebp + eax*2 - 0x401a], dx
sub eax, 2
cmp word [ebp + eax*2 - 0x4018], 0xd
je 0x411562
test byte [0x425010], 8
jne 0x411571
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0x4269ec
mov dword [esp + 0xc], 2
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1001
mov dword [esp], 0x400
call ebx
sub esp, 0x18
cmp eax, 2
je 0x4113f0
cmp word [esi], 0x22
je 0x411510
mov dword [esp + 4], 0x3d
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x411605
xor edx, edx
xor ebx, ebx
cmp word [eax + 2], 0
mov word [eax], dx
jne 0x411364
test byte [0x425010], 8
jne 0x411374
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
sub esp, 8
mov edx, dword fs:[0x18]
cmp dword [edx + 0x34], 0xcb
jne 0x4113c5
test eax, eax
jne 0x4113c5
mov dword [0x437470], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call dbg.WCMD_strip_quotes
test eax, eax
je 0x411331
xor esi, esi
mov word [eax], si
test byte [0x425010], 8
jne 0x4115d1
cmp word [ebx], 0
jne 0x4111a9
mov dword [esp], 0x3f2
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.WCMD_output_stderr
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [eax + 2]
test byte [0x425010], 8
je 0x4112db
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.5
mov edi, eax
mov eax, esi
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.set:_Setting_var__s_to__s_n
mov dword [esp + 8], str.WCMD_setshow_env
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x4112db
add eax, 2
mov dword [esp], eax
call sym._WCMD_output_asis
jmp 0x4111d2
test eax, eax
je 0x4115b2
mov eax, dword [0x4372a8]
test eax, eax
jne 0x41124e
mov dword [0x437470], 0
jmp 0x41124e
cmp word [esi + 4], 0
lea edi, [esi + 4]
mov dword [ebp - 0x4020], 0
je 0x411641
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x411410
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [esp], eax
call dbg.heap_xalloc
mov dword [ebp - 0x401c], edi
mov ebx, eax
movzx eax, word [esi + 4]
mov edx, ebx
test ax, ax
je 0x411464
lea esi, [esi]
cmp ax, 0x22
je 0x41144c
mov word [edx], ax
add edx, 2
mov eax, dword [ebp - 0x401c]
lea ecx, [eax + 2]
mov dword [ebp - 0x401c], ecx
movzx eax, word [eax + 2]
test ax, ax
jne 0x411440
xor esi, esi
xor ecx, ecx
lea eax, [ebp - 0x401c]
mov word [edx], si
lea edx, [ebp - 0x4020]
mov dword [ebp - 0x401c], ebx
call dbg.WCMD_handleExpression
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test esi, esi
jg 0x4115bc
mov ebx, dword [0x42e0c4]
test ebx, ebx
jne 0x41124e
mov eax, dword [ebp - 0x4020]
lea ebx, [ebp - 0x4018]
mov dword [esp + 8], 0x42612a
mov dword [esp + 4], 0x2000
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._swprintf.constprop.6
mov dword [esp], ebx
call sym._WCMD_output_asis
jmp 0x41124e
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor edx, edx
call dbg.WCMD_setshow_sortenv
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call dbg.WCMD_strip_quotes
test eax, eax
je 0x411521
xor ecx, ecx
mov word [eax], cx
test byte [0x425010], 8
je 0x4112a3
mov eax, esi
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0xc], str.set:_Stripped_command_line__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_setshow_env
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x4112a3
xor edi, edi
mov word [ebp + eax*2 - 0x4018], di
jmp 0x411231
mov eax, esi
call sym._wine_dbgstr_wn.constprop.5
mov edi, eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.set__p:_Setting_var__s_to__s_n
mov dword [esp + 8], str.WCMD_setshow_env
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x41123e
call dbg.WCMD_print_error
jmp 0x41124e
mov dword [esp], esi
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.WCMD_output_stderr
jmp 0x41124e
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.5
mov dword [esp + 0xc], str.set:_Stripped_command_line__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WCMD_setshow_env
mov dword [esp + 4], 0x425010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.9
jmp 0x41133e
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov edx, esi
call dbg.WCMD_setshow_sortenv
test eax, eax
jne 0x41124e
mov dword [esp], 0x3fb
call sym._WCMD_LoadMessage
mov dword [esp + 4], esi
mov dword [esp], eax
call dbg.WCMD_output_stderr
mov dword [0x437470], 1
jmp 0x41124e
mov eax, 2
jmp 0x411421