Function at 0x10002c00
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a65b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x102184e0]
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
mov eax, dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x3c], 0
cmp dword [edi + 0x10], 0
mov esi, ecx
mov dword [ebp - 0x44], eax
je 0x10002c78
mov ebx, 0x10
cmp dword [edi + 0x14], ebx
jb 0x10002c50
mov eax, dword [edi]
jmp 0x10002c52
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
je 0x10002c78
cmp dword [edi + 0x14], ebx
jb 0x10002c6b
mov eax, dword [edi]
jmp 0x10002c6d
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x10002c9d
xor ecx, ecx
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
push 0x101ff06c
mov ecx, esi
call fcn.10003570
jmp 0x10002e11
lea eax, [ebp - 0x2c]
mov ecx, edi
call fcn.10004760
cmp dword [eax + 0x14], 8
jb 0x10002caf
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
cmp dword [ebp - 0x18], 8
mov ebx, eax
jb 0x10002ccc
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100b1971
add esp, 4
test ebx, ebx
jne 0x10002cf1
xor eax, eax
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x101ff06c
mov ecx, esi
mov word [esi], ax
call fcn.10003570
jmp 0x10002e11
push ebx
call fcn.100b03c5
add esp, 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10004760
cmp dword [eax + 0x14], 8
jb 0x10002d16
mov eax, dword [eax]
mov edi, dword [ebp - 0x40]
push edi
push ebx
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
cmp dword [ebp - 0x18], 8
mov ebx, eax
jb 0x10002d38
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100b1971
add esp, 4
xor eax, eax
cmp ebx, eax
je 0x10002dec
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x10002d71
push 0x101ff06c
mov ecx, esi
call fcn.10002fa0
jmp 0x10002e08
mov eax, dword [ebp - 0x44]
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x10002d80
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x2c]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.10003c50
add esp, 0x14
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x10002db5
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x30]
push edx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10002dde
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
call fcn.10003d00
lea ecx, [ebp - 0x2c]
call fcn.100012a0
jmp 0x10002e08
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.100012a0
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
push eax
mov word [esi], cx
push 0x101ff06c
mov ecx, esi
call fcn.10003570
push edi
call fcn.100b1971
add esp, 4
mov eax, esi
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.100b197c
mov esp, ebp
pop ebp
ret