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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d97e5
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x4b7ebb
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
mov dword [ebp - 0x20], 0x420aac
mov dword [ebp - 0x1c], 0x420ab4
mov dword [ebp - 0x18], 0x420ac0
mov dword [ebp - 0x14], 0x420adc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], esi
push 0
push 0
push dword [ebp + esi*4 - 0x20]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
je 0x4b7f93
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005bc505
mov esi, eax
add esp, 4
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x54]
push edi
push esi
mov byte [ebp - 4], 1
push dword [ebp + eax*4 - 0x20]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4b7f8a
mov ecx, esi
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b7f60
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.0049d9d0
push esi
call fcn.005bc50e
mov esi, dword [ebp - 0x40]
add esp, 4
mov eax, dword [ebp - 0x3c]
jmp 0x4b7fa6
push esi
call fcn.005bc50e
add esp, 4
xor esi, esi
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x50], cx
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 2
mov dword [ebp - 0x68], ecx
test esi, esi
je 0x4b8129
cmp eax, 8
lea edx, [ebp - 0x50]
cmovae edx, ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x58], ecx
cmp esi, ecx
ja 0x4b7ff3
cmp ecx, 8
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x38]
cmovae edi, dword [ebp - 0x38]
add esi, esi
push esi
push edx
push edi
call fcn.005be280
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4b8075
cmp esi, 0x7ffffffe
ja 0x4b832c
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4b8013
mov edi, bind
jmp 0x4b8031
mov edx, ecx
mov eax, bind
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4b8029
mov edi, bind
jmp 0x4b8031
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.0045ff80
mov dword [ebp - 0x28], esi
add esi, esi
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x24], edi
mov edi, eax
push edi
mov dword [ebp - 0x78], eax
call fcn.005be280
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x4b8072
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00459da0
mov dword [ebp - 0x38], edi
mov esi, dword [ebp - 0x54]
cmp esi, 2
jb 0x4b808a
push 0x420af4
lea ecx, [ebp - 0x38]
call fcn.004b3d50
lea eax, [ebp - 0x64]
mov dword [ebp - 0x5c], 0
push eax
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x80]
movq qword [ebp - 0x64], xmm0
push eax
call fcn.004b7cb0
mov eax, dword [ebp - 0x80]
add esp, 0xc
test eax, eax
je 0x4b810d
cmp eax, 1
je 0x4b810d
cmp dword [ebp - 0x5c], 1
jne 0x4b80c8
cmp dword [ebp - 0x64], 0
setne al
jmp 0x4b80cd
mov al, byte [ebp - 0x5c]
and al, 1
test al, al
jne 0x4b810d
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004b7cb0
add esp, 0xc
cmp dword [ebp - 0x88], 3
jne 0x4b810d
cmp dword [ebp - 0x5c], 1
jne 0x4b8100
cmp dword [ebp - 0x64], 0
setne al
jmp 0x4b8105
mov al, byte [ebp - 0x5c]
and al, 1
test al, al
je 0x4b81fc
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], 0
cmovae eax, dword [ebp - 0x38]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x68]
jmp 0x4b812c
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4b816f
lea edx, [eax*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 4
cmp edx, 0x1000
jb 0x4b8161
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8331
push edx
push ecx
call fcn.005bc4f7
add esp, 8
mov byte [ebp - 4], 0
inc esi
mov dword [ebp - 0x54], esi
cmp esi, 4
jb 0x4b7ef3
cmp dword [ebp - 0x28], 0
jne 0x4b827f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, eax
test edi, edi
je 0x4b81d4
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005bc505
mov esi, eax
add esp, 4
mov dword [ebp - 0x58], esi
push edi
push esi
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4b824b
push esi
mov byte [ebp - 4], al
call fcn.005bc50e
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x6c]
test eax, eax
jne 0x4b82bc
test ecx, ecx
je 0x4b82cb
xorps xmm0, xmm0
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
jmp 0x4b82cb
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x4b817c
mov ecx, dword [ebp - 0x68]
lea edx, [eax*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x4b8238
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8331
push edx
push ecx
call fcn.005bc4f7
add esp, 8
mov byte [ebp - 4], 0
jmp 0x4b817c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b8250
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.0049d9d0
push 0x420af4
lea ecx, [ebp - 0x38]
call fcn.004b3d50
push esi
call fcn.005bc50e
add esp, 4
mov eax, dword [ebp - 0x70]
movups xmm0, xmmword [ebp - 0x38]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bca10
mov esp, ebp
pop ebp
ret
push 0x420b00
push ecx
push eax
call fcn.004b8f80
add esp, 0xc
mov esi, dword [ebp - 0x70]
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x4b8325
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 5
cmp edx, 0x1000
jb 0x4b831b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8331
push edx
push ecx
call fcn.005bc4f7
add esp, 8
mov eax, esi
jmp 0x4b82a1
call fcn.004595c0
call fcn.004d7f94
int3