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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4d5c44
push ecx
push ebx
xor eax, eax
push ebp
push 0x4d5fa2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
call fcn.004b3668
lea eax, [ebp - 0x40]
call fcn.004b37f8
push 0
push 1
push 0
push 0
mov eax, dword [0x4f3a40]
call fcn.004b7454
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 8]
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.004253f8
lea eax, [ebp - 4]
mov edx, 0x1000
call fcn.00409388
push 0x7d0
mov eax, dword [ebp - 4]
call fcn.00409210
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
lea edx, [ebp - 4]
xchg edx, eax
call fcn.00409388
mov eax, dword [ebp - 4]
call fcn.004ba344
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.004253f8
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.004b9d08
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 8]
mov ecx, dword [0x4031b8]
call fcn.0040b308
lea eax, [ebp - 4]
mov edx, 0x1000
call fcn.00409388
push 0x7d0
mov eax, dword [ebp - 4]
call fcn.00409210
push eax
push 0
push 0x31f
push 0
push 0x20
lea edx, [ebp - 0x4c]
mov eax, dword [0x4f3a40]
call fcn.004b756c
mov eax, dword [ebp - 0x4c]
call fcn.00409210
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
lea edx, [ebp - 4]
xchg edx, eax
call fcn.00409388
mov eax, dword [ebp - 4]
call fcn.004ba344
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x54]
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.004253f8
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 8]
call fcn.004b9d08
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 8]
mov ecx, dword [0x4031b8]
call fcn.0040b308
lea eax, [ebp - 4]
mov edx, 0x1000
call fcn.00409388
push 0x7d0
mov eax, dword [ebp - 4]
call fcn.00409210
push eax
push 0
push 0x31f
push 0
push 0x21
lea edx, [ebp - 0x58]
mov eax, dword [0x4f3a40]
call fcn.004b756c
mov eax, dword [ebp - 0x58]
call fcn.00409210
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
lea edx, [ebp - 4]
xchg edx, eax
call fcn.00409388
mov eax, dword [ebp - 4]
call fcn.004ba344
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.004253f8
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 8]
call fcn.004b9d08
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 8]
mov ecx, dword [0x4031b8]
call fcn.0040b308
lea eax, [ebp - 4]
mov edx, 0x1000
call fcn.00409388
push 0x7d0
mov eax, dword [ebp - 4]
call fcn.00409210
push eax
push 0
push 0x31f
push 0
push 0x22
lea edx, [ebp - 0x64]
mov eax, dword [0x4f3a40]
call fcn.004b756c
mov eax, dword [ebp - 0x64]
call fcn.00409210
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
lea edx, [ebp - 4]
xchg edx, eax
call fcn.00409388
mov eax, dword [ebp - 4]
call fcn.004ba344
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x18]
mov edx, 8
call fcn.004253f8
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 8]
call fcn.004b9d08
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 8]
mov ecx, dword [0x4031b8]
call fcn.0040b308
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4d5e9a
sub ebx, 4
mov ebx, dword [ebx]
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b9f2c
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4d5eb3
sub ebx, 4
mov ebx, dword [ebx]
push dword [0x4f3a4c]
push dword [0x4f3a48]
push 0
push 3
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.004ba098
push edx
push eax
call fcn.004d5578
push edx
push eax
mov eax, dword [0x4f3a40]
call fcn.004b7810
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x40]
call fcn.004b367c
lea eax, [ebp - 0x28]
call fcn.004b3508
fld dword [0x4d5fb4]
fucompp
wait
fnstsw ax
sahf
jae 0x4d5f15
mov eax, 0x7fffffff
call fcn.00405934
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5fac
lea eax, [ebp - 0x6c]
mov edx, dword [0x4031b8]
mov ecx, 2
call fcn.00409d34
lea eax, [ebp - 0x64]
call fcn.004086d0
lea eax, [ebp - 0x60]
mov edx, dword [0x4031b8]
mov ecx, 2
call fcn.00409d34
lea eax, [ebp - 0x58]
call fcn.004086d0
lea eax, [ebp - 0x54]
mov edx, dword [0x4031b8]
mov ecx, 2
call fcn.00409d34
lea eax, [ebp - 0x4c]
call fcn.004086d0
lea eax, [ebp - 0x48]
mov edx, dword [0x4031b8]
mov ecx, 2
call fcn.00409d34
lea eax, [ebp - 0xc]
mov edx, dword [0x4031b8]
mov ecx, 2
call fcn.00409d34
lea eax, [ebp - 4]
call fcn.004086d0
ret