Function at 0x5acdb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d55e0
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x638fe4]
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 ebx, ecx
mov dword [ebp - 0x838], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x5ace5a
push 0
push 0x60ab98
call fcn.00403620
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x5ace53
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5ace4f
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5ace4f
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x5ad018
mov ecx, edx
call esi
xor eax, eax
jmp 0x5ad018
add eax, 0xfffffff0
push eax
call fcn.004035b0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x82c], eax
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.005b0f40
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x82c]
push esi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x5ad034
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x5acf6e
push str.SHCreateItemFromParsingName
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5acf6e
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x820], 0
push ecx
push 0x604240
push 0
push dword [ebp + 8]
call eax
test eax, eax
je 0x5acf02
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x82c]
call fcn.00402b90
lea ecx, [ebp + 8]
call fcn.00402b90
xor eax, eax
jmp 0x5ad018
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
jne 0x5acee1
push dword [ebp - 0x824]
lea ecx, [ebp - 0x830]
call fcn.00403280
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00403220
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 2
call fcn.00402b90
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]
jmp 0x5acff5
push esi
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov esi, eax
mov dword [ebp - 0x820], 0
lea eax, [ebp - 0x820]
push eax
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
jne 0x5acee1
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 - 0x830]
call fcn.00403280
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00403220
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 2
call fcn.00402b90
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.SHELL32.dll_ILFree]
test edi, edi
je 0x5ad000
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x82c]
call fcn.00402b90
lea ecx, [ebp + 8]
call fcn.00402b90
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.00544774
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], 0
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x5ad069
mov byte [ebp - 0x825], al
lea eax, [ebp - 0x825]
push 0x62e4c8
push eax
call fcn.005479aa
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x844]
call fcn.0040cdc0
mov byte [ebp - 4], 5
push dword [ebp - 0x844]
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x5ad0a7
mov byte [ebp - 0x826], al
lea eax, [ebp - 0x826]
push 0x62e4c8
push eax
call fcn.005479aa
push 0x800
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x824], 0
push 0
push eax
mov dword [ebp - 0x820], 0
call fcn.00547850
mov esi, 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 esi
test eax, eax
jne 0x5ad10d
mov byte [ebp - 0x827], al
lea eax, [ebp - 0x827]
push 0x62e4c8
push eax
call fcn.005479aa
mov ecx, dword [ebp - 0x820]
push 0x610184
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.004094f0
add esp, 0x18
mov dword [ebp - 0x830], 0
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x844]
call esi
test eax, eax
jne 0x5ad17c
mov byte [ebp - 0x828], al
lea eax, [ebp - 0x828]
push 0x62e4c8
push eax
call fcn.005479aa
push dword [ebp - 0x830]
mov ecx, ebx
call fcn.004031d0
lea ecx, [ebp - 0x844]
call fcn.00408c70
jmp 0x5ad000