Function at 0x442ea0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x58a710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], 0
test esi, esi
jne 0x442ee6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005193a0
mov esp, ebp
pop ebp
ret 0xc
push edi
push esi
call fcn.0052c3f0
mov edi, eax
add esp, 4
test edi, edi
je 0x4430da
lea eax, [ebp - 0x80c]
push eax
push 0
push edi
call fcn.00401bd0
add esp, 0xc
test eax, eax
jle 0x442f18
mov eax, dword [ebp - 0x80c]
mov esi, dword [eax]
push 0x2525
push esi
call fcn.0051c7d0
add esp, 8
test eax, eax
lea eax, [ebp - 0x408]
je 0x442f3f
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x442f52
push 0x3ff
push esi
push eax
call fcn.005262f0
add esp, 0xc
mov byte [ebp - 9], 0
lea eax, [ebp - 0x408]
push 0x400
push eax
push eax
call fcn.00404270
add esp, 0xc
test eax, eax
jns 0x443079
lea eax, [ebp - 0x408]
push 0x2e
push eax
call fcn.0051c900
mov esi, eax
add esp, 8
test esi, esi
je 0x442fb2
push str..exe
push esi
call fcn.00531202
add esp, 8
test eax, eax
je 0x443079
push str..dll
push esi
call fcn.00531202
add esp, 8
test eax, eax
je 0x443079
xor ecx, ecx
mov al, byte [ebp + ecx - 0x408]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x809], al
test al, al
jne 0x442fb4
lea ecx, [ebp - 0x408]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x442fd0
mov eax, dword [str..exe]
mov dword [ecx], eax
mov al, byte [0x54a808]
mov byte [ecx + 4], al
lea eax, [ebp - 0x408]
push 0x400
push eax
push eax
call fcn.00404270
add esp, 0xc
test eax, eax
jns 0x443079
push 0x3fb
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.005262f0
lea ecx, [ebp - 0x408]
mov byte [ebp - 0xd], 0
add esp, 0xc
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x443028
mov eax, dword [str..dll]
mov dword [ecx], eax
mov al, byte [0x55000c]
mov byte [ecx + 4], al
lea eax, [ebp - 0x408]
push 0x400
push eax
push eax
call fcn.00404270
add esp, 0xc
test eax, eax
jns 0x443079
push 0x3ff
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.005262f0
add esp, 0xc
mov byte [ebp - 9], 0
lea eax, [ebp - 0x408]
push 0x7e
push eax
call fcn.0051c7d0
add esp, 8
test eax, eax
je 0x4430a1
push 0x400
lea eax, [ebp - 0x408]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
mov eax, dword [ebp - 0x80c]
test eax, eax
je 0x4430b4
push eax
call fcn.00401c00
add esp, 4
push edi
call fcn.00524eae
lea ecx, [ebp - 0x408]
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4430c6
mov eax, dword [ebx]
sub ecx, edx
cmp ecx, eax
jb 0x4430ef
lea eax, [ecx + 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005193a0
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x408]
push ecx
push eax
push dword [ebp - 0x810]
call fcn.0043a320
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.005193a0
mov esp, ebp
pop ebp
ret 0xc