Function at 0x48eb62
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x554912
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x5f7350]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push esi
push edi
mov eax, dword [0x5f7350]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [edi + 0x10]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
cmp dword [eax + 0x14], 8
mov dword [esp + 0x3c], eax
mov dword [eax + 0x10], esi
jb 0x48ebc4
mov eax, dword [eax]
xor ecx, ecx
lea ebx, [esp + 0x24]
mov word [eax], cx
call fcn.0048ea99
mov ecx, dword [eax]
mov dword [edi + 0x30], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0x34], eax
lea eax, [esp + 0x1c]
push eax
push fcn.0048eb62
push 6
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x48ebfe
xor al, al
jmp 0x48edbd
xor eax, eax
push 0x206
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push esi
push eax
call fcn.00517e90
add esp, 0xc
push 0x104
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x48ebf7
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
cmp ebx, esi
je 0x48ebf7
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov esi, ebx
lea eax, [esp + 0x24]
call fcn.0043df7a
xor esi, esi
mov dword [esp + 0x468], esi
push dword [esp + 0x24]
lea eax, [esp + 0x50]
push ebx
push esi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x48ec98
cmp dword [esp + 0x24], esi
je 0x48ebf7
push dword [esp + 0x24]
call fcn.00515a19
pop ecx
jmp 0x48ebf7
push 4
pop ebx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x24]
push eax
push 0x584ab8
push dword [esp + 0x30]
mov dword [esp + 0x30], esi
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
mov dword [esp + 0x48], ebx
call esi
test eax, eax
jne 0x48ecc8
cmp dword [esp + 0x24], eax
jmp 0x48ec83
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + 0xa]
mov dword [edi], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [edi + 4], edx
movzx edx, word [eax + 0xe]
mov dword [edi + 8], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov dword [edi + 0xc], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x2c]
push str.VarFileInfoTranslation
push ebx
call esi
test eax, eax
jne 0x48ed1a
test ebx, ebx
je 0x48ebf7
push ebx
jmp 0x48ec8d
xor eax, eax
push 0x1fe
mov word [esp + 0x258], ax
xor edi, edi
lea eax, [esp + 0x25a]
push edi
push eax
call fcn.00517e90
add esp, 0xc
test dword [esp + 0x14], 0xfffffffc
jbe 0x48edb0
mov eax, dword [esp + 0x48]
lea eax, [eax + edi*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [esp + 0x25c]
push str.StringFileInfo_04x_04xFileDescription
push eax
call fcn.0048ee0d
and dword [esp + 0x54], 0
and dword [esp + 0x28], 0
add esp, 0x10
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x25c]
push eax
push ebx
call esi
test eax, eax
je 0x48ed95
cmp dword [esp + 0x18], 0
jne 0x48eda3
mov eax, dword [esp + 0x14]
inc edi
shr eax, 2
cmp edi, eax
jb 0x48ed46
jmp 0x48edb0
push dword [esp + 0x18]
push dword [esp + 0x40]
call fcn.0040411c
test ebx, ebx
je 0x48edbb
push ebx
call fcn.00515a19
pop ecx
mov al, 1
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0051497f
mov esp, ebp
pop ebp
ret