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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c4bc
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [section..data]
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 - 0xa30], edx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa20], eax
test esi, esi
je 0x406001
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406001
test al, 0x10
jne 0x406001
lea eax, [ebp - 0xa1c]
mov dword [ebp - 0xa1c], 0
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x406001
push edi
xor ebx, ebx
call fcn.00452ca0
add esp, 4
mov dword [ebp - 0xa2c], eax
push eax
push edi
push ebx
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov edi, dword [ebp - 0xa2c]
test eax, eax
je 0x405ff3
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0xa28]
mov dword [ebp - 0xa28], ebx
push eax
push 0x48b340
push edi
mov dword [ebp - 0xa18], ebx
call esi
test eax, eax
je 0x405ff3
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 - 0xa28]
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 0x48b878
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll__snwprintf_s]
add esp, 0x2c
cmp word [ebp - 0x214], bx
jne 0x405d18
xor ecx, ecx
jmp 0x405d30
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d21
sub ecx, edx
sar ecx, 1
mov ebx, dword [ebp - 0xa30]
lea eax, [ebp - 0x214]
push ecx
push eax
mov ecx, ebx
call fcn.0040235a
cmp dword [ebp - 0xa20], ebx
je 0x405d61
push 0xffffffffffffffff
push 0
push ebx
mov ebx, dword [ebp - 0xa20]
mov ecx, ebx
call fcn.004022c7
jmp 0x405d67
mov ebx, dword [ebp - 0xa20]
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa24], 0
push eax
lea eax, [ebp - 0xa24]
mov dword [ebp - 0xa18], 0
push eax
push 0x48b844
push edi
call esi
test eax, eax
je 0x405fee
cmp dword [ebp - 0xa18], 4
jb 0x405fee
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 - 0xa24]
push 0x48b890
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 0x405fee
mov edx, dword [ebp - 0xa20]
cmp word [edx], 0
jne 0x405e35
xor ecx, ecx
jmp 0x405e4f
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e40
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.0040235a
xor eax, eax
mov dword [ebp - 0xa7c], 7
push eax
push 0x48b33c
lea ecx, [ebp - 0xa90]
mov dword [ebp - 0xa80], 0
mov word [ebp - 0xa90], ax
call fcn.0040235a
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa60]
push 1
xor eax, eax
mov dword [ebp - 0xa4c], 7
push 0x48b8e8
mov dword [ebp - 0xa50], 0
mov word [ebp - 0xa60], ax
call fcn.0040235a
lea eax, [ebp - 0xa90]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0xa60]
mov ecx, ebx
call fcn.00405b50
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0xa4c], 8
jb 0x405ef1
push dword [ebp - 0xa60]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xa7c], 8
mov dword [ebp - 0xa4c], 7
mov dword [ebp - 0xa50], 0
mov word [ebp - 0xa60], ax
jb 0x405f29
push dword [ebp - 0xa90]
call esi
add esp, 4
push 1
xor eax, eax
mov dword [ebp - 0xa64], 7
push 0x48b840
lea ecx, [ebp - 0xa78]
mov dword [ebp - 0xa68], 0
mov word [ebp - 0xa78], ax
call fcn.0040235a
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xa48]
push 1
xor eax, eax
mov dword [ebp - 0xa34], 7
push 0x48b8ec
mov dword [ebp - 0xa38], 0
mov word [ebp - 0xa48], ax
call fcn.0040235a
lea eax, [ebp - 0xa78]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0xa48]
mov ecx, ebx
call fcn.00405b50
add esp, 4
cmp dword [ebp - 0xa34], 8
jb 0x405fbd
push dword [ebp - 0xa48]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0xa34], 7
cmp dword [ebp - 0xa64], 8
mov dword [ebp - 0xa38], 0
mov word [ebp - 0xa48], ax
jb 0x405fee
push dword [ebp - 0xa78]
call esi
add esp, 4
mov ebx, 1
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, ebx
jmp 0x406003
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.00452da4
mov esp, ebp
pop ebp
ret