Function at 0x44f638
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0xc0
mov eax, 0x49e76a
call fcn.00459b85
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa1]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x70]
and dword [ebp - 0xa8], 0
push 1
push eax
call fcn.004060a0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x70]
mov dword [ebp - 0xc8], eax
mov ecx, 0x104
xor eax, eax
mov byte [ebp - 0xc4], al
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0x5c], ecx
jae 0x44f699
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00408100
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xa8], 1
mov byte [ebp - 0xc4], 1
call fcn.00407930
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
inc eax
mov dword [ebp - 0xa8], eax
and eax, 0xfffffffe
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.00405f90
cmp dword [ebp - 0x5c], 0
mov dword [ebp - 0xcc], 0x30
je 0x44f71f
push ebx
lea ecx, [ebp - 0x70]
call fcn.004249dd
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x70]
cmp eax, dword [esi + 8]
je 0x44f716
push 1
push ecx
mov ecx, eax
call fcn.004077f0
push 0x30
pop eax
add dword [esi + 4], eax
jmp 0x44f71f
push ecx
push eax
mov ecx, esi
call fcn.0042a0e7
push 0
lea eax, [ebp - 0xa1]
mov dword [ebp - 0x40], 0x4b6748
push eax
push str.PATH
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4b6750
call fcn.00407aa0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xa0]
mov ecx, edi
push eax
call fcn.0044e9f4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00404cc0
xor ecx, ecx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 7
lea eax, [ebp - 0xb8]
push 1
push eax
push ecx
push 0x3b
lea ecx, [ebp - 0xa0]
call fcn.0042a6f6
mov eax, dword [ebp - 0xb4]
xor edx, edx
mov ecx, dword [ebp - 0xb8]
sub eax, ecx
mov dword [ebp - 0xac], edx
push 0x30
cdq
pop edi
idiv edi
test eax, eax
je 0x44f8be
xor edi, edi
lea eax, [ecx + 4]
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x44f7c7
mov eax, dword [eax]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0x40]
push 0
lea eax, [ebp - 0xa1]
mov dword [ebp - 0x40], 0x4b6748
push eax
mov dword [ebp - 0x18], 0x4b6750
call fcn.004060a0
mov byte [ebp - 4], 9
lea eax, [ebp - 0xc8]
push dword [ebp - 0xbc]
lea ecx, [ebp - 0x40]
push eax
call fcn.00406a60
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407930
mov ecx, dword [eax]
mov eax, dword [ebp - 0xb8]
add eax, 4
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x44f834
mov eax, dword [eax]
push dword [ebp - 0xbc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc8]
call fcn.00405f90
cmp dword [ebp - 0x2c], 0
je 0x44f886
push ebx
lea ecx, [ebp - 0x40]
call fcn.004249dd
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x40]
cmp eax, dword [esi + 8]
je 0x44f87d
push 1
push ecx
mov ecx, eax
call fcn.004077f0
push 0x30
pop eax
add dword [esi + 4], eax
jmp 0x44f886
push ecx
push eax
mov ecx, esi
call fcn.0042a0e7
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.00404cc0
mov ecx, dword [ebp - 0xb8]
push 0x30
pop eax
add edi, eax
inc dword [ebp - 0xac]
mov eax, dword [ebp - 0xb4]
sub eax, ecx
cdq
idiv dword [ebp - 0xcc]
cmp dword [ebp - 0xac], eax
jb 0x44f7ba
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb8]
call fcn.0041520f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00404cc0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404cc0
call fcn.00459b34
ret 8