Function at 0x10016b20
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081400
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100bb500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x10016b79
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.10008530
mov ecx, eax
test ecx, ecx
jne 0x10016b9d
push 0x80004005
call fcn.10008310
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 2
jge 0x10016bd0
push 0x104
lea ecx, [ebp - 0x10]
call fcn.10008cd0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x104
jge 0x10016be3
push 0x80070057
call fcn.10008310
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
push 0x104
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call edi
test eax, eax
jne 0x10016c40
push dword [esi - 8]
push esi
call fcn.1006887d
add esp, 8
test eax, eax
js 0x10016bd9
cmp eax, dword [esi - 8]
jg 0x10016bd9
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x3c]
call fcn.10049360
push 0x100adf48
lea eax, [ebp - 0x3c]
push eax
call fcn.10063e94
cmp eax, 0x103
jbe 0x10016c57
push eax
push eax
lea ecx, [ebp - 0x10]
call fcn.10016ad0
push eax
call edi
mov esi, dword [ebp - 0x10]
push dword [esi - 8]
push esi
call fcn.1006887d
add esp, 8
test eax, eax
js 0x10016bd9
cmp eax, dword [esi - 8]
jg 0x10016bd9
push dword [ebp + 8]
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000ecd0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.10007eb0
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016cbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10016d22
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10016ced
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10016d06
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x30]
call fcn.1000c610
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
lea ecx, [ebp - 0x30]
call fcn.1000c6e0
push dword [ebp - 0x30]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10016cd2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x1008c794
push dword [ebp - 0x30]
call sub.VERSION.dll_VerQueryValueW
add esi, 0xfffffff0
mov byte [ebp - 4], 1
test eax, eax
je 0x10016cd9
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
movzx ecx, word [edx + 0x12]
mov word [eax], cx
mov eax, dword [ebp + 0x10]
movzx ecx, word [edx + 0x10]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
movzx ecx, word [edx + 0x16]
mov word [eax], cx
mov eax, dword [ebp + 0x18]
movzx ecx, word [edx + 0x14]
mov word [eax], cx
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10016da1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10016dba
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x30]
call fcn.1000c610
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret