Function at 0x4189d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x4168
call fcn.00401050
sub esp, eax
mov eax, dword [esp + eax]
mov esi, dword [eax]
mov ebx, dword [esi]
test ebx, ebx
je 0x418a38
movzx eax, byte [0x423010]
mov ebx, dword [esi + 8]
and eax, 8
test al, al
je 0x418a27
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 - 0x4018]
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 0x418b50
test byte [0x423010], 8
je 0x418a27
mov esi, dword [esi + 4]
test esi, esi
je 0x418cb0
mov eax, esi
shr eax, 0x10
je 0x418b70
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 0x418b85
cmp word [esi], 0
je 0x418cba
lea esi, [esi]
nop
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x418ab0
mov eax, 0x224c
mov dword [ebp - 0x414c], ebx
lea ecx, [ebp - 0x4142]
mov word [ebp - 0x4144], ax
jmp 0x418b1b
cmp ax, 9
je 0x418c50
cmp ax, 0xa
jne 0x418bcd
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [ebp - 0x4022]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x418c68
test edx, edx
jle 0x418c68
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x418c38
jbe 0x418ae0
cmp ax, 0x22
je 0x418c20
cmp ax, 0x5c
jne 0x418bc0
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x418b00
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 0x418a61
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 0x4189fb
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x418ca0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + 0x438130]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + 0x438130]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x438130]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + 0x438130]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x418b00
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x418b00
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x418b00
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x418b00
mov byte [ecx], 0x22
mov ebx, dword [ebp - 0x414c]
test eax, eax
jle 0x418cd3
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x4144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x418b85
mov byte [ecx], al
inc ecx
jmp 0x418b00
mov edx, 0x4350c4
jmp 0x418b85
mov edx, 0x224c
mov byte [ebp - 0x4142], 0x22
lea ecx, [ebp - 0x4142]
mov word [ebp - 0x4144], dx
lea eax, [ecx + 1]
jmp 0x418c85