Function at 0x441ee0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x583384]
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 0x441f26
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00513512
mov esp, ebp
pop ebp
ret 0xc
push edi
push esi
call fcn.00528134
mov edi, eax
add esp, 4
test edi, edi
je 0x44211a
lea eax, [ebp - 0x80c]
push eax
push 0
push edi
call fcn.00401c40
add esp, 0xc
test eax, eax
jle 0x441f58
mov eax, dword [ebp - 0x80c]
mov esi, dword [eax]
push 0x2525
push esi
call fcn.00516960
add esp, 8
test eax, eax
lea eax, [ebp - 0x408]
je 0x441f7f
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x441f92
push 0x3ff
push esi
push eax
call fcn.00520370
add esp, 0xc
mov byte [ebp - 9], 0
lea eax, [ebp - 0x408]
push 0x400
push eax
push eax
call fcn.00405ce0
add esp, 0xc
test eax, eax
jns 0x4420b9
lea eax, [ebp - 0x408]
push 0x2e
push eax
call fcn.00516a90
mov esi, eax
add esp, 8
test esi, esi
je 0x441ff2
push str..exe
push esi
call fcn.0052b043
add esp, 8
test eax, eax
je 0x4420b9
push str..dll
push esi
call fcn.0052b043
add esp, 8
test eax, eax
je 0x4420b9
xor ecx, ecx
mov al, byte [ebp + ecx - 0x408]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x809], al
test al, al
jne 0x441ff4
lea ecx, [ebp - 0x408]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x442010
mov eax, dword [str..exe]
mov dword [ecx], eax
mov al, byte [0x5437e8]
mov byte [ecx + 4], al
lea eax, [ebp - 0x408]
push 0x400
push eax
push eax
call fcn.00405ce0
add esp, 0xc
test eax, eax
jns 0x4420b9
push 0x3fb
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00520370
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 0x442068
mov eax, dword [str..dll]
mov dword [ecx], eax
mov al, byte [0x54954c]
mov byte [ecx + 4], al
lea eax, [ebp - 0x408]
push 0x400
push eax
push eax
call fcn.00405ce0
add esp, 0xc
test eax, eax
jns 0x4420b9
push 0x3ff
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00520370
add esp, 0xc
mov byte [ebp - 9], 0
lea eax, [ebp - 0x408]
push 0x7e
push eax
call fcn.00516960
add esp, 8
test eax, eax
je 0x4420e1
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 0x4420f4
push eax
call fcn.00401c70
add esp, 4
push edi
call fcn.0051effe
lea ecx, [ebp - 0x408]
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442106
mov eax, dword [ebx]
sub ecx, edx
cmp ecx, eax
jb 0x44212f
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.00513512
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x408]
push ecx
push eax
push dword [ebp - 0x810]
call fcn.0043acc0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00513512
mov esp, ebp
pop ebp
ret 0xc