Function at 0x470dfd
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0x11c
mov eax, 0x5e0854
call fcn.005d2642
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
mov ebx, dword [ebp + 8]
xor edi, edi
push esi
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x128], edi
call fcn.00403740
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], edi
mov word [ebp - 0xf0], ax
push 0xc8
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 1
push edi
push eax
call fcn.0047be90
add esp, 0xc
call fcn.0045469c
test al, al
je 0x470e93
pop esp
push esp
pop esi
pop esi
pop edx
push ebx
push esi
pop esi
push esp
pop eax
pop edx
pop esi
push ebx
pop ecx
pop ecx
pop edx
push eax
pop ebp
push edx
pop eax
pop edx
pop eax
push ecx
pop edx
pop ecx
pop edi
pop ecx
mov esi, dword [ebp - 0x10c]
xor edi, edi
cmp dword [ebp - 0xf8], 0
je 0x4710e2
cmp dword [ebp - 0xf4], 8
lea eax, [ebp - 0x108]
cmovae eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4710e2
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], edi
push eax
push esi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x124], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x118], eax
test eax, eax
jne 0x470f1d
lea eax, [ebp - 0xf0]
mov ecx, ebx
push eax
call fcn.00456158
push edi
push 1
lea ecx, [ebp - 0xf0]
call fcn.0041e4c0
push edi
push 1
lea ecx, [ebp - 0x108]
call fcn.0041e4c0
mov eax, ebx
jmp 0x47118f
inc eax
push eax
call fcn.00451376
mov esi, eax
mov dword [ebp - 0x110], esi
pop ecx
test esi, esi
je 0x470eec
call fcn.004544b9
test al, al
je 0x470f65
pop esi
push ebx
pop edi
push esi
pop edx
pop ecx
pop ebp
push eax
push ebx
pop ecx
pop ecx
pop edx
pop edx
pop esp
push ebx
push ebx
push esp
pop eax
pop ebp
push esi
pop eax
pop edx
pop edi
push eax
pop ebx
push ebp
push eax
pop esi
push eax
mov ebx, dword [ebp - 0x114]
xor edi, edi
mov esi, dword [ebp - 0x110]
push esi
push dword [ebp - 0x118]
push edi
push dword [ebp - 0x10c]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x470f88
push esi
call fcn.0045137f
pop ecx
jmp 0x470eec
call fcn.00454588
test al, al
je 0x470fb0
pop esp
pop edx
push ecx
push esi
pop edx
pop ebx
pop edi
push esi
pop ebp
pop ecx
pop esp
push eax
pop ebp
pop edx
push ebp
pop ecx
push ebx
pop esi
pop eax
pop edx
push ebx
push esi
pop ecx
push ebp
push ebx
pop ebp
pop ecx
push edx
push edx
pop edi
push eax
call fcn.0045469c
test al, al
je 0x470fd6
pop ebx
push ecx
push ebp
pop edi
push edx
pop ecx
push esp
pop ebx
pop ecx
pop edi
push ebx
push ebx
push esp
pop edi
pop edx
push ebx
push ebx
pop edi
pop eax
pop ebp
pop esi
pop edi
pop ebx
push esp
pop ebp
pop eax
pop esi
pop edi
pop ecx
mov esi, dword [ebp - 0x110]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x5e283c
push esi
call sub.VERSION.dll_VerQueryValueW
push esi
test eax, eax
jne 0x471005
call fcn.0045137f
pop ecx
jmp 0x471159
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx + 8]
mov edx, eax
movzx eax, ax
mov dword [ebp - 0x110], eax
movzx eax, word [ecx + 0xe]
shr edx, 0x10
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x118], eax
call fcn.0045137f
pop ecx
call fcn.00454588
test al, al
je 0x47104d
pop edx
pop edi
push edx
pop ebx
pop ebp
pop edx
push esp
pop edx
push esp
push ebp
pop ebp
pop edi
push eax
push esp
push esp
push ebx
pop edi
pop edi
call fcn.004547b0
test al, al
je 0x471071
push edi
push edi
push eax
push edi
pop ecx
push ebp
push esp
pop ebp
push ebp
push ebp
pop edi
pop ebp
push ebp
pop esp
pop ecx
push esp
push eax
pop esp
push esi
pop esp
push ebp
push esi
push eax
push edi
pop edx
push edx
push esp
call fcn.00454612
test al, al
je 0x47108c
pop edi
push edi
push ebx
push edx
pop esi
pop edi
push ebx
pop ebx
push esp
push eax
pop eax
push ebx
pop esi
push ebx
push ebx
push esp
pop ecx
pop ebx
push dword [ebp - 0x118]
lea eax, [ebp - 0xd8]
push 1
push dword [ebp - 0x110]
push dword [ebp - 0x10c]
push 0x5eaeac
push eax
call fcn.00407930
add esp, 0x18
cmp word [ebp - 0xd8], 0
jne 0x4710c2
xor eax, eax
jmp 0x4710cf
lea eax, [ebp - 0xd8]
push eax
call fcn.0048cd3b
pop ecx
push eax
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00403000
call fcn.004543ea
test al, al
je 0x47110a
push ebx
push ecx
pop edx
pop ecx
pop edx
push eax
pop ecx
push edi
push ebx
push edx
push edx
push edi
pop esi
pop ebx
push esp
push esi
push eax
pop edi
pop eax
push esp
push edx
pop edi
pop esi
push ebp
pop eax
pop edx
pop esi
push ebx
push ebp
pop ebp
push esi
call fcn.00454726
test al, al
je 0x471131
pop esi
pop ebp
pop ebx
pop ecx
push ecx
push ebp
pop eax
push esi
pop ecx
pop eax
pop edx
push ebp
pop eax
push esp
pop esi
pop esi
push edi
pop ecx
pop ebx
push eax
push esi
pop edi
pop ecx
push ecx
pop eax
push esi
push ebp
pop eax
push edi
pop ecx
call fcn.00454909
test al, al
je 0x471159
push esp
pop eax
push ecx
pop edi
push ecx
pop ecx
pop eax
push esp
pop ecx
pop edi
pop edi
push ebx
pop ecx
pop edx
pop ecx
push eax
pop esp
pop eax
push edx
pop ecx
pop eax
pop ebx
pop eax
pop ecx
pop edx
push ebp
push ecx
pop eax
push edi
push esp
pop edx
mov ecx, dword [ebp - 0x114]
lea eax, [ebp - 0xf0]
push eax
call fcn.00456158
push 0
push 1
lea ecx, [ebp - 0xf0]
call fcn.0041e4c0
push 0
push 1
lea ecx, [ebp - 0x108]
call fcn.0041e4c0
mov eax, dword [ebp - 0x114]
call fcn.005d25ec
ret