Function at 0x48bec0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50661e
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x54c2c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1b8], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
cmp edi, ebx
jne 0x48bf3a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48bf33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x48c10e
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e0918
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x48bf78
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x48bf27
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.004e5590
mov ecx, dword [ebp + 8]
add esp, 0xc
push esi
push edi
push ebx
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
cmp eax, ebx
je 0x48bf0d
mov edx, dword [0x54bf18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54bf18
call eax
add eax, 0x10
mov dword [ebp - 0x1a4], eax
lea ecx, [ebp - 0x1a8]
push ecx
lea edx, [ebp - 0x1bc]
push edx
push str.VarFileInfoTranslation
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x1a8], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
xor edi, edi
test dword [ebp - 0x1a8], 0xfffffffc
jbe 0x48c0a4
lea ebx, [ebx]
mov eax, dword [ebp - 0x1bc]
movzx ecx, word [eax + edi*4 + 2]
movzx edx, word [eax + edi*4]
push ecx
push edx
lea eax, [ebp - 0x1a0]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x1b4]
push ecx
lea edx, [ebp - 0x1b0]
push edx
lea eax, [ebp - 0x1a0]
push eax
push esi
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x1b4], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
lea ecx, [ebp - 0x1ac]
push ecx
mov ecx, dword [ebp - 0x1b0]
call fcn.00459410
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x1a4]
call fcn.0045ae80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1ac]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48c090
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1a8]
inc edi
shr ecx, 2
xor ebx, ebx
cmp edi, ecx
jb 0x48bff0
mov edi, dword [ebp - 0x1b8]
lea eax, [ebp - 0x1a4]
call fcn.0045c590
push esi
call fcn.004e0f21
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48c0e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c109
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0a00
mov esp, ebp
pop ebp
ret 8