Function at 0x457de4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x10d4
call fcn.004740c0
mov eax, dword [0x47a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1050]
and dword [ebp - 0x1050], 0
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x106c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x1068], eax
mov eax, dword [ebp + 0x14]
push edi
push ecx
push 0
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x24]
call dword [0x47d4cc]
call dword [esi + 0x24]
mov edi, eax
test edi, edi
js 0x458326
mov esi, dword [ebp - 0x1050]
lea ecx, [ebp - 0x1054]
push ebx
call fcn.00457c5d
mov ecx, dword [esi]
push dword [eax]
push esi
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x47d4cc]
call esi
push dword [ebp - 0x1054]
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
js 0x458326
mov eax, dword [ebp - 0x1050]
lea edx, [ebp - 0x105c]
and dword [ebp - 0x105c], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x47d4cc]
call esi
mov edi, eax
test edi, edi
js 0x458305
mov eax, dword [ebp - 0x105c]
lea edx, [ebp - 0x1054]
and dword [ebp - 0x1054], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x47d4cc]
call esi
xor ebx, ebx
mov edi, eax
inc ebx
cmp dword [ebp - 0x1054], ebx
jl 0x458204
test edi, edi
js 0x458305
mov eax, dword [ebp - 0x105c]
lea ecx, [ebp - 0x104c]
and dword [ebp - 0x104c], 0
push ecx
push ebx
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x20]
call dword [0x47d4cc]
call dword [esi + 0x20]
mov edi, eax
test edi, edi
js 0x4581dd
mov eax, dword [ebp - 0x104c]
lea edx, [ebp - 0x1064]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x47d4cc]
call esi
mov edi, eax
test edi, edi
js 0x4581dd
xor ecx, ecx
mov dword [ebp - 0x1058], ecx
cmp dword [ebp - 0x1064], ecx
je 0x457f55
mov edi, 0x80041318
jmp 0x4581c2
mov eax, dword [ebp - 0x104c]
lea ecx, [ebp - 0x1058]
push ecx
push 0x414f40
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x47d4cc]
call dword [esi]
mov edi, eax
test edi, edi
js 0x4581bc
mov eax, dword [ebp - 0x1058]
lea edx, [ebp - 0x1060]
and dword [ebp - 0x1060], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x47d4cc]
call esi
mov edi, eax
test edi, edi
js 0x4581b0
push dword [ebp - 0x1060]
mov esi, 0x104
lea ecx, [ebp - 0x210]
mov edx, esi
call fcn.004248e3
mov edi, eax
test edi, edi
js 0x4581b0
push dword [ebp - 0x1060]
mov edx, esi
lea ecx, [ebp - 0x828]
call fcn.004248e3
mov edi, eax
test edi, edi
js 0x4581b0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x4581ab
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x410
lea eax, [ebp - 0x1048]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x410
lea eax, [ebp - 0xc38]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x620]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x30
lea eax, [ebp - 0x418]
push esi
push eax
push 0x409d38
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x458192
push esi
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x458192
push 0x414b58
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4580ce
push 0x409d4c
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x1048]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x4580d3
mov edi, 0x80004005
test edi, edi
js 0x4581b0
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x45810f
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x1048]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x45818b
lea eax, [ebp - 0x210]
push 0x408454
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4581b0
lea eax, [ebp - 0x210]
push 0x414b74
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4581b0
lea eax, [ebp - 0x210]
push 0x414b88
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4581b0
lea eax, [ebp - 0x210]
push 0x414bb4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4581b0
lea eax, [ebp - 0x210]
push 0x414bd4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4581b0
mov edi, 0x80041318
jmp 0x4581b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4581a9
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x4581b0
mov edi, 0x80004005
push dword [ebp - 0x1060]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x1058]
test ecx, ecx
je 0x4581dd
and dword [ebp - 0x1058], 0
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x47d4cc]
call esi
mov eax, dword [ebp - 0x104c]
test eax, eax
je 0x4581f7
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x47d4cc]
call esi
inc ebx
cmp ebx, dword [ebp - 0x1054]
jle 0x457ede
test edi, edi
js 0x458305
lea eax, [ebp - 0x10a0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea esi, [ebp - 0x10a0]
lea edi, [ebp - 0x10d0]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1080]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea esi, [ebp - 0x1080]
lea edi, [ebp - 0x10b0]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1090]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x1050]
lea esi, [ebp - 0x1090]
push dword [ebp - 0x1068]
lea edi, [ebp - 0x10c0]
mov dword [ebp - 0x1064], eax
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x104c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00457c5d
push 0
sub esp, 0x10
mov ecx, dword [ebp - 0x106c]
mov edi, esp
lea esi, [ebp - 0x10d0]
push 4
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov ebx, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x10b0]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x10c0]
push 6
push dword [ebp - 0x1064]
push dword [eax]
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [ebx + 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x47d4cc]
call dword [ebx + 0x44]
push dword [ebp - 0x104c]
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x1090]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x1080]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x10a0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x105c]
test ecx, ecx
je 0x458326
and dword [ebp - 0x105c], 0
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x47d4cc]
call esi
mov ecx, dword [ebp - 0x1050]
test ecx, ecx
je 0x458347
and dword [ebp - 0x1050], 0
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x47d4cc]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459020
mov esp, ebp
pop ebp
ret 0x10