Function at 0x477dc0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x510830
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x97efc0]
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.00460ab0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x47810f
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.DXIL.dll
call esi
test eax, eax
je 0x477e29
mov dword [ebx], eax
jmp 0x477ea4
push 0x104
lea eax, [ebp + 0x104]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4780f3
cmp eax, 0x104
je 0x4780f3
lea eax, [ebp + 0x104]
push 0x5c
push eax
call fcn.004f10e0
add esp, 8
test eax, eax
je 0x4780f3
push str.DXIL.dll
mov byte [eax + 1], 0
lea eax, [ebp + 0x104]
push 0x104
push eax
call fcn.004ffcab
add esp, 0xc
test eax, eax
jne 0x4780f3
lea eax, [ebp + 0x104]
push eax
call esi
mov dword [ebx], eax
test eax, eax
je 0x4780f9
push str.DxcCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x477ebc
mov dword [ebx + 8], eax
jmp 0x4780f9
lea ecx, [ebp - 0x10]
push ecx
push 0x545d2c
push 0x545d10
call eax
test eax, eax
jns 0x477edc
mov dword [ebx + 8], 0
jmp 0x4780f9
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 8], ecx
test ecx, ecx
je 0x4780f9
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x545dfc
push ecx
mov dword [ebp - 4], 0xffffffff
call dword [eax]
test eax, eax
jns 0x477f16
mov dword [ebp - 4], 1
jmp 0x47808b
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 0x477f37
mov dword [ebp - 4], 2
jmp 0x47808b
cmp dword [ebp - 0x18], 1
jne 0x478060
mov edi, 8
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 0x477f6e
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10006
jne 0x4780a8
push 0x104
lea eax, [ebp]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4780a8
cmp eax, 0x104
je 0x4780a8
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 0x4780a8
push eax
call fcn.004f7590
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4780a8
push esi
push dword [ebp - 0x14]
lea eax, [ebp]
push dword [ebp - 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x477ffc
push esi
call fcn.004f6130
add esp, 4
jmp 0x4780a8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x545d50
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x477fee
cmp dword [ebp - 0x20], 0
je 0x477fee
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0xfeef04bd
jne 0x477fee
mov ecx, dword [eax + 8]
xor esi, esi
push dword [ebp - 0x18]
or esi, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
call fcn.004f6130
add esp, 4
cmp esi, 0x7d5003c
jne 0x4780a8
cmp dword [ebp - 0x14], 0x650005
jne 0x4780a8
mov edi, 0x10005
jmp 0x4780a8
jbe 0x478084
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 4
test ecx, ecx
je 0x47807d
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edi, 0x10008
jmp 0x4780a1
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47809f
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 0x4780ef
push str.DxcCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4780ef
lea ecx, [ebx + 0xc]
push ecx
push 0x545d54
push 0x545d00
call esi
lea ecx, [ebx + 0x10]
push ecx
push 0x545d64
push 0x545cf0
call esi
mov eax, ebx
jmp 0x478111
mov dword [ebx], 0
mov eax, dword [ebx]
test eax, eax
je 0x478106
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.004604e0
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.004eec95
lea esp, [ebp + 0x20c]
pop ebp
ret