Function at 0x48ebe0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5097fe
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x5512c0]
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 0x48ec5a
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 0x48ec53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x48ee2e
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e3d18
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x48ec98
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 0x48ec47
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.004e8ae0
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 0x48ec2d
mov edx, dword [0x550f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x550f18
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 0x48edc4
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.004594a0
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.0045b2d0
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 0x48edb0
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 0x48ed10
mov edi, dword [ebp - 0x1b8]
lea eax, [ebp - 0x1a4]
call fcn.0045c9e0
push esi
call fcn.004e4321
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 0x48ee03
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 0x48ee29
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.004e3e00
mov esp, ebp
pop ebp
ret 8