Function at 0x586140
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b007a
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x614040]
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 0x5861c0
push 0
push 0x5e7af0
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 0x5861b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x5865d7
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.00589f40
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x830]
push esi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x5863dc
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x58631a
push str.SHCreateItemFromParsingName
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x58631a
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x820], 0
push ecx
push 0x5e5808
push 0
push dword [ebp + 8]
call eax
test eax, eax
je 0x58628a
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 0x58626e
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 0x5861af
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 0x5862ce
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 0x5865d7
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 0x5863c1
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 0x586247
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 0x5863a9
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 0x586547
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 1
jmp 0x586594
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 0x586411
mov byte [ebp - 0x825], al
lea eax, [ebp - 0x825]
push 0x6098cc
push eax
call fcn.0052d791
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 0x844]
call fcn.0040bbf0
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 0x58644f
mov byte [ebp - 0x826], al
lea eax, [ebp - 0x826]
push 0x6098cc
push eax
call fcn.0052d791
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.0052d120
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 0x5864bd
mov byte [ebp - 0x827], al
lea eax, [ebp - 0x827]
push 0x6098cc
push eax
call fcn.0052d791
mov ecx, dword [ebp - 0x820]
push 0x5eacc4
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.00529ebd
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 0x58652c
mov byte [ebp - 0x828], al
lea eax, [ebp - 0x828]
push 0x6098cc
push eax
call fcn.0052d791
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 0x586594
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 0x5865b1
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 0x5865d2
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.00527e2c
mov esp, ebp
pop ebp
ret