Function at 0x477ea0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x510970
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x97ffc0]
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.00460b90
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4781ef
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.DXIL.dll
call esi
test eax, eax
je 0x477f09
mov dword [ebx], eax
jmp 0x477f84
push 0x104
lea eax, [ebp + 0x104]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4781d3
cmp eax, 0x104
je 0x4781d3
lea eax, [ebp + 0x104]
push 0x5c
push eax
call fcn.004f1250
add esp, 8
test eax, eax
je 0x4781d3
push str.DXIL.dll
mov byte [eax + 1], 0
lea eax, [ebp + 0x104]
push 0x104
push eax
call fcn.004ffe0b
add esp, 0xc
test eax, eax
jne 0x4781d3
lea eax, [ebp + 0x104]
push eax
call esi
mov dword [ebx], eax
test eax, eax
je 0x4781d9
push str.DxcCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x477f9c
mov dword [ebx + 8], eax
jmp 0x4781d9
lea ecx, [ebp - 0x10]
push ecx
push 0x545dec
push 0x545dd0
call eax
test eax, eax
jns 0x477fbc
mov dword [ebx + 8], 0
jmp 0x4781d9
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 8], ecx
test ecx, ecx
je 0x4781d9
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x545ebc
push ecx
mov dword [ebp - 4], 0xffffffff
call dword [eax]
test eax, eax
jns 0x477ff6
mov dword [ebp - 4], 1
jmp 0x47816b
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 0x478017
mov dword [ebp - 4], 2
jmp 0x47816b
cmp dword [ebp - 0x18], 1
jne 0x478140
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 0x47804e
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10006
jne 0x478188
push 0x104
lea eax, [ebp]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x478188
cmp eax, 0x104
je 0x478188
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 0x478188
push eax
call fcn.004f7700
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x478188
push esi
push dword [ebp - 0x14]
lea eax, [ebp]
push dword [ebp - 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4780dc
push esi
call fcn.004f62a0
add esp, 4
jmp 0x478188
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x545e10
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4780ce
cmp dword [ebp - 0x20], 0
je 0x4780ce
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0xfeef04bd
jne 0x4780ce
mov ecx, dword [eax + 8]
xor esi, esi
push dword [ebp - 0x18]
or esi, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
call fcn.004f62a0
add esp, 4
cmp esi, 0x7d5003c
jne 0x478188
cmp dword [ebp - 0x14], 0x650005
jne 0x478188
mov edi, 0x10005
jmp 0x478188
jbe 0x478164
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 4
test ecx, ecx
je 0x47815d
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edi, 0x10008
jmp 0x478181
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47817f
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 0x4781cf
push str.DxcCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4781cf
lea ecx, [ebx + 0xc]
push ecx
push 0x545e14
push 0x545dc0
call esi
lea ecx, [ebx + 0x10]
push ecx
push 0x545e24
push 0x545db0
call esi
mov eax, ebx
jmp 0x4781f1
mov dword [ebx], 0
mov eax, dword [ebx]
test eax, eax
je 0x4781e6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.004605c0
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.004eee05
lea esp, [ebp + 0x20c]
pop ebp
ret