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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1014f644]
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 ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x50], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x60], eax
je 0x1003ae3c
mov esi, 0x10
cmp dword [edi + 0x14], esi
jb 0x1003ae14
mov eax, dword [edi]
jmp 0x1003ae16
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
je 0x1003ae3c
cmp dword [edi + 0x14], esi
jb 0x1003ae2f
mov eax, dword [edi]
jmp 0x1003ae31
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x1003ae64
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], cx
push 0
mov eax, 0x1012f5d8
mov esi, ebx
call fcn.10006bc0
mov eax, ebx
jmp 0x1003afad
lea ecx, [ebp - 0x48]
mov eax, edi
call fcn.10040fc0
cmp dword [eax + 0x14], 8
jb 0x1003ae76
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
cmp dword [ebp - 0x34], 8
mov esi, eax
jb 0x1003ae93
mov edx, dword [ebp - 0x48]
push edx
call fcn.100719b6
add esp, 4
test esi, esi
jne 0x1003aea8
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
jmp 0x1003ae4f
push esi
call fcn.1006e7e5
mov ebx, eax
add esp, 4
mov dword [ebp - 0x64], ebx
lea ecx, [ebp - 0x48]
mov eax, edi
mov dword [ebp - 4], 0
call fcn.10040fc0
cmp dword [eax + 0x14], 8
jb 0x1003aecf
mov eax, dword [eax]
push ebx
push esi
xor edi, edi
push edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
cmp dword [ebp - 0x34], 8
mov esi, eax
jb 0x1003aeef
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100719b6
add esp, 4
cmp esi, edi
je 0x1003af93
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x5c]
push eax
push str.VarFileInfoTranslation
push ebx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x50], edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1003af93
mov eax, dword [ebp - 0x60]
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x1003af24
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x5c]
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.1003b670
add esp, 0x14
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], edi
cmp dword [ebp - 0x18], esi
jae 0x1003af57
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x54]
push edx
push eax
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1003af87
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
push esi
call fcn.1003b720
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.10007320
jmp 0x1003afa2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10007320
mov esi, dword [ebp - 0x4c]
mov eax, 0x1012f5d8
mov ecx, esi
call fcn.10006cb0
push ebx
call fcn.100719b6
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.100719c1
mov esp, ebp
pop ebp
ret