Function at 0x588080
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b277b
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x616040]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x838], edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x588100
push 0
push 0x5e9af0
call fcn.004035a0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5880f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x588517
add eax, 0xfffffff0
push eax
call fcn.00403660
add eax, 0x10
add esp, 4
mov dword [ebp - 0x830], eax
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 1
call fcn.0058c290
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x830]
push esi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x58831c
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x58825a
push str.SHCreateItemFromParsingName
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x58825a
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x820], 0
push ecx
push 0x5e7808
push 0
push dword [ebp + 8]
call eax
test eax, eax
je 0x5881ca
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x5881ae
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jmp 0x5880ef
mov eax, dword [ebp - 0x820]
lea edx, [ebp - 0x824]
push edx
mov dword [ebp - 0x824], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x58820e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x830]
call fcn.00402b60
lea ecx, [ebp + 8]
call fcn.00402b60
xor eax, eax
jmp 0x588517
push dword [ebp - 0x824]
lea ecx, [ebp - 0x82c]
call fcn.00402f60
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004032d0
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 2
call fcn.00402b60
push dword [ebp - 0x824]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or edi, 0xffffffff
jmp 0x588301
push esi
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x834], eax
push ecx
push eax
push 0
push 0
mov dword [ebp - 0x820], 0
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
jne 0x588187
mov dword [ebp - 0x824], eax
lea edx, [ebp - 0x824]
mov eax, dword [ebp - 0x820]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push dword [ebp - 0x824]
lea ecx, [ebp - 0x82c]
call fcn.00402f60
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004032d0
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x82c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x5882e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x834]
call dword [sym.imp.SHELL32.dll_ILFree]
test ebx, ebx
je 0x588487
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 1
jmp 0x5884d4
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], 0
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x588351
mov byte [ebp - 0x825], al
lea eax, [ebp - 0x825]
push 0x60bb0c
push eax
call fcn.0052d7c1
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 0x844]
call fcn.0040bc20
mov byte [ebp - 4], 5
push dword [ebp - 0x844]
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x58838f
mov byte [ebp - 0x826], al
lea eax, [ebp - 0x826]
push 0x60bb0c
push eax
call fcn.0052d7c1
xor eax, eax
mov dword [ebp - 0x824], 0
push 0x7fe
push eax
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x81a]
push eax
mov dword [ebp - 0x820], 0
call fcn.0052d150
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x824]
add esp, 0xc
push eax
lea eax, [ebp - 0x820]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x844]
call ebx
test eax, eax
jne 0x5883fd
mov byte [ebp - 0x827], al
lea eax, [ebp - 0x827]
push 0x60bb0c
push eax
call fcn.0052d7c1
mov ecx, dword [ebp - 0x820]
push 0x5ecd64
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x81c]
push 0x400
push eax
call fcn.00529eed
add esp, 0x18
mov dword [ebp - 0x82c], 0
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x844]
call ebx
test eax, eax
jne 0x58846c
mov byte [ebp - 0x828], al
lea eax, [ebp - 0x828]
push 0x60bb0c
push eax
call fcn.0052d7c1
push dword [ebp - 0x82c]
mov ecx, edi
call fcn.00403020
lea ecx, [ebp - 0x844]
call fcn.004031b0
or edi, 0xffffffff
mov dword [ebp - 4], 1
jmp 0x5884d4
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5884f1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x588512
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 - 0x18]
xor ecx, ebp
call fcn.00527e5c
mov esp, ebp
pop ebp
ret