Function at 0x471440
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4a68e0
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
push 0x50
push str.file_version_info_win.cc
push str.CreateFileVersionInfoWin
push eax
call fcn.004716a0
add esp, 0x10
cmp dword [edi + 0x14], 7
jbe 0x471490
mov edi, dword [edi]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4714e1
mov esi, eax
test eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
js 0x4715fe
cmp esi, 0x1000
jb 0x4714ec
lea eax, [esi + 0x23]
push eax
call fcn.005d0220
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4714f5
mov dword [ebx], 0
jmp 0x4715eb
push esi
call fcn.005d0220
add esp, 4
mov ebx, esi
mov dword [ebp - 0x34], eax
add ebx, eax
mov dword [ebp - 0x2c], ebx
push esi
push 0
push eax
call fcn.0061e8c0
add esp, 0xc
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
push ecx
push esi
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x47159e
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], edx
push eax
push ecx
push str.VarFileInfoTranslation
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47159e
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x47159e
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
push 0x1c
call fcn.005d0220
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
movzx esi, word [ecx + 2]
movzx edx, word [ecx]
mov dword [ebp - 0x10], 2
mov ecx, eax
push esi
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.004716d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
mov dword [ebx], eax
test edx, edx
jne 0x4715ae
jmp 0x4715eb
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov dword [ebx], 0
test edx, edx
je 0x4715eb
mov eax, dword [ebp - 0x2c]
sub eax, edx
cmp eax, 0x1000
jb 0x4715cc
mov ecx, dword [edx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x471603
add eax, 0x23
mov edx, ecx
push eax
push edx
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005e99f0
mov dword [ebp - 0x10], 0
call fcn.006207e0
nop
push ebp
sub esp, 0x10
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x47166b
mov eax, dword [ebp - 0x2c]
sub eax, ecx
cmp eax, 0x1000
jb 0x47164c
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x471670
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
add esp, 0x10
pop ebp
ret
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x10
add ebp, 0xc
push dword [ebp - 0x20]
call fcn.005d31ac
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
add esp, 0x10
pop ebp
ret