Function at 0x4bd6e0
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 0x576eb7
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x5c8910]
xor eax, esp
mov dword [esp + 0x540], eax
push ebx
push esi
push edi
mov eax, dword [0x5c8910]
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 0x4be076
lea eax, [edx + edx*2]
lea ebx, [ecx + eax*8]
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x4bd764
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.0040759d
jmp 0x4be096
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.0x4bd78d
jmp dword [edx*4 + 0x4be0c0]
test edi, edi
setne al
movzx eax, al
push eax
lea eax, [esp + 0x128]
push eax
call fcn.004bcff0
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffd6
cmp dword [esp + 0x138], 8
jb 0x4bdfcb
push dword [esp + 0x124]
call fcn.005363a4
add esp, 4
jmp 0x4bdfcb
push 0
push 0
lea eax, [esp + 0xcc]
push eax
call fcn.004bd6e0
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffd6
cmp dword [esp + 0xd8], 8
jb 0x4bd80a
push dword [esp + 0xc4]
call fcn.005363a4
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.0x4bd78d
push 1
push 0x594350
lea ecx, [esp + 0x24]
call fcn.00409102
lea eax, [esp + 0x10c]
push eax
call fcn.004b2d40
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x56c], 1
call fcn.00409252
mov byte [esp + 0x560], 0
cmp dword [esp + 0x120], 8
jb 0x4bdfcb
push dword [esp + 0x10c]
call fcn.005363a4
add esp, 4
jmp 0x4bdfcb
push str.InstallDir
lea ecx, [esp + 0xf8]
call fcn.00408738
sub esp, 0x18
mov byte [esp + 0x578], 2
mov ecx, esp
push 0x594314
call fcn.00408738
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x110]
push eax
push 2
call fcn.004bf6a0
add esp, 0x24
mov byte [esp + 0x560], 0
cmp dword [esp + 0x108], 8
jb 0x4bdfcb
push dword [esp + 0xf4]
call fcn.005363a4
add esp, 4
jmp 0x4bdfcb
push edi
push 2
lea eax, [esp + 0xe4]
push eax
call fcn.004bd6e0
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffd6
cmp dword [esp + 0xf0], 8
jb 0x4bd930
push dword [esp + 0xdc]
call fcn.005363a4
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.0x4bd78d
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.00408738
sub esp, 0x18
mov byte [esp + 0x578], 4
mov ecx, esp
push 0x594314
call fcn.00408738
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x50]
push eax
push 2
call fcn.004bf6a0
add esp, 0x24
mov byte [esp + 0x560], 3
cmp dword [esp + 0x48], 8
jb 0x4bd9c7
push dword [esp + 0x34]
call fcn.005363a4
add esp, 4
push 1
xor eax, eax
mov dword [esp + 0x4c], 7
push 0x594350
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
call fcn.00409102
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
call fcn.00409252
mov byte [esp + 0x560], 0
cmp dword [esp + 0x60], 8
jb 0x4bdfcb
push dword [esp + 0x4c]
call fcn.005363a4
add esp, 4
jmp 0x4bdfcb
xor eax, eax
push 0x206
push eax
mov word [esp + 0x144], ax
lea eax, [esp + 0x146]
push eax
call fcn.00538910
add esp, 0xc
lea eax, [esp + 0x13c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4bdfcb
xor eax, eax
push 0x206
push eax
mov word [esp + 0x34c], ax
lea eax, [esp + 0x34e]
push eax
call fcn.00538910
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.00537692
lea eax, [esp + 0x354]
push eax
lea eax, [esp + 0x150]
push 0x104
push eax
call fcn.0053b573
add esp, 0x1c
cmp word [esp + 0x13c], 0
jne 0x4bdade
xor ecx, ecx
lea eax, [esp + 0x13c]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00408679
jmp 0x4bdfcb
lea ecx, [esp + 0x13c]
lea edx, [ecx + 2]
jmp 0x4bdaf0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bdaf0
jmp 0x4bdf4b
push edi
push 4
lea eax, [esp + 0x6c]
push eax
call fcn.004bd6e0
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffd6
cmp dword [esp + 0x78], 8
jb 0x4bdb2a
push dword [esp + 0x64]
call fcn.005363a4
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.0x4bd78d
push 4
push str.Bin
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
push edi
push 4
lea eax, [esp + 0x9c]
push eax
call fcn.004bd6e0
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffd6
cmp dword [esp + 0xa8], 8
jb 0x4bdb93
push dword [esp + 0x94]
call fcn.005363a4
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.0x4bd78d
push 8
push str.AppData
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
push edi
push 4
lea eax, [esp + 0xb4]
push eax
call fcn.004bd6e0
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffd6
cmp dword [esp + 0xc0], 8
jb 0x4bdc05
push dword [esp + 0xac]
call fcn.005363a4
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.0x4bd78d
push 6
push str.Union
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
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 0x4bdfcb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004bcf50
test eax, eax
je 0x4bdfcb
push 0x12
push 0x59e8e4
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
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 0x4bdfcb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004bcf50
test eax, eax
je 0x4bdfcb
push 0x12
push 0x59e8e4
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
push edi
push 9
lea eax, [esp + 0x84]
push eax
call fcn.004bd6e0
push eax
lea ecx, [esp + 0x20]
call fcn.0043ffd6
cmp dword [esp + 0x90], 8
jb 0x4bdd08
push dword [esp + 0x7c]
call fcn.005363a4
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.0x4bd78d
push 0x16
push str.User_DataLiveupTemp
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
lea eax, [esp + 0x14]
push eax
push 0
jmp 0x4bdfa9
lea eax, [esp + 0x14]
push eax
push 0x19
jmp 0x4bdfa9
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 0x4bdfcb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004bcf50
test eax, eax
je 0x4bdfcb
push 0x3f
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedStartMenu
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
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 0x4bdfcb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004bcf50
test eax, eax
je 0x4bdfcb
push 0xb
push 0x59e894
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
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 0x4bdfcb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004bcf50
test eax, eax
je 0x4bdfcb
push 0xb
push 0x59e894
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
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 0x4bdfcb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004bcf50
test eax, eax
je 0x4bdfcb
push 0x29
push str.MicrosoftInternet_ExplorerQuick_Launch
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
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 0x4bdfcb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004bcf50
test eax, eax
je 0x4bdfcb
push 0x3d
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
xor eax, eax
push 0x206
push eax
mov word [esp + 0x144], ax
lea eax, [esp + 0x146]
push eax
call fcn.00538910
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 0x4bdf35
xor ecx, ecx
lea eax, [esp + 0x13c]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00408679
jmp 0x4bdfcb
lea ecx, [esp + 0x13c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bdf40
sub ecx, edx
lea eax, [esp + 0x13c]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00408679
jmp 0x4bdfcb
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 0x4bdfcb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004bcf50
test eax, eax
je 0x4bdfcb
push 8
push str.drivers
lea ecx, [esp + 0x24]
call fcn.00409102
jmp 0x4bdfcb
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 0x4bdfcb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004bcf50
cmp dword [esp + 0x2c], 0
je case.default.0x4bd78d
test edi, edi
je 0x4bdfe1
mov dl, 1
lea ecx, [esp + 0x1c]
call fcn.0043ec18
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 0x4be020
lea eax, [esp + 0x1c]
cmp ebx, eax
je 0x4be020
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.0040759d
jmp 0x4be020
push 0
push 0x594314
lea ecx, [esp + 0x24]
call fcn.00408679
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 0x4be064
mov eax, dword [esp + 0x2c]
inc eax
je 0x4be06a
add eax, eax
push eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00536b40
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x4be096
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 0x4be096
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x594314
mov word [esi], ax
call fcn.00408679
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.0053bd6c
mov esp, ebp
pop ebp
ret 0xc