Function at 0x455b85
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc4
mov eax, dword [0x477008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc40]
and dword [ebp - 0xc40], 0
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc58], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xc5c], 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 [0x47a4c4]
call dword [esi + 0x24]
mov edi, eax
test edi, edi
js 0x45605d
mov esi, dword [ebp - 0xc40]
lea ecx, [ebp - 0xc44]
push ebx
call fcn.004559fd
mov ecx, dword [esi]
push dword [eax]
push esi
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x47a4c4]
call esi
push dword [ebp - 0xc44]
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
js 0x45605d
mov eax, dword [ebp - 0xc40]
lea edx, [ebp - 0xc4c]
and dword [ebp - 0xc4c], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x47a4c4]
call esi
mov edi, eax
test edi, edi
js 0x45603c
mov eax, dword [ebp - 0xc4c]
lea edx, [ebp - 0xc44]
and dword [ebp - 0xc44], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x47a4c4]
call esi
xor ebx, ebx
mov edi, eax
inc ebx
cmp dword [ebp - 0xc44], ebx
jl 0x455f3b
test edi, edi
js 0x45603c
mov eax, dword [ebp - 0xc4c]
lea ecx, [ebp - 0xc3c]
and dword [ebp - 0xc3c], 0
push ecx
push ebx
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x20]
call dword [0x47a4c4]
call dword [esi + 0x20]
mov edi, eax
test edi, edi
js 0x455f14
mov eax, dword [ebp - 0xc3c]
lea edx, [ebp - 0xc54]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x47a4c4]
call esi
mov edi, eax
test edi, edi
js 0x455f14
xor ecx, ecx
mov dword [ebp - 0xc48], ecx
cmp dword [ebp - 0xc54], ecx
je 0x455cf2
mov edi, 0x80041318
jmp 0x455ef9
mov eax, dword [ebp - 0xc3c]
lea ecx, [ebp - 0xc48]
push ecx
push 0x414a18
push eax
mov esi, dword [eax]
mov ecx, dword [esi]
call dword [0x47a4c4]
call dword [esi]
mov edi, eax
test edi, edi
js 0x455ef3
mov eax, dword [ebp - 0xc48]
lea edx, [ebp - 0xc50]
and dword [ebp - 0xc50], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x47a4c4]
call esi
mov edi, eax
test edi, edi
js 0x455ee7
push dword [ebp - 0xc50]
mov esi, 0x104
lea ecx, [ebp - 0x210]
mov edx, esi
call fcn.00422d13
mov edi, eax
test edi, edi
js 0x455ee7
push dword [ebp - 0xc50]
mov edx, esi
lea ecx, [ebp - 0x828]
call fcn.00422d13
mov edi, eax
test edi, edi
js 0x455ee7
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 0x455ee2
push 0x208
lea eax, [ebp - 0x620]
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 - 0x418]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
lea eax, [ebp - 0x620]
push esi
push eax
push 0x409978
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x455ec9
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x455ec9
push 0x40998c
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x455e40
mov edi, 0x80004005
test edi, edi
js 0x455ee7
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x455ec2
lea eax, [ebp - 0x210]
push 0x4080f0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x455ee7
lea eax, [ebp - 0x210]
push 0x414668
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x455ee7
lea eax, [ebp - 0x210]
push 0x41467c
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x455ee7
lea eax, [ebp - 0x210]
push 0x4146a8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x455ee7
mov edi, 0x80041318
jmp 0x455ee7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x455ee0
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x455ee7
mov edi, 0x80004005
push dword [ebp - 0xc50]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc48]
test ecx, ecx
je 0x455f14
and dword [ebp - 0xc48], 0
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x47a4c4]
call esi
mov eax, dword [ebp - 0xc3c]
test eax, eax
je 0x455f2e
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x47a4c4]
call esi
inc ebx
cmp ebx, dword [ebp - 0xc44]
jle 0x455c7b
test edi, edi
js 0x45603c
lea eax, [ebp - 0xc90]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea esi, [ebp - 0xc90]
lea edi, [ebp - 0xca0]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc80]
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 - 0xc80]
lea edi, [ebp - 0xcb0]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc70]
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 - 0xc40]
lea esi, [ebp - 0xc70]
push dword [ebp - 0xc5c]
lea edi, [ebp - 0xcc0]
mov dword [ebp - 0xc54], eax
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xc3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004559fd
push 0
sub esp, 0x10
mov ecx, dword [ebp - 0xc58]
mov edi, esp
lea esi, [ebp - 0xca0]
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 - 0xcb0]
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 - 0xcc0]
push 6
push dword [ebp - 0xc54]
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 [0x47a4c4]
call dword [ebx + 0x44]
push dword [ebp - 0xc3c]
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0xc70]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0xc80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0xc90]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xc4c]
test ecx, ecx
je 0x45605d
and dword [ebp - 0xc4c], 0
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x47a4c4]
call esi
mov ecx, dword [ebp - 0xc40]
test ecx, ecx
je 0x45607e
and dword [ebp - 0xc40], 0
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x47a4c4]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00456cf0
mov esp, ebp
pop ebp
ret 0x10