Function at 0x477f20
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x5109d0
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.00460c10
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x47826f
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.DXIL.dll
call esi
test eax, eax
je 0x477f89
mov dword [ebx], eax
jmp 0x478004
push 0x104
lea eax, [ebp + 0x104]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x478253
cmp eax, 0x104
je 0x478253
lea eax, [ebp + 0x104]
push 0x5c
push eax
call fcn.004f12b0
add esp, 8
test eax, eax
je 0x478253
push str.DXIL.dll
mov byte [eax + 1], 0
lea eax, [ebp + 0x104]
push 0x104
push eax
call fcn.004ffe6b
add esp, 0xc
test eax, eax
jne 0x478253
lea eax, [ebp + 0x104]
push eax
call esi
mov dword [ebx], eax
test eax, eax
je 0x478259
push str.DxcCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x47801c
mov dword [ebx + 8], eax
jmp 0x478259
lea ecx, [ebp - 0x10]
push ecx
push 0x545dec
push 0x545dd0
call eax
test eax, eax
jns 0x47803c
mov dword [ebx + 8], 0
jmp 0x478259
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 8], ecx
test ecx, ecx
je 0x478259
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 0x478076
mov dword [ebp - 4], 1
jmp 0x4781eb
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 0x478097
mov dword [ebp - 4], 2
jmp 0x4781eb
cmp dword [ebp - 0x18], 1
jne 0x4781c0
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 0x4780ce
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10006
jne 0x478208
push 0x104
lea eax, [ebp]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x478208
cmp eax, 0x104
je 0x478208
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 0x478208
push eax
call fcn.004f7760
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x478208
push esi
push dword [ebp - 0x14]
lea eax, [ebp]
push dword [ebp - 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x47815c
push esi
call fcn.004f6300
add esp, 4
jmp 0x478208
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 0x47814e
cmp dword [ebp - 0x20], 0
je 0x47814e
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0xfeef04bd
jne 0x47814e
mov ecx, dword [eax + 8]
xor esi, esi
push dword [ebp - 0x18]
or esi, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
call fcn.004f6300
add esp, 4
cmp esi, 0x7d5003c
jne 0x478208
cmp dword [ebp - 0x14], 0x650005
jne 0x478208
mov edi, 0x10005
jmp 0x478208
jbe 0x4781e4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 4
test ecx, ecx
je 0x4781dd
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edi, 0x10008
jmp 0x478201
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4781ff
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 0x47824f
push str.DxcCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x47824f
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 0x478271
mov dword [ebx], 0
mov eax, dword [ebx]
test eax, eax
je 0x478266
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.00460640
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.004eee65
lea esp, [ebp + 0x20c]
pop ebp
ret