Function at 0x52eee0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5777c4
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x5d52e0]
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 dword [ebp - 0x834], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
jne 0x52ef73
push ebx
push 0x5a95c8
call fcn.00401900
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 0x52ef55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.004ff57c
mov esp, ebp
pop ebp
ret
add eax, 0xfffffff0
push eax
call fcn.00401a10
add eax, 0x10
add esp, 4
mov dword [ebp - 0x82c], eax
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.0052db30
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x82c]
push edi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x52f17a
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x52f0b6
push str.SHCreateItemFromParsingName
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x52f0b6
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x820]
push ecx
push 0x583e3c
push ebx
push edx
mov dword [ebp - 0x820], ebx
call eax
cmp eax, ebx
je 0x52f026
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52ef2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x52ef2f
mov eax, dword [ebp - 0x820]
lea edx, [ebp - 0x824]
push edx
mov dword [ebp - 0x824], ebx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, ebx
je 0x52f065
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x82c]
call fcn.00404b10
lea ecx, [ebp + 8]
call fcn.00404b10
jmp 0x52ef55
mov ecx, dword [ebp - 0x824]
push ecx
lea ecx, [ebp - 0x830]
call fcn.00401210
mov ecx, dword [ebp - 0x834]
push eax
mov byte [ebp - 4], 3
call fcn.004015b0
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 2
call fcn.00404b10
mov edx, dword [ebp - 0x824]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x820]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x52f15f
push edi
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
mov ebx, eax
lea eax, [ebp - 0x820]
push eax
push ebx
push 0
push 0
mov dword [ebp - 0x820], 0
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
jne 0x52eff6
mov dword [ebp - 0x824], eax
mov eax, dword [ebp - 0x820]
mov ecx, dword [eax]
lea edx, [ebp - 0x824]
push edx
push 0
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [ebp - 0x824]
push ecx
lea ecx, [ebp - 0x830]
call fcn.00401210
mov ecx, dword [ebp - 0x834]
push eax
mov byte [ebp - 4], 4
call fcn.004015b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x830]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52f148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x820]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ebx
call dword [sym.imp.SHELL32.dll_ILFree]
xor ebx, ebx
cmp esi, ebx
je 0x52f2e6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 1
jmp 0x52f351
lea ecx, [ebp - 0x838]
push ecx
push edi
mov dword [ebp - 0x838], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x52f1ab
push 0x5c781c
lea edx, [ebp - 0x826]
push edx
mov byte [ebp - 0x826], al
call fcn.005039bf
lea edi, [ebx + 2]
lea esi, [ebp - 0x848]
call fcn.0040bae0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x848]
mov ecx, dword [ebp - 0x82c]
push eax
push ebx
xor edi, edi
push edi
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x52f1f0
push 0x5c781c
lea edx, [ebp - 0x828]
push edx
mov byte [ebp - 0x828], al
call fcn.005039bf
push 0x7fe
lea ecx, [ebp - 0x81a]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x824], edi
mov dword [ebp - 0x820], edi
mov word [ebp - 0x81c], ax
call fcn.00503ac0
mov ecx, dword [ebp - 0x848]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
add esp, 0xc
lea edx, [ebp - 0x824]
push edx
lea eax, [ebp - 0x820]
push eax
push str.VarFileInfoTranslation
push ecx
call esi
test eax, eax
jne 0x52f257
push 0x5c781c
lea edx, [ebp - 0x827]
push edx
mov byte [ebp - 0x827], al
call fcn.005039bf
mov eax, dword [ebp - 0x820]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push 0x5ac7e4
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x81c]
push 0x400
push eax
call fcn.00500a88
add esp, 0x18
lea ecx, [ebp - 0x824]
push ecx
mov ecx, dword [ebp - 0x848]
lea edx, [ebp - 0x830]
push edx
lea eax, [ebp - 0x81c]
push eax
push ecx
mov dword [ebp - 0x830], edi
call esi
test eax, eax
jne 0x52f2c3
push 0x5c781c
lea edx, [ebp - 0x825]
push edx
mov byte [ebp - 0x825], al
call fcn.005039bf
mov eax, dword [ebp - 0x830]
mov ecx, dword [ebp - 0x834]
push eax
call fcn.004012d0
lea esi, [ebp - 0x848]
call fcn.004091f0
mov edi, dword [ebp - 0x82c]
mov dword [ebp - 4], 1
jmp 0x52f351
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52f371
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 0x52f397
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x52ef57