Function at 0x46a320
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x59f168
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
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 0x46a5f7
push esi
call fcn.0057740a
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [esp + 0x38], ebx
je 0x46a5f7
push esi
push edi
push ebx
call fcn.00580260
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 0x46a5ee
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 0x46a5ee
jmp 0x46a3d2
xor edi, edi
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
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.004126f0
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.00404050
mov ecx, dword [edi]
test ecx, ecx
jne 0x46a440
xor eax, eax
jmp 0x46a45a
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46a445
sub eax, ebx
sar eax, 1
js 0x46a619
cmp eax, dword [ecx - 8]
jg 0x46a619
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.004126f0
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.00404050
mov ecx, dword [ebp]
test ecx, ecx
jne 0x46a4c2
xor eax, eax
jmp 0x46a4dc
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46a4c7
sub eax, ebx
sar eax, 1
js 0x46a619
cmp eax, dword [ecx - 8]
jg 0x46a619
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 0x46a5c6
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.004126f0
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.00404050
mov ecx, dword [ebp]
test ecx, ecx
jne 0x46a552
xor eax, eax
jmp 0x46a56c
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46a557
sub eax, ebx
sar eax, 1
js 0x46a619
cmp eax, dword [ecx - 8]
jg 0x46a619
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 0x46a60d
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a5ae
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 0x46a3d0
jmp 0x46a5ee
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 0x46a5ea
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.0057832c
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 0x46a5de
push 0x80070057
call fcn.00404550
int3