Function at 0x418b70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x4144
call fcn.00401050
sub esp, eax
mov eax, dword [esp + eax]
mov esi, dword [eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x418bd8
movzx eax, byte [0x423010]
mov ebx, dword [esi + 8]
and eax, 8
test al, al
je 0x418bc7
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Peeked_number__d_n
mov dword [esp + 8], str.WCMD_peeknumber
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x400c]
mov dword [esp + 8], 0x2000
mov dword [esp + 4], edi
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
jne 0x418cf0
test byte [0x423010], 8
je 0x418bc7
mov esi, dword [esi + 4]
test esi, esi
je 0x418e50
mov eax, esi
shr eax, 0x10
je 0x418d10
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x4350cb
sub esp, 8
test eax, eax
jne 0x418d25
cmp word [esi], 0
je 0x418e5a
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x418c50
mov eax, 0x224c
mov dword [ebp - 0x413c], ebx
lea ecx, [ebp - 0x4136]
mov word [ebp - 0x4138], ax
jmp 0x418cbb
cmp ax, 9
je 0x418df0
cmp ax, 0xa
jne 0x418d6d
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [ebp - 0x4016]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x418e08
test edx, edx
jle 0x418e08
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x418dd8
jbe 0x418c80
cmp ax, 0x22
je 0x418dc0
cmp ax, 0x5c
jne 0x418d60
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x418ca0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcstol]
mov ebx, eax
jmp 0x418c01
movzx esi, si
mov dword [esp], 0x4350be
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_1
mov edx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Envvar__s_converted_to__d_n
mov dword [esp + 8], str.WCMD_peeknumber
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
movzx eax, byte [0x423010]
and eax, 8
jmp 0x418b9b
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x418e40
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x438310]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x438310]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x438310]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x438310]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x418ca0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x418ca0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x418ca0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x418ca0
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x413c]
test eax, eax
jle 0x418e73
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x4138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x418d25
mov byte [ecx], al
inc ecx
jmp 0x418ca0
mov edx, 0x4350c4
jmp 0x418d25
mov edx, 0x224c
mov byte [ebp - 0x4136], 0x22
lea ecx, [ebp - 0x4136]
mov word [ebp - 0x4138], dx
lea eax, [ecx + 1]
jmp 0x418e25