Function at 0x474c00
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x507170
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x886f80]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x214]
push 0x18
push eax
call fcn.00461d40
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x474f4f
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.DXIL.dll
call esi
test eax, eax
je 0x474c69
mov dword [ebx], eax
jmp 0x474ce4
push 0x104
lea eax, [ebp + 0x104]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x474f33
cmp eax, 0x104
je 0x474f33
lea eax, [ebp + 0x104]
push 0x5c
push eax
call fcn.004e78c0
add esp, 8
test eax, eax
je 0x474f33
push str.DXIL.dll
mov byte [eax + 1], 0
lea eax, [ebp + 0x104]
push 0x104
push eax
call fcn.004f637b
add esp, 0xc
test eax, eax
jne 0x474f33
lea eax, [ebp + 0x104]
push eax
call esi
mov dword [ebx], eax
test eax, eax
je 0x474f39
push str.DxcCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x474cfc
mov dword [ebx + 8], eax
jmp 0x474f39
lea ecx, [ebp - 0x10]
push ecx
push 0x539ffc
push 0x539fe0
call eax
test eax, eax
jns 0x474d1c
mov dword [ebx + 8], 0
jmp 0x474f39
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 8], ecx
test ecx, ecx
je 0x474f39
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x53a0cc
push ecx
mov dword [ebp - 4], 0xffffffff
call dword [eax]
test eax, eax
jns 0x474d56
mov dword [ebp - 4], 1
jmp 0x474ecb
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x474d77
mov dword [ebp - 4], 2
jmp 0x474ecb
cmp dword [ebp - 0x18], 1
jne 0x474ea0
mov edi, 7
cmp dword [ebp - 0x14], edi
cmovb edi, dword [ebp - 0x14]
add edi, 0x10000
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x474dae
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10006
jne 0x474ee8
push 0x104
lea eax, [ebp]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x474ee8
cmp eax, 0x104
je 0x474ee8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
test eax, eax
je 0x474ee8
push eax
call fcn.004edfe0
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x474ee8
push esi
push dword [ebp - 0x14]
lea eax, [ebp]
push dword [ebp - 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x474e3c
push esi
call fcn.004ecb80
add esp, 4
jmp 0x474ee8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x53a020
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x474e2e
cmp dword [ebp - 0x20], 0
je 0x474e2e
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0xfeef04bd
jne 0x474e2e
mov ecx, dword [eax + 8]
xor esi, esi
push dword [ebp - 0x18]
or esi, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
call fcn.004ecb80
add esp, 4
cmp esi, 0x7d5003c
jne 0x474ee8
cmp dword [ebp - 0x14], 0x650005
jne 0x474ee8
mov edi, 0x10005
jmp 0x474ee8
jbe 0x474ec4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 4
test ecx, ecx
je 0x474ebd
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edi, 0x10007
jmp 0x474ee1
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x474edf
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor edi, edi
mov dword [ebp - 4], 0xffffffff
push str.dxcompiler.dll
mov dword [ebx + 0x14], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 4], eax
test eax, eax
je 0x474f2f
push str.DxcCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x474f2f
lea ecx, [ebx + 0xc]
push ecx
push 0x53a024
push 0x539fd0
call esi
lea ecx, [ebx + 0x10]
push ecx
push 0x53a034
push 0x539fc0
call esi
mov eax, ebx
jmp 0x474f51
mov dword [ebx], 0
mov eax, dword [ebx]
test eax, eax
je 0x474f46
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.00461770
add esp, 4
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 + 0x208]
xor ecx, ebp
call fcn.004e5b77
lea esp, [ebp + 0x20c]
pop ebp
ret