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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48612c
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x4ad0cc]
xor eax, esp
mov dword [esp + 0xa80], eax
push ebx
push esi
push edi
mov eax, dword [0x4ad0cc]
xor eax, esp
push eax
lea eax, [esp + 0xa98]
mov dword fs:[0], eax
mov dword [esp + 0x78], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
test esi, esi
je 0x417c13
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417c13
test al, 0x10
jne 0x417c13
lea eax, [esp + 0x88]
mov dword [esp + 0x88], 0
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x417c13
push ebx
mov dword [esp + 0x14], 0
call fcn.00480608
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 0x417c03
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x84]
mov dword [esp + 0x84], 0
push eax
push 0x496c7c
push edi
mov dword [esp + 0x94], 0
call esi
test eax, eax
je 0x417c03
xor eax, eax
push 0x1fe
push eax
mov word [esp + 0x94], ax
lea eax, [esp + 0x96]
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [esp + 0x8c]
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 0x496eec
push 0xffffffffffffffff
lea eax, [esp + 0xb0]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
mov ebx, dword [esp + 0xa4]
lea eax, [esp + 0xb8]
add esp, 0x2c
mov ecx, ebx
push eax
call fcn.00403460
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, ebx
call fcn.004033e0
lea eax, [esp + 0x84]
mov dword [esp + 0x7c], 0
push eax
lea eax, [esp + 0x80]
mov dword [esp + 0x88], 0
push eax
push 0x496eb8
push edi
call esi
test eax, eax
je 0x417bfb
cmp dword [esp + 0x84], 4
jb 0x417bfb
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x294], ax
lea eax, [esp + 0x296]
push eax
call sub.MSVCR120.dll_memset
mov ecx, dword [esp + 0x88]
push 0x496f04
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
push 0xffffffffffffffff
lea eax, [esp + 0x2ac]
push 0x400
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
add esp, 0x28
mov dword [esp + 0x78], 0
lea eax, [esp + 0x84]
mov dword [esp + 0x84], 0
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x294]
push eax
push edi
call esi
test eax, eax
je 0x417bfb
push dword [esp + 0x78]
mov ecx, ebx
call fcn.00403460
push 0x496c80
lea ecx, [esp + 0x64]
call fcn.00405950
push 0x496f5c
lea ecx, [esp + 0x1c]
mov dword [esp + 0xaa4], 0
call fcn.00405950
lea eax, [esp + 0x60]
mov byte [esp + 0xaa0], 1
push eax
lea edx, [esp + 0x1c]
mov ecx, ebx
call fcn.004177a0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004033c0
lea ecx, [esp + 0x60]
mov dword [esp + 0xaa0], 0xffffffff
call fcn.004033c0
push 0x496eb4
lea ecx, [esp + 0x34]
call fcn.00405950
push 0x496f60
lea ecx, [esp + 0x4c]
mov dword [esp + 0xaa4], 2
call fcn.00405950
lea eax, [esp + 0x30]
mov byte [esp + 0xaa0], 3
push eax
lea edx, [esp + 0x4c]
mov ecx, ebx
call fcn.004177a0
add esp, 4
lea ecx, [esp + 0x48]
call fcn.004033c0
lea ecx, [esp + 0x30]
call fcn.004033c0
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x417c15
xor eax, eax
mov ecx, dword [esp + 0xa98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa80]
xor ecx, esp
call fcn.0048079e
mov esp, ebp
pop ebp
ret