Function at 0x41edb0
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 0x41ee20
test byte [0x423010], 8
jne 0x41f168
mov dword [esp + 4], str.errorlevel
mov eax, dword [ebp - 0xc23c]
mov dword [esp], ebx
call eax
sub esp, 8
test eax, eax
jne 0x41ef08
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 0x41f156
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 0x41efc0
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 0x41f156
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x41ef68
cmp edx, eax
je 0x41f156
cmp word [eax - 2], 0x5c
je 0x41f409
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 0x41eeca
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x41eeca
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 0x41f2b8
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 0x41f028
cmp word [ebp - 0xc018], 0
je 0x41f156
mov eax, dword [ebp - 0xc22c]
mov ebx, edi
nop
add ebx, 2
cmp word [ebx], 0
jne 0x41f050
sub ebx, edi
add ebx, eax
movzx eax, word [ebx]
cmp ax, 9
je 0x41f070
cmp ax, 0x20
jne 0x41f083
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 0x20
je 0x41f070
cmp ax, 9
je 0x41f070
mov edx, 0x3d
mov eax, 0x4364b2
jmp 0x41f094
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x41f090
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 0x41f556
mov edx, 0x3d
lea esi, [ebp - 0x4018]
jmp 0x41f0d7
movzx edx, word [eax + 0x4364b2]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x41f0d0
cmp word [ebp - 0x4018], 0
je 0x41f0fd
mov eax, esi
nop
add eax, 2
cmp word [eax], 0
jne 0x41f0f0
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 0x41f138
cmp word [ebp - 0x8018], 0
jne 0x41f440
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
shr eax, 0x10
je 0x41f3c0
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 0x41f284
movzx eax, word [ebp - 0xc220]
test ax, ax
je 0x41f3e8
lea esi, [esi]
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x41f1b0
mov esi, 0x224c
mov dword [ebp - 0xc240], edx
lea ecx, [ebp - 0x4016]
mov word [ebp - 0x4018], si
mov esi, ebx
jmp 0x41f220
cmp ax, 9
je 0x41f3a8
cmp ax, 0xa
jne 0x41f336
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov eax, dword [ebp - 0xc240]
lea edi, [eax - 1]
test eax, eax
jle 0x41f258
lea eax, [ebp - 0x3ef6]
cmp ecx, eax
ja 0x41f258
mov dword [ebp - 0xc240], edi
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x41f318
jbe 0x41f1e0
cmp ax, 0x22
je 0x41f390
cmp ax, 0x5c
jne 0x41f329
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x41f200
mov byte [ecx], 0x22
test edi, edi
jle 0x41f401
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 0x41ee3d
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 0x41eeca
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41f200
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x41f3e0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + 0x4382d0]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + 0x4382d0]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + 0x4382d0]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + 0x4382d0]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x41f200
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41f200
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x41f200
movzx eax, bx
mov dword [esp], 0x4350be
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x41f284
mov byte [ecx], al
inc ecx
jmp 0x41f200
mov edi, 0x224c
mov byte [ebp - 0x4016], 0x22
lea ecx, [ebp - 0x4016]
mov word [ebp - 0x4018], di
lea eax, [ecx + 1]
jmp 0x41f273
mov ecx, edx
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x41f410
xor eax, eax
mov ebx, 0x2e
jmp 0x41f42f
movzx ebx, word [eax + 0x435a02]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x41f428
jmp 0x41ef84
mov dword [esp + 4], 0x4364b2
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
je 0x41f5b3
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 0x41f5dc
mov eax, dword [ebp - 0xc224]
cmp word [eax], 0
jne 0x41f5dc
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 0x41f6e9
mov esi, dword [ebp + 0x10]
cmp word [ebp - 0x8018], 0
mov edx, dword [ebp - 0xc22c]
mov dword [esi], eax
mov eax, ebx
je 0x41f525
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x41f518
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 0x41eefd
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 0x41f590
cmp word [ebp - 0x4018], 0
jne 0x41f0ed
jmp 0x41f156
mov eax, dword [ebp - 0xc244]
mov dword [esp + 4], ebx
mov dword [esp], edi
test eax, eax
je 0x41f61e
mov eax, dword [ebp - 0xc23c]
call eax
sub esp, 8
test eax, eax
sete al
movzx eax, al
jmp 0x41f4fc
mov dword [esp + 4], 0x436508
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
jne 0x41f634
mov eax, dword [ebp - 0xc244]
mov dword [esp + 4], ebx
mov dword [esp], edi
test eax, eax
je 0x41f6d8
mov eax, dword [ebp - 0xc23c]
call eax
sub esp, 8
shr eax, 0x1f
jmp 0x41f4fc
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
sete al
movzx eax, al
jmp 0x41f4fc
mov dword [esp + 4], 0x436518
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
je 0x41f71d
mov dword [esp + 4], 0x436510
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
je 0x41f5b3
mov dword [esp + 4], 0x436520
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
je 0x41f7cc
mov dword [esp + 4], 0x436528
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
je 0x41f781
mov dword [esp + 4], 0x436530
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
je 0x41f75a
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
jmp 0x41f156
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
shr eax, 0x1f
jmp 0x41f4fc
mov dword [esp + 4], 0x436518
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
sub esp, 8
test eax, eax
jne 0x41f7f3
xor eax, eax
mov esi, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], esi
setle al
jmp 0x41f4fc
mov eax, dword [ebp - 0xc244]
mov dword [esp + 4], ebx
mov dword [esp], edi
test eax, eax
je 0x41f745
mov eax, dword [ebp - 0xc23c]
call eax
test eax, eax
push esi
setle al
push esi
movzx eax, al
jmp 0x41f4fc
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
push ecx
setle al
push ecx
movzx eax, al
jmp 0x41f4fc
cmp dword [ebp - 0xc244], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
je 0x41f7a5
mov eax, dword [ebp - 0xc23c]
call eax
test eax, eax
push edi
setg al
push edi
movzx eax, al
jmp 0x41f4fc
cmp dword [ebp - 0xc244], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
je 0x41f7ba
mov eax, dword [ebp - 0xc23c]
call eax
not eax
push ecx
shr eax, 0x1f
push ecx
jmp 0x41f4fc
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
push esi
setg al
push esi
movzx eax, al
jmp 0x41f4fc
call dword [sym.imp.kernel32.dll_lstrcmpW]
not eax
push edx
shr eax, 0x1f
push edx
jmp 0x41f4fc
cmp dword [ebp - 0xc244], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
je 0x41f822
mov eax, dword [ebp - 0xc23c]
call eax
test eax, eax
push edi
setne al
push edi
movzx eax, al
jmp 0x41f4fc
mov dword [esp + 4], 0x436510
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push edx
push edx
test eax, eax
jne 0x41f837
xor eax, eax
mov esi, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], esi
sete al
jmp 0x41f4fc
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
push esi
setne al
push esi
movzx eax, al
jmp 0x41f4fc
mov dword [esp + 4], 0x436520
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push ecx
push ecx
test eax, eax
jne 0x41f866
xor eax, eax
mov esi, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], esi
setne al
jmp 0x41f4fc
mov dword [esp + 4], 0x436528
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push ecx
push ecx
test eax, eax
jne 0x41f895
xor eax, eax
mov esi, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], esi
setge al
jmp 0x41f4fc
mov dword [esp + 4], 0x436530
mov eax, dword [ebp - 0xc23c]
mov dword [esp], esi
call eax
push ecx
push ecx
test eax, eax
jne 0x41f6c7
xor eax, eax
mov esi, dword [ebp - 0xc248]
cmp dword [ebp - 0xc240], esi
setg al
jmp 0x41f4fc