Function at 0x4b8b70
Capabilities:
Check if file exists
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x565907
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x5b38f0]
xor eax, esp
mov dword [esp + 0x540], eax
push ebx
push esi
push edi
mov eax, dword [0x5b38f0]
xor eax, esp
push eax
lea eax, [esp + 0x558]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], 0
cmp edx, 0x14
ja 0x4b9506
lea eax, [edx + edx*2]
lea ebx, [ecx + eax*8]
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x4b8bf4
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push ebx
mov word [esi], ax
call fcn.0040757d
jmp 0x4b9526
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x560], 0
cmp edx, 0x14
ja case.default.0x4b8c1d
jmp dword [edx*4 + 0x4b9550]
test edi, edi
setne al
movzx eax, al
push eax
lea eax, [esp + 0x128]
push eax
call fcn.004b8480
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffac
cmp dword [esp + 0x138], 8
jb 0x4b945b
push dword [esp + 0x124]
call fcn.0052558c
add esp, 4
jmp 0x4b945b
push 0
push 0
lea eax, [esp + 0xcc]
push eax
call fcn.004b8b70
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffac
cmp dword [esp + 0xd8], 8
jb 0x4b8c9a
push dword [esp + 0xc4]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], 0
mov word [esp + 0xc4], ax
cmp dword [esp + 0x2c], eax
je case.default.0x4b8c1d
push 1
push 0x581774
lea ecx, [esp + 0x24]
call fcn.004090e2
lea eax, [esp + 0x10c]
push eax
call fcn.004ae080
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x56c], 1
call fcn.00409227
mov byte [esp + 0x560], 0
cmp dword [esp + 0x120], 8
jb 0x4b945b
push dword [esp + 0x10c]
call fcn.0052558c
add esp, 4
jmp 0x4b945b
push str.InstallDir
lea ecx, [esp + 0xf8]
call fcn.00408718
sub esp, 0x18
mov byte [esp + 0x578], 2
mov ecx, esp
push 0x581738
call fcn.00408718
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x110]
push eax
push 2
call fcn.004ba950
add esp, 0x24
mov byte [esp + 0x560], 0
cmp dword [esp + 0x108], 8
jb 0x4b945b
push dword [esp + 0xf4]
call fcn.0052558c
add esp, 4
jmp 0x4b945b
push edi
push 2
lea eax, [esp + 0xe4]
push eax
call fcn.004b8b70
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffac
cmp dword [esp + 0xf0], 8
jb 0x4b8dc0
push dword [esp + 0xdc]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], 0
mov word [esp + 0xdc], ax
cmp dword [esp + 0x2c], eax
je case.default.0x4b8c1d
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
push str.Version
lea ecx, [esp + 0x38]
mov byte [esp + 0x564], 3
call fcn.00408718
sub esp, 0x18
mov byte [esp + 0x578], 4
mov ecx, esp
push 0x581738
call fcn.00408718
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x50]
push eax
push 2
call fcn.004ba950
add esp, 0x24
mov byte [esp + 0x560], 3
cmp dword [esp + 0x48], 8
jb 0x4b8e57
push dword [esp + 0x34]
call fcn.0052558c
add esp, 4
push 1
xor eax, eax
mov dword [esp + 0x4c], 7
push 0x581774
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
call fcn.004090e2
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
call fcn.00409227
mov byte [esp + 0x560], 0
cmp dword [esp + 0x60], 8
jb 0x4b945b
push dword [esp + 0x4c]
call fcn.0052558c
add esp, 4
jmp 0x4b945b
xor eax, eax
push 0x206
push eax
mov word [esp + 0x144], ax
lea eax, [esp + 0x146]
push eax
call fcn.005278d0
add esp, 0xc
lea eax, [esp + 0x13c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4b945b
xor eax, eax
push 0x206
push eax
mov word [esp + 0x34c], ax
lea eax, [esp + 0x34e]
push eax
call fcn.005278d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.14ab_x
lea eax, [esp + 0x34c]
push 0x104
push eax
call fcn.00526652
lea eax, [esp + 0x354]
push eax
lea eax, [esp + 0x150]
push 0x104
push eax
call fcn.0052cbad
add esp, 0x1c
cmp word [esp + 0x13c], 0
jne 0x4b8f6e
xor ecx, ecx
lea eax, [esp + 0x13c]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00408659
jmp 0x4b945b
lea ecx, [esp + 0x13c]
lea edx, [ecx + 2]
jmp 0x4b8f80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b8f80
jmp 0x4b93db
push edi
push 4
lea eax, [esp + 0x6c]
push eax
call fcn.004b8b70
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffac
cmp dword [esp + 0x78], 8
jb 0x4b8fba
push dword [esp + 0x64]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
cmp dword [esp + 0x2c], eax
je case.default.0x4b8c1d
push 4
push str.Bin
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
push edi
push 4
lea eax, [esp + 0x9c]
push eax
call fcn.004b8b70
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffac
cmp dword [esp + 0xa8], 8
jb 0x4b9023
push dword [esp + 0x94]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
cmp dword [esp + 0x2c], eax
je case.default.0x4b8c1d
push 8
push str.AppData
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
push edi
push 4
lea eax, [esp + 0xb4]
push eax
call fcn.004b8b70
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffac
cmp dword [esp + 0xc0], 8
jb 0x4b9095
push dword [esp + 0xac]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], ax
cmp dword [esp + 0x2c], eax
je case.default.0x4b8c1d
push 6
push str.Union
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b945b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004b83e0
test eax, eax
je 0x4b945b
push 0x12
push 0x5893a4
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b945b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004b83e0
test eax, eax
je 0x4b945b
push 0x12
push 0x5893a4
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
push edi
push 9
lea eax, [esp + 0x84]
push eax
call fcn.004b8b70
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffac
cmp dword [esp + 0x90], 8
jb 0x4b9198
push dword [esp + 0x7c]
call fcn.0052558c
add esp, 4
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
cmp dword [esp + 0x2c], eax
je case.default.0x4b8c1d
push 0x16
push str.User_DataLiveupTemp
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
lea eax, [esp + 0x14]
push eax
push 0
jmp 0x4b9439
lea eax, [esp + 0x14]
push eax
push 0x19
jmp 0x4b9439
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b945b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004b83e0
test eax, eax
je 0x4b945b
push 0x3f
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedStartMenu
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b945b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004b83e0
test eax, eax
je 0x4b945b
push 0xb
push 0x589354
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b945b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004b83e0
test eax, eax
je 0x4b945b
push 0xb
push 0x589354
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b945b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004b83e0
test eax, eax
je 0x4b945b
push 0x29
push str.MicrosoftInternet_ExplorerQuick_Launch
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b945b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004b83e0
test eax, eax
je 0x4b945b
push 0x3d
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
xor eax, eax
push 0x206
push eax
mov word [esp + 0x144], ax
lea eax, [esp + 0x146]
push eax
call fcn.005278d0
add esp, 0xc
lea eax, [esp + 0x13c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp word [esp + 0x13c], 0
jne 0x4b93c5
xor ecx, ecx
lea eax, [esp + 0x13c]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00408659
jmp 0x4b945b
lea ecx, [esp + 0x13c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b93d0
sub ecx, edx
lea eax, [esp + 0x13c]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00408659
jmp 0x4b945b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b945b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004b83e0
test eax, eax
je 0x4b945b
push 8
push str.drivers
lea ecx, [esp + 0x24]
call fcn.004090e2
jmp 0x4b945b
lea eax, [esp + 0x14]
push eax
push 0x26
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b945b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004b83e0
cmp dword [esp + 0x2c], 0
je case.default.0x4b8c1d
test edi, edi
je 0x4b9471
mov dl, 1
lea ecx, [esp + 0x1c]
call fcn.0043ebe6
cmp dword [esp + 0x30], 8
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b94b0
lea eax, [esp + 0x1c]
cmp ebx, eax
je 0x4b94b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.0040757d
jmp 0x4b94b0
push 0
push 0x581738
lea ecx, [esp + 0x24]
call fcn.00408659
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [esp + 0x30]
cmp ecx, 8
jae 0x4b94f4
mov eax, dword [esp + 0x2c]
inc eax
je 0x4b94fa
add eax, eax
push eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00525b00
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x4b9526
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x4b9526
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x581738
mov word [esi], ax
call fcn.00408659
mov eax, esi
mov ecx, dword [esp + 0x558]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x540]
xor ecx, esp
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret 0xc