Function at 0x5bf460
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66835e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x28], ebx
jb 0x5bf493
mov eax, dword [edi]
jmp 0x5bf495
mov eax, edi
lea ecx, [ebp - 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x5bf4b8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea edx, [ebp + 0xb]
push edx
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0041b710
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 8
jb 0x5bf4de
mov eax, dword [edi]
jmp 0x5bf4e0
mov eax, edi
mov edi, dword [ebp - 0x20]
push edi
push esi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x5bf50b
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x5bf504
push edi
call fcn.0060faf6
add esp, 4
xor al, al
jmp 0x5bfc0a
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
push str.VarFileInfoTranslation
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5bf4f0
mov eax, dword [ebp - 0x24]
shr eax, 2
xor esi, esi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jle 0x5bfbf4
lea edx, [ebp - 0x4ec]
push edx
call fcn.005b7840
add esp, 4
mov dword [ebp + 8], eax
lea ecx, [ecx]
lea ecx, [ebp - 0x2ec]
call fcn.005beef0
mov byte [ebp - 4], 1
push 0x1fc
lea ecx, [ebp - 0x4ea]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x4ec], ax
call fcn.006100a0
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push edx
movzx edx, word [ecx + esi*4]
lea eax, [ebp - 0x4ec]
push eax
push edx
call sub.KERNEL32.dll_VerLanguageNameW
lea eax, [ebp - 0x4ec]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5bf5a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x4ec]
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00407940
mov eax, dword [ebp - 0x10]
mov cx, word [eax + esi*4]
mov word [ebp - 0x2ec], cx
mov dx, word [eax + esi*4 + 2]
push 8
xor eax, eax
push str.Comments
lea ecx, [ebp - 0x17c]
mov word [ebp - 0x2ea], dx
mov dword [ebp - 0x168], 7
mov dword [ebp - 0x16c], ebx
mov word [ebp - 0x17c], ax
call fcn.00407940
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2cc]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0x17c]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0x168], 8
jb 0x5bf64c
mov eax, dword [ebp - 0x17c]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xb
mov word [ebp - 0x17c], cx
xor edx, edx
push str.CompanyName
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
call fcn.00407940
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2b0]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0x80]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], 8
jb 0x5bf6bd
mov eax, dword [ebp - 0x80]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xf
mov word [ebp - 0x80], cx
xor edx, edx
push str.FileDescription
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ebx
mov word [ebp - 0x128], dx
call fcn.00407940
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x294]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0x128]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0x114], 8
jb 0x5bf73a
mov eax, dword [ebp - 0x128]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xb
mov word [ebp - 0x128], cx
xor edx, edx
push str.FileVersion
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
call fcn.00407940
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x278]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0xb8]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0xa4], 8
jb 0x5bf7c0
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xc
mov word [ebp - 0xb8], cx
xor edx, edx
push str.InternalName
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.00407940
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x25c]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0x48]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 8
jb 0x5bf831
mov eax, dword [ebp - 0x48]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xe
mov word [ebp - 0x48], cx
xor edx, edx
push str.LegalCopyright
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], dx
call fcn.00407940
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x240]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0xf0]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0xdc], 8
jb 0x5bf8ae
mov eax, dword [ebp - 0xf0]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xf
mov word [ebp - 0xf0], cx
xor edx, edx
push str.LegalTrademarks
lea ecx, [ebp - 0x160]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], ebx
mov word [ebp - 0x160], dx
call fcn.00407940
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x224]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0x160]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14c], 8
jb 0x5bf934
mov eax, dword [ebp - 0x160]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0x10
mov word [ebp - 0x160], cx
xor edx, edx
push str.OriginalFilename
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
call fcn.00407940
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x208]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0x64]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], 8
jb 0x5bf9a5
mov eax, dword [ebp - 0x64]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xc
mov word [ebp - 0x64], cx
xor edx, edx
push str.PrivateBuild
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
call fcn.00407940
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1ec]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0x9c]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0x88], 8
jb 0x5bfa22
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xb
mov word [ebp - 0x9c], cx
xor edx, edx
push str.ProductName
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], dx
call fcn.00407940
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1d0]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0xd4]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0xc0], 8
jb 0x5bfaa8
mov eax, dword [ebp - 0xd4]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xe
mov word [ebp - 0xd4], cx
xor edx, edx
push str.ProductVersion
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xfc], ebx
mov word [ebp - 0x10c], dx
call fcn.00407940
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1b4]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0x10c]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0xf8], 8
jb 0x5bfb2e
mov eax, dword [ebp - 0x10c]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xc
mov word [ebp - 0x10c], cx
xor edx, edx
push str.SpecialBuild
lea ecx, [ebp - 0x144]
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], ebx
mov word [ebp - 0x144], dx
call fcn.00407940
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x198]
push ecx
movzx ecx, word [eax + esi*4 + 2]
lea edx, [ebp - 0x144]
push edx
movzx edx, word [eax + esi*4]
push ecx
push edx
push edi
call fcn.005bf030
add esp, 0x14
mov byte [ebp - 4], 1
cmp dword [ebp - 0x130], 8
jb 0x5bfbb4
mov eax, dword [ebp - 0x144]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
lea edx, [ebp - 0x2ec]
mov word [ebp - 0x144], cx
mov ecx, dword [ebp + 0xc]
push edx
mov dword [ebp - 0x130], 7
mov dword [ebp - 0x134], ebx
call fcn.005bf3d0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2ec]
call fcn.0041b130
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x5bf550
mov dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x5bfc08
push edi
call fcn.0060faf6
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret