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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca90b
mov eax, dword fs:[0]
push eax
mov eax, 0x1434
call fcn.0055b970
mov eax, dword [0x6385e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1438], ecx
mov ecx, dword [ebp + 8]
call fcn.00404b70
test eax, eax
jne 0x4a1e06
jmp 0x4a200e
push 0x5feb54
mov ecx, dword [ebp + 8]
call fcn.004b6880
movzx eax, al
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4a1e5d
push 1
push 0x5feb54
mov ecx, dword [ebp + 8]
call fcn.004b5060
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4a1e5b
mov ecx, dword [ebp + 8]
call fcn.00404b70
sub eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004b5a90
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004b5a90
jmp 0x4a1e7d
push 0x604bf0
mov ecx, dword [ebp + 8]
call fcn.004b6880
movzx edx, al
test edx, edx
je 0x4a1e7d
push 4
push 0
mov ecx, dword [ebp + 8]
call fcn.004b5a90
push 0
push str.system32_
mov ecx, dword [ebp + 8]
call fcn.004b68a0
movzx eax, al
test eax, eax
je 0x4a1ecb
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4a1ec6
push 8
push 0
mov ecx, dword [ebp + 8]
call fcn.004b5a90
lea edx, [ebp - 0x21c]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.004b54e0
jmp 0x4a1f52
push 0
push str.SystemRoot_
mov ecx, dword [ebp + 8]
call fcn.004b68a0
movzx eax, al
test eax, eax
je 0x4a1f16
push 0x104
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4a1f14
push 0xb
push 0
mov ecx, dword [ebp + 8]
call fcn.004b5a90
lea edx, [ebp - 0x424]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.004b54e0
jmp 0x4a1f52
push 0
mov ecx, dword [ebp + 8]
call fcn.004b3df0
movzx eax, ax
cmp eax, 0x25
jne 0x4a1f52
push 0x400
lea ecx, [ebp - 0xc24]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004553f0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0xc24]
push edx
mov ecx, dword [ebp + 8]
call fcn.004b38f0
push 2
push 1
lea eax, [ebp - 0x1434]
push eax
mov ecx, dword [ebp + 8]
call fcn.004b6620
mov dword [ebp - 0x143c], eax
mov ecx, dword [ebp - 0x143c]
mov dword [ebp - 0x1440], ecx
mov dword [ebp - 4], 0
push 0x605aa8
mov ecx, dword [ebp - 0x1440]
call fcn.004b4b00
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x1425], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1434]
call fcn.004b3860
movzx eax, byte [ebp - 0x1425]
test eax, eax
je 0x4a1fcc
mov ecx, dword [0x63e870]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004b38f0
jmp 0x4a200e
push 0x604560
mov ecx, dword [ebp + 8]
call fcn.004b45e0
movzx edx, al
test edx, edx
je 0x4a200e
push 0x400
lea eax, [ebp - 0x1424]
push eax
mov ecx, dword [ebp + 8]
call fcn.004553f0
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4a200e
lea ecx, [ebp - 0x1424]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004b38f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret 4