Function at 0x41ef30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0xc238
mov ebp, esp
push edi
push esi
push ebx
call fcn.00401050
sub esp, eax
lea ebx, [ebp - 0xc214]
mov dword [esp + 4], 0x4364b8
mov dword [esp], 0x430580
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov dword [esp + 4], 0x4364be
mov dword [ebp - 0xc22c], eax
mov eax, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp], 0x428560
mov dword [ebp - 0xc224], eax
call eax
mov esi, dword [ebp + 0x14]
mov ecx, 0x42c560
sub esp, 8
test eax, eax
sete al
movzx eax, al
mov dword [esi], eax
mov eax, 0x428560
cmovne ecx, eax
xor eax, eax
nop
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x41efa0
test byte [0x423010], 8
jne 0x41f2f8
mov dword [esp + 4], str.errorlevel
mov eax, dword [ebp - 0xc224]
mov dword [esp], ebx
call eax
sub esp, 8
test eax, eax
jne 0x41f088
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 - 0xc224], eax
inc eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._WCMD_parameter
lea edx, [ebp - 0x400c]
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 - 0x400c]
cmp word [edx], 0
jne 0x41f2e6
cmp dword [0x423344], 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 - 0xc224]
mov dword [esp], ebx
call eax
sub esp, 8
test eax, eax
jne 0x41f150
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 - 0xc224], 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 ebx, eax
je 0x41f4a1
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x41f0e8
cmp ebx, eax
je 0x41f4a1
movzx eax, word [eax - 2]
cmp ax, 0x5c
je 0x41f599
cmp ax, 0x2f
je 0x41f599
lea eax, [ebp - 0x400c]
mov dword [esp], ebx
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 0x41f04a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x41f04a
mov dword [esp + 4], str.defined
mov eax, dword [ebp - 0xc224]
mov dword [esp], ebx
call eax
sub esp, 8
mov dword [esp + 0x10], 0
test eax, eax
je 0x41f448
mov edx, dword [ebp - 0xc22c]
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0xc220]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
xor eax, eax
lea edi, [ebp - 0xc00c]
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 0x41f1b8
cmp word [ebp - 0xc00c], 0
je 0x41f2e6
mov eax, dword [ebp - 0xc220]
mov ebx, edi
nop
add ebx, 2
cmp word [ebx], 0
jne 0x41f1e0
sub ebx, edi
add ebx, eax
movzx eax, word [ebx]
cmp ax, 9
je 0x41f200
cmp ax, 0x20
jne 0x41f213
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x41f200
cmp ax, 9
je 0x41f200
mov edx, 0x3d
mov eax, 0x4364b2
jmp 0x41f224
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x41f220
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 0x41f6c6
mov edx, 0x3d
lea esi, [ebp - 0x400c]
jmp 0x41f267
movzx edx, word [eax + 0x4364b2]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x41f260
cmp word [ebp - 0x400c], 0
je 0x41f28d
mov eax, esi
nop
add eax, 2
cmp word [eax], 0
jne 0x41f280
sub eax, esi
add ebx, eax
lea eax, [ebp - 0xc220]
mov dword [esp], ebx
lea ebx, [ebp - 0x800c]
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 0x41f2c8
cmp word [ebp - 0x800c], 0
jne 0x41f5af
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
shr eax, 0x10
je 0x41f558
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 0x41f414
movzx eax, word [ebp - 0xc214]
test ax, ax
je 0x41f578
lea esi, [esi]
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x41f340
mov esi, 0x224c
mov dword [ebp - 0xc228], edx
lea ecx, [ebp - 0x400a]
mov word [ebp - 0x400c], si
mov esi, ebx
jmp 0x41f3b0
cmp ax, 9
je 0x41f4c8
cmp ax, 0xa
jne 0x41f4e6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov eax, dword [ebp - 0xc228]
lea edi, [eax - 1]
test eax, eax
jle 0x41f3e8
lea eax, [ebp - 0x3eea]
cmp ecx, eax
ja 0x41f3e8
mov dword [ebp - 0xc228], edi
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x41f4b0
jbe 0x41f370
cmp ax, 0x22
je 0x41f540
cmp ax, 0x5c
jne 0x41f4d9
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41f390
mov byte [ecx], 0x22
test edi, edi
jle 0x41f591
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
lea esi, [ebp - 0x400c]
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 0x41efbd
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [ebp - 0xc224], 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 0x41f04a
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
jmp 0x41f04a
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41f390
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41f390
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41f570
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + 0x438310]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + 0x438310]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x438310]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + 0x438310]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x41f390
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41f390
movzx eax, bx
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41f414
mov byte [ecx], al
inc ecx
jmp 0x41f390
mov edi, 0x224c
mov byte [ebp - 0x400a], 0x22
lea ecx, [ebp - 0x400a]
mov word [ebp - 0x400c], di
lea eax, [ecx + 1]
jmp 0x41f403
mov dword [esp + 4], 0x435a02
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
jmp 0x41f111
mov dword [esp + 4], 0x4364b2
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
je 0x41f723
mov edx, dword [sym.imp.ucrtbase.dll_wcstol]
lea eax, [ebp - 0xc21c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [ebp - 0xc230], edx
mov dword [esp], edi
call edx
mov dword [esp + 8], 0
mov edx, dword [ebp - 0xc230]
mov dword [ebp - 0xc228], eax
lea eax, [ebp - 0xc218]
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
mov dword [ebp - 0xc230], eax
mov eax, dword [ebp - 0xc21c]
cmp word [eax], 0
jne 0x41f74c
mov eax, dword [ebp - 0xc218]
cmp word [eax], 0
jne 0x41f74c
mov dword [esp + 4], 0x436508
mov ecx, dword [ebp - 0xc224]
mov dword [esp], esi
call ecx
sub esp, 8
mov edx, eax
mov eax, dword [ebp - 0xc230]
cmp dword [ebp - 0xc228], eax
setl al
movzx eax, al
test edx, edx
jne 0x41f859
mov esi, dword [ebp + 0x10]
cmp word [ebp - 0x800c], 0
mov edx, dword [ebp - 0xc220]
mov dword [esi], eax
mov eax, ebx
je 0x41f695
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x41f688
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 0x41f07d
lea eax, [ebp - 0xc220]
mov dword [esp + 0x10], 0
lea esi, [ebp - 0x400c]
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 0x41f700
cmp word [ebp - 0x400c], 0
jne 0x41f27d
jmp 0x41f2e6
mov eax, dword [ebp - 0xc22c]
mov dword [esp + 4], ebx
mov dword [esp], edi
test eax, eax
je 0x41f78e
mov eax, dword [ebp - 0xc224]
call eax
sub esp, 8
test eax, eax
sete al
movzx eax, al
jmp 0x41f66b
mov dword [esp + 4], 0x436508
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
jne 0x41f7a4
mov eax, dword [ebp - 0xc22c]
mov dword [esp + 4], ebx
mov dword [esp], edi
test eax, eax
je 0x41f848
mov eax, dword [ebp - 0xc224]
call eax
sub esp, 8
shr eax, 0x1f
jmp 0x41f66b
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
jmp 0x41f66b
mov dword [esp + 4], 0x436518
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
je 0x41f88d
mov dword [esp + 4], 0x436510
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
je 0x41f723
mov dword [esp + 4], 0x436520
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
je 0x41f93c
mov dword [esp + 4], 0x436528
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
je 0x41f8f1
mov dword [esp + 4], 0x436530
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
je 0x41f8ca
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
jmp 0x41f2e6
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
shr eax, 0x1f
jmp 0x41f66b
mov dword [esp + 4], 0x436518
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
jne 0x41f963
xor eax, eax
mov esi, dword [ebp - 0xc230]
cmp dword [ebp - 0xc228], esi
setle al
jmp 0x41f66b
mov eax, dword [ebp - 0xc22c]
mov dword [esp + 4], ebx
mov dword [esp], edi
test eax, eax
je 0x41f8b5
mov eax, dword [ebp - 0xc224]
call eax
test eax, eax
push esi
setle al
push esi
movzx eax, al
jmp 0x41f66b
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
push ecx
setle al
push ecx
movzx eax, al
jmp 0x41f66b
cmp dword [ebp - 0xc22c], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
je 0x41f915
mov eax, dword [ebp - 0xc224]
call eax
test eax, eax
push edi
setg al
push edi
movzx eax, al
jmp 0x41f66b
cmp dword [ebp - 0xc22c], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
je 0x41f92a
mov eax, dword [ebp - 0xc224]
call eax
not eax
push ecx
shr eax, 0x1f
push ecx
jmp 0x41f66b
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
push esi
setg al
push esi
movzx eax, al
jmp 0x41f66b
call dword [sym.imp.kernel32.dll_lstrcmpW]
not eax
push edx
shr eax, 0x1f
push edx
jmp 0x41f66b
cmp dword [ebp - 0xc22c], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
je 0x41f992
mov eax, dword [ebp - 0xc224]
call eax
test eax, eax
push edi
setne al
push edi
movzx eax, al
jmp 0x41f66b
mov dword [esp + 4], 0x436510
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
jne 0x41f9a7
xor eax, eax
mov esi, dword [ebp - 0xc230]
cmp dword [ebp - 0xc228], esi
sete al
jmp 0x41f66b
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
push esi
setne al
push esi
movzx eax, al
jmp 0x41f66b
mov dword [esp + 4], 0x436520
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
push ecx
push ecx
test eax, eax
jne 0x41f9d6
xor eax, eax
mov esi, dword [ebp - 0xc230]
cmp dword [ebp - 0xc228], esi
setne al
jmp 0x41f66b
mov dword [esp + 4], 0x436528
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
push ecx
push ecx
test eax, eax
jne 0x41fa05
xor eax, eax
mov esi, dword [ebp - 0xc230]
cmp dword [ebp - 0xc228], esi
setge al
jmp 0x41f66b
mov dword [esp + 4], 0x436530
mov eax, dword [ebp - 0xc224]
mov dword [esp], esi
call eax
push ecx
push ecx
test eax, eax
jne 0x41f837
xor eax, eax
mov esi, dword [ebp - 0xc230]
cmp dword [ebp - 0xc228], esi
setg al
jmp 0x41f66b