Function at 0x477f60
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x510a80
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x991fc0]
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.00460c40
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4782af
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.DXIL.dll
call esi
test eax, eax
je 0x477fc9
mov dword [ebx], eax
jmp 0x478044
push 0x104
lea eax, [ebp + 0x104]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x478293
cmp eax, 0x104
je 0x478293
lea eax, [ebp + 0x104]
push 0x5c
push eax
call fcn.004f1360
add esp, 8
test eax, eax
je 0x478293
push str.DXIL.dll
mov byte [eax + 1], 0
lea eax, [ebp + 0x104]
push 0x104
push eax
call fcn.004fff1b
add esp, 0xc
test eax, eax
jne 0x478293
lea eax, [ebp + 0x104]
push eax
call esi
mov dword [ebx], eax
test eax, eax
je 0x478299
push str.DxcCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x47805c
mov dword [ebx + 8], eax
jmp 0x478299
lea ecx, [ebp - 0x10]
push ecx
push 0x545dec
push 0x545dd0
call eax
test eax, eax
jns 0x47807c
mov dword [ebx + 8], 0
jmp 0x478299
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 8], ecx
test ecx, ecx
je 0x478299
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 0x4780b6
mov dword [ebp - 4], 1
jmp 0x47822b
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 0x4780d7
mov dword [ebp - 4], 2
jmp 0x47822b
cmp dword [ebp - 0x18], 1
jne 0x478200
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 0x47810e
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10006
jne 0x478248
push 0x104
lea eax, [ebp]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x478248
cmp eax, 0x104
je 0x478248
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 0x478248
push eax
call fcn.004f7810
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x478248
push esi
push dword [ebp - 0x14]
lea eax, [ebp]
push dword [ebp - 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x47819c
push esi
call fcn.004f63b0
add esp, 4
jmp 0x478248
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 0x47818e
cmp dword [ebp - 0x20], 0
je 0x47818e
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0xfeef04bd
jne 0x47818e
mov ecx, dword [eax + 8]
xor esi, esi
push dword [ebp - 0x18]
or esi, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
call fcn.004f63b0
add esp, 4
cmp esi, 0x7d5003c
jne 0x478248
cmp dword [ebp - 0x14], 0x650005
jne 0x478248
mov edi, 0x10005
jmp 0x478248
jbe 0x478224
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 4
test ecx, ecx
je 0x47821d
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edi, 0x10008
jmp 0x478241
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47823f
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 0x47828f
push str.DxcCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x47828f
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 0x4782b1
mov dword [ebx], 0
mov eax, dword [ebx]
test eax, eax
je 0x4782a6
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.00460670
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.004eef15
lea esp, [ebp + 0x20c]
pop ebp
ret