Function at 0x5891c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0352
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x614040]
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 ebx, ecx
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0
push eax
push dword [ebx]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x589226
mov byte [ebp - 0x811], al
lea eax, [ebp - 0x811]
push 0x6098cc
push eax
call fcn.0052d791
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x840]
call fcn.0040bbf0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x840]
push edi
push esi
push 0
push dword [ebx]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x589269
mov byte [ebp - 0x811], al
lea eax, [ebp - 0x811]
push 0x6098cc
push eax
call fcn.0052d791
xor eax, eax
mov dword [ebp - 0x824], 0
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x820], 0
call fcn.0052d120
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 edi
call esi
test eax, eax
jne 0x5892d2
mov byte [ebp - 0x811], al
lea eax, [ebp - 0x811]
push 0x6098cc
push eax
call fcn.0052d791
mov ecx, dword [ebp - 0x820]
push 0x5eb0e0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00529ebd
add esp, 0x18
mov dword [ebp - 0x828], 0
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
call esi
test eax, eax
jne 0x58933c
mov byte [ebp - 0x811], al
lea eax, [ebp - 0x811]
push 0x6098cc
push eax
call fcn.0052d791
push dword [ebp - 0x828]
lea ecx, [ebp - 0x818]
xor ebx, ebx
xor edi, edi
call fcn.00402f60
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x830], edi
call fcn.00402b30
mov byte [ebp - 4], 2
jmp 0x589370
lea eax, [ebp - 0x830]
push eax
push 0x5eb110
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x818]
call fcn.0040ba80
push eax
lea ecx, [ebp - 0x81c]
mov byte [ebp - 4], 3
call fcn.004032d0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x834]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5893c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x81c]
push 0xa
push 0
push esi
call fcn.00529bcc
mov ecx, 3
movzx eax, al
sub ecx, edi
add esp, 0xc
shl ecx, 3
inc edi
shl eax, cl
or ebx, eax
cmp dword [esi - 0xc], 0
jne 0x589370
cmp edi, 3
jl 0x589370
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x589416
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edi, dword [ebp - 0x818]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x589437
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x840]
call fcn.004031b0
mov eax, ebx
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.00527e2c
mov esp, ebp
pop ebp
ret