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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dad51
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x50f52c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x438]
push eax
push str.name
push ebx
call fcn.00457300
mov edx, dword [ebp - 0x430]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x424], ecx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45a7f0
sub eax, dword [ebp - 0x424]
lea ecx, [esi + 0x34]
sar eax, 1
push eax
push edx
call fcn.00401860
lea edx, [ebp - 0x438]
push edx
push str.path
push ebx
mov ecx, edi
call fcn.00457300
mov edx, dword [ebp - 0x430]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x424], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45a832
sub eax, dword [ebp - 0x424]
lea ecx, [esi + 0x18]
sar eax, 1
push eax
push edx
mov dword [ebp - 0x448], ecx
call fcn.00401860
lea eax, [esi + 0x50]
push eax
push str.arch64
push ebx
mov ecx, edi
mov dword [ebp - 0x424], eax
call fcn.00459370
push esi
push str.version
push ebx
mov ecx, edi
call fcn.00457640
lea edx, [ebp - 0x438]
push edx
push 0x4ebcb0
push ebx
mov ecx, edi
call fcn.00457300
mov ecx, dword [ebp - 0x430]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x428], edx
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x45a8a0
sub eax, dword [ebp - 0x428]
sar eax, 1
push eax
push ecx
lea ecx, [esi + 0x54]
call fcn.00401860
lea eax, [ebp - 0x438]
push eax
push 0x4ebca8
push ebx
mov ecx, edi
call fcn.00457300
mov edx, dword [ebp - 0x430]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x428], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45a8e2
sub eax, dword [ebp - 0x428]
lea ecx, [esi + 0x70]
sar eax, 1
push eax
push edx
call fcn.00401860
lea edx, [esi + 0x8c]
push edx
push str.size
push ebx
mov ecx, edi
call fcn.0045a300
lea eax, [esi + 0x94]
push eax
push str.shared
push ebx
mov ecx, edi
call fcn.00459370
add esi, 0x98
push esi
push str.system
push ebx
mov ecx, edi
call fcn.00459370
mov ecx, dword [ebp - 0x424]
xor edi, edi
cmp dword [ecx], edi
je 0x45a94c
call fcn.00427480
push 0x206
lea eax, [ebp - 0x41e]
xor edx, edx
push edi
push eax
mov word [ebp - 0x420], dx
call fcn.004b32f0
mov esi, dword [ebp - 0x448]
mov ebx, 8
add esp, 0xc
cmp dword [esi + 0x18], ebx
jb 0x45a97f
mov eax, dword [esi + 4]
jmp 0x45a982
lea eax, [esi + 4]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45a9a0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x420]
push edx
mov ecx, esi
call fcn.00401860
cmp dword [esi + 0x18], ebx
jb 0x45a9c8
mov eax, dword [esi + 4]
jmp 0x45a9cb
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
mov ebx, 1
test eax, eax
je 0x45ab33
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x218], ax
call fcn.004b32f0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x440], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45aa31
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x444]
call fcn.00401860
mov dword [ebp - 4], edi
push 0x4e3448
lea edx, [ebp - 0x444]
push edx
lea eax, [ebp - 0x464]
push eax
call fcn.00401b00
mov byte [ebp - 4], bl
push esi
push eax
lea ecx, [ebp - 0x480]
push ecx
call fcn.0040a680
add esp, 0x18
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push edi
push eax
mov ecx, esi
call fcn.00401750
mov byte [ebp - 4], bl
mov esi, 8
cmp dword [ebp - 0x468], esi
jb 0x45aab0
mov edx, dword [ebp - 0x47c]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x468], 7
mov dword [ebp - 0x46c], edi
mov word [ebp - 0x47c], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x44c], esi
jb 0x45aae3
mov ecx, dword [ebp - 0x460]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x44c], 7
mov dword [ebp - 0x450], edi
mov word [ebp - 0x460], dx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x42c], esi
jb 0x45ab1a
mov eax, dword [ebp - 0x440]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], edi
mov word [ebp - 0x440], cx
mov edx, dword [ebp - 0x424]
cmp dword [edx], edi
je 0x45ab42
call fcn.004260e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret 8