Function at 0x48ba00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505c3e
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x54b2c0]
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 0x48ba7a
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 0x48ba73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x48bc4e
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dff58
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x48bab8
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 0x48ba67
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.004e4be0
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 0x48ba4d
mov edx, dword [0x54af18]
mov eax, dword [edx + 0xc]
mov ecx, 0x54af18
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 0x48bbe4
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.00459530
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.0045af80
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 0x48bbd0
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 0x48bb30
mov edi, dword [ebp - 0x1b8]
lea eax, [ebp - 0x1a4]
call fcn.0045ca50
push esi
call fcn.004e0561
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 0x48bc23
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 0x48bc49
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.004e0040
mov esp, ebp
pop ebp
ret 8