Function at 0x465860
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x5faa38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
xor edi, edi
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x465b37
push esi
call fcn.005d1ef5
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [esp + 0x38], ebx
je 0x465b37
push esi
push edi
push ebx
call fcn.005da970
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ebx
push esi
push edi
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x465b2e
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push str.VarFileInfoTranslation
push ebx
mov dword [esp + 0x30], edi
call sub.VERSION.dll_VerQueryValueW
xor esi, esi
test dword [esp + 0x20], 0xfffffffc
mov dword [esp + 0x14], edi
jbe 0x465b2e
jmp 0x465912
xor edi, edi
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
push str.StringFileInfo_04x_04xOriginalFilename
lea edi, [esp + 0x40]
call fcn.0040ac80
mov edx, dword [esp + 0x40]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
push eax
mov eax, edi
call fcn.004037a0
mov ecx, dword [edi]
test ecx, ecx
jne 0x465980
xor eax, eax
jmp 0x46599a
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x465985
sub eax, ebx
sar eax, 1
js 0x465b59
cmp eax, dword [ecx - 8]
jg 0x465b59
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
mov word [ecx + eax*2], 0
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + esi*4 + 2]
movzx eax, word [eax + esi*4]
push edx
push eax
push str.StringFileInfo_04x_04xFileDescription
lea edi, [esp + 0x40]
call fcn.0040ac80
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
push eax
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push ecx
mov eax, ebp
call fcn.004037a0
mov ecx, dword [ebp]
test ecx, ecx
jne 0x465a02
xor eax, eax
jmp 0x465a1c
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x465a07
sub eax, ebx
sar eax, 1
js 0x465b59
cmp eax, dword [ecx - 8]
jg 0x465b59
mov dword [ecx - 0xc], eax
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jne 0x465b06
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
push str.StringFileInfo_04x_04xProductName
lea edi, [esp + 0x40]
call fcn.0040ac80
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push eax
mov eax, ebp
call fcn.004037a0
mov ecx, dword [ebp]
test ecx, ecx
jne 0x465a92
xor eax, eax
jmp 0x465aac
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x465a97
sub eax, ebx
sar eax, 1
js 0x465b59
cmp eax, dword [ecx - 8]
jg 0x465b59
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp]
mov word [ecx + eax*2], 0
mov edx, dword [ebp]
mov dword [esp + 0x2c], 0xffffffff
cmp dword [edx - 0xc], 0
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
jne 0x465b4d
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465aee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
add esi, 1
shr ecx, 2
cmp esi, ecx
jb 0x465910
jmp 0x465b2e
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x465b2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x38]
push ebx
call fcn.005d28c2
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x465b1e
push 0x80070057
call fcn.00403650
int3