Function at 0x1002471e
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x2204]
mov eax, 0x2204
call fcn.10034030
push 0xffffffffffffffff
push 0x1003e897
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x1004e060]
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 edi, ecx
push ebx
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0x18], edi
mov esi, edx
mov byte [ebp], bl
call fcn.1002aad0
add esp, 0xc
lea eax, [ebp]
push eax
push 0x2000
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x100247af
mov eax, 0x10043a90
mov ecx, edi
call fcn.10001aa0
mov eax, edi
jmp 0x1002496e
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 0x1002483e
test dword [ebp - 0x14], 0xfffffffc
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
jbe 0x1002483e
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 0x100248ac
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x1c]
shr eax, 2
cmp dword [ebp - 0x1c], eax
jb 0x100247e4
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 0x1002495e
cmp dword [ebp - 0x14], ebx
je 0x10024919
push dword [ebp - 0x14]
lea eax, [ebp - 0x48]
push dword [ebp - 0x20]
call fcn.1001910d
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 8
jmp 0x10024934
xor edi, edi
inc edi
cmp dword [ebp - 0x14], ebx
je 0x100248ce
push dword [ebp - 0x14]
lea eax, [ebp - 0x80]
push dword [ebp - 0x24]
call fcn.1001910d
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 2
jmp 0x100248e8
mov eax, 0x10043a90
lea ecx, [ebp - 0x9c]
call fcn.10001aa0
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 4
mov esi, dword [ebp - 0x18]
push eax
call fcn.10001ae0
or dword [ebp - 0x10], edi
test byte [ebp - 0x10], 4
je 0x10024909
and dword [ebp - 0x10], 0xfffffffb
lea esi, [ebp - 0x9c]
call fcn.10001b10
test byte [ebp - 0x10], 2
je 0x1002496b
lea esi, [ebp - 0x80]
call fcn.10001b10
jmp 0x1002496b
mov eax, 0x10043a90
lea ecx, [ebp - 0x64]
call fcn.10001aa0
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 0x10
mov esi, dword [ebp - 0x18]
push eax
call fcn.10001ae0
or dword [ebp - 0x10], 1
test byte [ebp - 0x10], 0x10
je 0x10024953
and dword [ebp - 0x10], 0xffffffef
lea esi, [ebp - 0x64]
call fcn.10001b10
test byte [ebp - 0x10], 8
je 0x1002496b
lea esi, [ebp - 0x48]
jmp 0x10024912
mov ecx, dword [ebp - 0x18]
mov eax, 0x10043a90
call fcn.10001aa0
mov eax, dword [ebp - 0x18]
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.100283ef
add ebp, 0x2204
leave
ret