Function at 0x41e860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0xc25c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00401050
sub esp, eax
lea ebx, [ebp - 0xc220]
mov dword [esp + 4], 0x4364b8
mov dword [esp], 0x430420
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov dword [esp + 4], 0x4364be
mov dword [ebp - 0xc244], eax
mov eax, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp], 0x428400
mov dword [ebp - 0xc23c], eax
call eax
mov esi, dword [ebp + 0x14]
mov ecx, 0x42c400
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov dword [esi], eax
mov eax, 0x428400
cmovne ecx, eax
xor eax, eax
nop
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x41e8d0
test byte [0x423010], 8
jne 0x41ec18
mov dword [esp + 4], str.errorlevel
mov eax, dword [ebp - 0xc23c]
mov dword [esp], ebx
call eax
sub esp, 8
test eax, eax
jne 0x41e9b8
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [ebp - 0xc23c], eax
inc eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._WCMD_parameter
lea edx, [ebp - 0x4018]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov edx, dword [ebp - 0x4018]
cmp word [edx], 0
jne 0x41ec06
cmp dword [0x4231f0], eax
mov edi, dword [ebp + 0x10]
setge al
movzx eax, al
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._WCMD_parameter
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], str.exist
mov eax, dword [ebp - 0xc23c]
mov dword [esp], ebx
call eax
sub esp, 8
test eax, eax
jne 0x41ea70
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [ebp - 0xc23c], eax
inc eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._WCMD_parameter
cmp word [eax], 0
mov edx, eax
je 0x41ec06
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x41ea18
cmp edx, eax
je 0x41ec06
cmp word [eax - 2], 0x5c
je 0x41eeb9
lea eax, [ebp - 0x4018]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
xor edx, edx
mov edi, dword [ebp + 0x10]
sub esp, 8
cmp eax, 0xffffffff
setne dl
mov dword [edi], edx
je 0x41e97a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x41e97a
mov dword [esp + 4], str.defined
mov eax, dword [ebp - 0xc23c]
mov dword [esp], ebx
call eax
sub esp, 8
mov dword [esp + 0x10], 0
test eax, eax
je 0x41ed68
mov edx, dword [ebp - 0xc244]
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0xc22c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
xor eax, eax
lea edi, [ebp - 0xc018]
test edx, edx
setne al
add eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._WCMD_parameter
mov ecx, eax
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ecx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x41ead8
cmp word [ebp - 0xc018], 0
je 0x41ec06
mov eax, dword [ebp - 0xc22c]
mov ebx, edi
nop
add ebx, 2
cmp word [ebx], 0
jne 0x41eb00
sub ebx, edi
add ebx, eax
movzx eax, word [ebx]
cmp ax, 9
je 0x41eb20
cmp ax, 0x20
jne 0x41eb33
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x41eb20
cmp ax, 9
je 0x41eb20
mov edx, 0x3d
mov eax, 0x4364b2
jmp 0x41eb44
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x41eb40
sub eax, 0x4364b2
mov dword [esp + 4], 0x4364b2
sar eax, 1
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_wcsncmp]
test eax, eax
jne 0x41f006
mov edx, 0x3d
lea esi, [ebp - 0x4018]
jmp 0x41eb87
movzx edx, word [eax + 0x4364b2]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x41eb80
cmp word [ebp - 0x4018], 0
je 0x41ebad
mov eax, esi
nop
add eax, 2
cmp word [eax], 0
jne 0x41eba0
sub eax, esi
add ebx, eax
lea eax, [ebp - 0xc22c]
mov dword [esp], ebx
lea ebx, [ebp - 0x8018]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0
call sym._WCMD_parameter
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x41ebe8
cmp word [ebp - 0x8018], 0
jne 0x41eef0
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
shr eax, 0x10
je 0x41ee70
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x4350cb
test ecx, ecx
jne 0x41ed34
movzx eax, word [ebp - 0xc220]
test ax, ax
je 0x41ee98
lea esi, [esi]
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x41ec60
mov esi, 0x224c
mov dword [ebp - 0xc240], edx
lea ecx, [ebp - 0x4016]
mov word [ebp - 0x4018], si
mov esi, ebx
jmp 0x41ecd0
cmp ax, 9
je 0x41ee58
cmp ax, 0xa
jne 0x41ede6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov eax, dword [ebp - 0xc240]
lea edi, [eax - 1]
test eax, eax
jle 0x41ed08
lea eax, [ebp - 0x3ef6]
cmp ecx, eax
ja 0x41ed08
mov dword [ebp - 0xc240], edi
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x41edc8
jbe 0x41ec90
cmp ax, 0x22
je 0x41ee40
cmp ax, 0x5c
jne 0x41edd9
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41ecb0
mov byte [ecx], 0x22
test edi, edi
jle 0x41eeb1
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
lea esi, [ebp - 0x4018]
mov byte [eax], 0
mov dword [esp], esi
call sym.___wine_dbg_strdup
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Condition:__s_n
mov dword [esp + 8], str.evaluate_if_condition
mov dword [esp + 4], 0x423010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x41e8ed
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [ebp - 0xc23c], eax
inc eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._WCMD_parameter
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, dword [ebp + 0x10]
sub esp, 0xc
test eax, eax
setne al
movzx eax, al
mov dword [esi], eax
jmp 0x41e97a
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41ecb0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41ee90
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + 0x438130]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + 0x438130]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x438130]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + 0x438130]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x41ecb0
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41ecb0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41ecb0
movzx eax, bx
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41ed34
mov byte [ecx], al
inc ecx
jmp 0x41ecb0
mov edi, 0x224c
mov byte [ebp - 0x4016], 0x22
lea ecx, [ebp - 0x4016]
mov word [ebp - 0x4018], di
lea eax, [ecx + 1]
jmp 0x41ed23
mov ecx, edx
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x41eec0
xor eax, eax
mov ebx, 0x2e
jmp 0x41eedf
movzx ebx, word [eax + 0x435a02]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x41eed8
jmp 0x41ea34
mov dword [esp + 4], 0x4364b2
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
je 0x41f063
mov edx, dword [sym.imp.ucrtbase.dll_wcstol]
lea eax, [ebp - 0xc228]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [ebp - 0xc248], edx
mov dword [esp], edi
call edx
mov dword [esp + 8], 0
mov edx, dword [ebp - 0xc248]
mov dword [ebp - 0xc240], eax
lea eax, [ebp - 0xc224]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
mov dword [ebp - 0xc248], eax
mov eax, dword [ebp - 0xc228]
cmp word [eax], 0
jne 0x41f08c
mov eax, dword [ebp - 0xc224]
cmp word [eax], 0
jne 0x41f08c
mov dword [esp + 4], 0x436508
mov ecx, dword [ebp - 0xc23c]
mov dword [esp], esi
call ecx
sub esp, 8
mov edx, eax
mov eax, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], eax
setl al
movzx eax, al
test edx, edx
jne 0x41f199
mov esi, dword [ebp + 0x10]
cmp word [ebp - 0x8018], 0
mov edx, dword [ebp - 0xc22c]
mov dword [esi], eax
mov eax, ebx
je 0x41efd5
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x41efc8
sub eax, ebx
add edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sym._WCMD_parameter
mov eax, 1
jmp 0x41e9ad
lea eax, [ebp - 0xc22c]
mov dword [esp + 0x10], 0
lea esi, [ebp - 0x4018]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._WCMD_parameter
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x41f040
cmp word [ebp - 0x4018], 0
jne 0x41eb9d
jmp 0x41ec06
mov eax, dword [ebp - 0xc244]
mov dword [esp + 4], ebx
mov dword [esp], edi
test eax, eax
je 0x41f0ce
mov eax, dword [ebp - 0xc23c]
call eax
sub esp, 8
test eax, eax
sete al
movzx eax, al
jmp 0x41efac
mov dword [esp + 4], 0x436508
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
jne 0x41f0e4
mov eax, dword [ebp - 0xc244]
mov dword [esp + 4], ebx
mov dword [esp], edi
test eax, eax
je 0x41f188
mov eax, dword [ebp - 0xc23c]
call eax
sub esp, 8
shr eax, 0x1f
jmp 0x41efac
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
jmp 0x41efac
mov dword [esp + 4], 0x436518
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
je 0x41f1cd
mov dword [esp + 4], 0x436510
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
je 0x41f063
mov dword [esp + 4], 0x436520
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
je 0x41f27c
mov dword [esp + 4], 0x436528
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
je 0x41f231
mov dword [esp + 4], 0x436530
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
je 0x41f20a
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
jmp 0x41ec06
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
shr eax, 0x1f
jmp 0x41efac
mov dword [esp + 4], 0x436518
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
jne 0x41f2a3
xor eax, eax
mov esi, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], esi
setle al
jmp 0x41efac
mov eax, dword [ebp - 0xc244]
mov dword [esp + 4], ebx
mov dword [esp], edi
test eax, eax
je 0x41f1f5
mov eax, dword [ebp - 0xc23c]
call eax
test eax, eax
push esi
setle al
push esi
movzx eax, al
jmp 0x41efac
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
push ecx
setle al
push ecx
movzx eax, al
jmp 0x41efac
cmp dword [ebp - 0xc244], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
je 0x41f255
mov eax, dword [ebp - 0xc23c]
call eax
test eax, eax
push edi
setg al
push edi
movzx eax, al
jmp 0x41efac
cmp dword [ebp - 0xc244], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
je 0x41f26a
mov eax, dword [ebp - 0xc23c]
call eax
not eax
push ecx
shr eax, 0x1f
push ecx
jmp 0x41efac
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
push esi
setg al
push esi
movzx eax, al
jmp 0x41efac
call dword [sym.imp.kernel32.dll_lstrcmpW]
not eax
push edx
shr eax, 0x1f
push edx
jmp 0x41efac
cmp dword [ebp - 0xc244], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
je 0x41f2d2
mov eax, dword [ebp - 0xc23c]
call eax
test eax, eax
push edi
setne al
push edi
movzx eax, al
jmp 0x41efac
mov dword [esp + 4], 0x436510
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
jne 0x41f2e7
xor eax, eax
mov esi, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], esi
sete al
jmp 0x41efac
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
push esi
setne al
push esi
movzx eax, al
jmp 0x41efac
mov dword [esp + 4], 0x436520
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push ecx
push ecx
test eax, eax
jne 0x41f316
xor eax, eax
mov esi, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], esi
setne al
jmp 0x41efac
mov dword [esp + 4], 0x436528
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push ecx
push ecx
test eax, eax
jne 0x41f345
xor eax, eax
mov esi, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], esi
setge al
jmp 0x41efac
mov dword [esp + 4], 0x436530
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push ecx
push ecx
test eax, eax
jne 0x41f177
xor eax, eax
mov esi, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], esi
setg al
jmp 0x41efac