Function at 0x20464370
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x20480350
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x204a31e0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x204a31e0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x240]
mov esi, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], esi
mov ebx, 0x104
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x238], 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x238], 1
mov eax, dword [0x204a55cc]
cmp byte [eax + 0x3d78], 0
je 0x20464400
push ebp
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
jmp 0x20464776
push 0x104
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push 0x104
mov edi, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
cmp esi, 0x104
jb 0x20464431
mov word [edi + 0x206], 0
test esi, esi
je 0x20464497
cmp esi, 0x104
mov ecx, edi
jb 0x20464454
push 1
push 0x104
call fcn.2043bde0
add esp, 8
cmp eax, esi
ja 0x20464463
jmp 0x20464465
push 0
push 0x104
call fcn.2043bde0
add esp, 8
mov esi, eax
cmp esi, 0x104
jbe 0x20464497
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
mov ebx, eax
mov eax, ebp
call fcn.2043c3a0
mov ebx, dword [esp + 0x18]
mov esi, eax
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
test esi, esi
je 0x204644ab
cmp esi, ebx
jbe 0x204644b6
push ebp
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 0x104
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push eax
call edi
mov ebp, dword [sym.imp.MSVCR80.dll_wcsncmp]
mov esi, eax
test esi, esi
jne 0x2046457e
push 4
push str.__
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
push eax
call ebp
add esp, 0xc
test eax, eax
je 0x20464586
push str.system
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x20464586
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x238], 2
push str.__
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
push 0x104
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
push eax
call edi
mov esi, eax
mov byte [esp + 0x238], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
test esi, esi
je 0x20464586
cmp esi, 0x104
jbe 0x204645e5
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x20464595
sub ecx, esi
sar ecx, 1
cmp ecx, 0x104
jae 0x204645c2
push eax
lea ecx, [esp + 0x28]
push 0x104
push ecx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
jmp 0x204645e5
push 0x103
push eax
lea edx, [esp + 0x2c]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
mov word [esp + 0x22a], 0
lea eax, [esp + 0x24]
push 0x20492488
push eax
call dword [sym.imp.MSVCR80.dll_wcsstr]
add esp, 8
test eax, eax
je 0x20464628
lea ecx, [esp + 0x24]
cmp eax, ecx
jbe 0x20464628
lea edx, [esp + 0x434]
cmp eax, edx
jae 0x20464628
movzx ecx, word [eax - 2]
sub eax, 2
cmp cx, 0x61
jb 0x20464628
cmp cx, 0x7a
ja 0x20464628
add ecx, 0xffffffe0
mov word [eax], cx
mov ebx, 0x104
push ebx
push ebx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
mov edi, dword [0x204a30c4]
push eax
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
test esi, esi
jne 0x20464724
push 4
push str.__
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
push eax
call ebp
add esp, 0xc
test eax, eax
je 0x2046474c
push str.system
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x2046474c
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x238], 3
push esi
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push str.__
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
push ebx
push ebx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
push eax
call edi
mov esi, eax
cmp esi, ebx
jbe 0x20464710
push 0
lea ecx, [esp + 0x20]
mov ebx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push esi
push esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
lea edx, [esp + 0x2c]
push edx
call edi
mov esi, eax
mov byte [esp + 0x238], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x2046474c
cmp esi, ebx
jbe 0x2046474c
push 0
lea ecx, [esp + 0x20]
mov ebx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push esi
push esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
test esi, esi
je 0x20464767
cmp esi, ebx
ja 0x20464767
lea ecx, [esp + 0x1c]
push ecx
jmp 0x2046476c
lea edx, [esp + 0x14]
push edx
mov ecx, dword [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
mov byte [esp + 0x238], 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov dword [esp + 0x238], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.20478952
add esp, 0x228
ret