Function at 0x10004bee
Capabilities:
Get common file path

Disassembly:
push ebp
mov edx, 0xf
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x10004bf4
call fcn.100109b0
push dword [esp + 0x50]
call fcn.1000b130
mov edx, dword [esp + 0x44]
lea ecx, [esp]
call fcn.1000b000
mov edx, dword [esp + 0x48]
lea ecx, [esp + 4]
call fcn.1000b000
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 8]
call fcn.1000b000
push edx
call fcn.10010810
pop edx
push eax
push edx
call fcn.10010810
pop edx
push eax
push 0x104
call fcn.1000d220
call fcn.10010940
lea eax, [esp + 0x10]
push eax
call fcn.100108b0
push 0x104
mov eax, dword [esp + 0x10]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.10010810
pop edx
push eax
push edx
call fcn.10010810
pop edx
push eax
lea eax, [0x100143ec]
push eax
push dword [esp + 0x18]
call fcn.1000d270
lea edx, str._version.dll
push edx
call fcn.10010850
lea eax, [esp + 0x10]
push eax
call fcn.100108b0
push dword [esp + 0xc]
push 0xffffffff
call fcn.1000e0d4
mov dword [esp + 0x10], eax
lea eax, str.GetFileVersionInfoW
push eax
push dword [esp + 0x14]
call fcn.1000e12e
mov dword [esp + 0x14], eax
lea eax, str.GetFileVersionInfoSizeW
push eax
push dword [esp + 0x14]
call fcn.1000e12e
mov dword [esp + 0x18], eax
lea eax, str.VerQueryValueW
push eax
push dword [esp + 0x14]
call fcn.1000e12e
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 4]
push eax
call dword [esp + 0x20]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x34], 0
je 0x10004ebb
push dword [esp + 0x34]
call fcn.100104d0
mov dword [esp + 0x28], eax
push dword [esp + 0x28]
push dword [esp + 0x38]
push 0
mov eax, dword [esp + 0xc]
push eax
call dword [esp + 0x24]
and eax, eax
je 0x10004eb2
push dword [esp + 8]
lea edx, [0x10014028]
pop ecx
call fcn.1000b0c0
je 0x10004e0d
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, str.VarFileInfoTranslation
push eax
push dword [esp + 0x34]
call dword [esp + 0x2c]
and eax, eax
je 0x10004e0d
push edx
call fcn.10010810
pop edx
push eax
push edx
call fcn.10010810
pop edx
push eax
lea eax, [0x1001421a]
push eax
push 4
push edx
call fcn.10010810
pop edx
push eax
push edx
call fcn.10010810
pop edx
push eax
mov ebp, dword [esp + 0x50]
movsx eax, word [ebp]
cdq
push edx
push eax
call fcn.1000d420
call fcn.1000b112
add dword [esp], edx
call fcn.1000d4a0
push edx
call fcn.10010810
pop edx
push eax
push edx
call fcn.10010810
pop edx
push eax
lea eax, [0x1001421a]
push eax
push 4
push edx
call fcn.10010810
pop edx
push eax
push edx
call fcn.10010810
pop edx
push eax
mov ebp, dword [esp + 0x54]
movsx eax, word [ebp + 2]
cdq
push edx
push eax
call fcn.1000d420
call fcn.1000b112
add dword [esp], edx
call fcn.1000d4a0
pop eax
lea eax, [esp + 0xc]
push eax
call fcn.100108b0
mov edx, dword [esp + 8]
xor ecx, ecx
call fcn.1000b0c0
jne 0x10004eb2
push edx
call fcn.10010810
pop edx
push eax
lea edx, str.StringFileInfo_
push edx
call fcn.10010850
mov edx, dword [esp + 0xc]
push edx
call fcn.10010850
lea edx, [0x100143ec]
push edx
call fcn.10010850
mov edx, dword [esp + 8]
push edx
call fcn.10010850
lea eax, [esp + 8]
push eax
call fcn.100108b0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0xc]
push eax
push dword [esp + 0x34]
call dword [esp + 0x2c]
and eax, eax
je 0x10004e85
cmp dword [esp + 0x20], 0
je 0x10004e85
mov eax, 1
jmp 0x10004e87
xor eax, eax
and eax, eax
je 0x10004eb2
push edx
call fcn.10010810
pop edx
push eax
push edx
call fcn.10010810
pop edx
push eax
push dword [esp + 0x28]
push dword [esp + 0x38]
call fcn.100104f0
lea eax, [esp + 0x34]
push eax
call fcn.100108b0
push dword [esp + 0x28]
call fcn.10010560
push dword [esp + 0x10]
call fcn.1000e014
mov edx, dword [esp + 0x30]
push edx
call fcn.10010810
pop edx
push eax
push edx
call fcn.10010850
pop eax
push eax
call fcn.1000b100
pop edx
add eax, edx
jmp 0x10004eec
push dword [esp]
call fcn.10010a10
push dword [esp + 4]
call fcn.10010a10
push dword [esp + 0x30]
call fcn.10010a10
push dword [esp + 8]
call fcn.10010a10
push dword [esp + 0xc]
call fcn.10010a10
add esp, 0x3c
pop ebp
ret 0xc