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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4831dc
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x4aa0cc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa20], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa30], eax
test esi, esi
je 0x4157e2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4157e2
test al, 0x10
jne 0x4157e2
lea eax, [ebp - 0xa1c]
mov dword [ebp - 0xa1c], 0
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4157e2
push ebx
mov dword [ebp - 0xa2c], 0
call fcn.0047d9f8
add esp, 4
mov edi, eax
push edi
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4157d0
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0xa24]
mov dword [ebp - 0xa24], 0
push eax
push 0x493b4c
push edi
mov dword [ebp - 0xa18], 0
call esi
test eax, eax
je 0x4157d0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [ebp - 0xa24]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x493dbc
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
mov ebx, dword [ebp - 0xa20]
lea eax, [ebp - 0x214]
add esp, 0x2c
mov ecx, ebx
push eax
call fcn.00403450
push ebx
mov ebx, dword [ebp - 0xa30]
mov ecx, ebx
call fcn.004033d0
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa28], 0
push eax
lea eax, [ebp - 0xa28]
mov dword [ebp - 0xa18], 0
push eax
push 0x493d88
push edi
call esi
test eax, eax
je 0x4157c6
cmp dword [ebp - 0xa18], 4
jb 0x4157c6
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xa14], ax
lea eax, [ebp - 0xa12]
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [ebp - 0xa28]
push 0x493dd4
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
push 0xffffffffffffffff
lea eax, [ebp - 0xa14]
push 0x400
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
add esp, 0x28
mov dword [ebp - 0xa20], 0
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa18], 0
push eax
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0xa14]
push eax
push edi
call esi
test eax, eax
je 0x4157c6
push dword [ebp - 0xa20]
mov ecx, ebx
call fcn.00403450
push 0x493b50
lea ecx, [ebp - 0xa90]
call fcn.004058b0
push 0x493e2c
lea ecx, [ebp - 0xa60]
mov dword [ebp - 4], 0
call fcn.004058b0
lea eax, [ebp - 0xa90]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0xa60]
mov ecx, ebx
call fcn.00415380
add esp, 4
lea ecx, [ebp - 0xa60]
call fcn.004033b0
lea ecx, [ebp - 0xa90]
mov dword [ebp - 4], 0xffffffff
call fcn.004033b0
push 0x493d84
lea ecx, [ebp - 0xa48]
call fcn.004058b0
push 0x493e30
lea ecx, [ebp - 0xa78]
mov dword [ebp - 4], 2
call fcn.004058b0
lea eax, [ebp - 0xa48]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0xa78]
mov ecx, ebx
call fcn.00415380
add esp, 4
lea ecx, [ebp - 0xa78]
call fcn.004033b0
lea ecx, [ebp - 0xa48]
call fcn.004033b0
mov dword [ebp - 0xa2c], 1
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0xa2c]
add esp, 4
jmp 0x4157e4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047db8e
mov esp, ebp
pop ebp
ret