Function at 0x41ed6d
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x2204]
mov eax, 0x2204
call fcn.0042f9e0
push 0xffffffffffffffff
push 0x43d525
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x44d060]
xor eax, ebp
mov dword [ebp + 0x2200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x220c]
xor ebx, ebx
push 0x1fff
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 1]
mov esi, ecx
push ebx
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0x18], esi
mov edi, edx
mov byte [ebp], bl
call fcn.00426910
add esp, 0xc
lea eax, [ebp]
push eax
push 0x2000
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41efac
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
lea eax, [ebp]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueW
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
test eax, eax
je 0x41ee7e
test dword [ebp - 0x14], 0xfffffffc
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
jbe 0x41ee7e
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x2c]
shl eax, 2
movzx ecx, word [eax + esi + 2]
movzx eax, word [eax + esi]
push ecx
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp + 0x2000]
push 0x80
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x2000]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x41eeec
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x1c]
shr eax, 2
cmp dword [ebp - 0x1c], eax
jb 0x41ee24
push dword [ebp - 0x2c]
lea eax, [ebp + 0x2100]
push 0x40904b0
push str.StringFileInfo_08x_s
push 0x80
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x2100]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41efa9
cmp dword [ebp - 0x14], ebx
je 0x41ef60
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
call fcn.0040bfcc
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 8
jmp 0x41ef7b
xor edi, edi
inc edi
cmp dword [ebp - 0x14], ebx
je 0x41ef0e
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x80]
call fcn.0040bfcc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 2
jmp 0x41ef28
push 0x442b64
lea esi, [ebp - 0x9c]
call fcn.004021d2
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 4
mov esi, dword [ebp - 0x18]
push eax
call fcn.004021f2
or dword [ebp - 0x10], edi
test byte [ebp - 0x10], 4
je 0x41ef4b
and dword [ebp - 0x10], 0xfffffffb
push ebx
push edi
lea esi, [ebp - 0x9c]
call fcn.004026fe
test byte [ebp - 0x10], 2
je 0x41ef5b
lea esi, [ebp - 0x80]
push ebx
push edi
call fcn.004026fe
mov eax, dword [ebp - 0x18]
jmp 0x41efb8
push 0x442b64
lea esi, [ebp - 0x64]
call fcn.004021d2
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 0x10
mov esi, dword [ebp - 0x18]
push eax
call fcn.004021f2
xor edi, edi
inc edi
or dword [ebp - 0x10], edi
test byte [ebp - 0x10], 0x10
je 0x41ef9e
and dword [ebp - 0x10], 0xffffffef
push ebx
push edi
lea esi, [ebp - 0x64]
call fcn.004026fe
test byte [ebp - 0x10], 8
je 0x41ef5b
lea esi, [ebp - 0x48]
jmp 0x41ef54
mov esi, dword [ebp - 0x18]
push 0x442b64
call fcn.004021d2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2200]
xor ecx, ebp
call fcn.004241ea
add ebp, 0x2204
leave
ret