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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100825cb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x100a1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x218]
push 0x208
push edi
push eax
mov dword [ebp - 0x230], edi
call fcn.10055b90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x228], eax
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x100212b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x21c]
call fcn.10007ac0
test al, al
jne 0x10021122
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021100
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10007d40
mov dword [ebp - 4], 1
mov edx, 1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x1002115a
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.10007ce0
mov eax, dword [ebp - 0x21c]
push str._system32Shell32.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x21c]
test eax, eax
jne 0x10021174
xor ecx, ecx
jmp 0x10021190
push dword [eax - 8]
push eax
call fcn.10061d3b
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x100212ac
mov eax, dword [ebp - 0x21c]
cmp ecx, dword [eax - 8]
jg 0x100212ac
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x22c], edx
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x228], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x10021269
push ebx
call fcn.10058c73
mov esi, eax
add esp, 4
test esi, esi
je 0x10021269
push esi
push ebx
push 0
push dword [ebp - 0x228]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1002123b
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
push 0x1009328c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1002123b
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], 1
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x230], eax
jmp 0x1002123d
xor ebx, ebx
push esi
call fcn.10058c58
add esp, 4
cmp dword [ebp - 0x22c], 0
je 0x10021269
cmp ebx, 0x60002
jb 0x10021269
cmp dword [ebp - 0x230], 0x295a01c8
mov eax, 1
cmovae edi, eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x21c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002128e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100535a4
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10001410
push 0x80004005
call fcn.10001410
int3