Function at 0x46028c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x460294
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
lea esi, [ebp - 0x10]
xor eax, eax
push ebp
push 0x460688
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.004049fc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4602d3
call fcn.0040d408
mov eax, dword [ebp - 8]
call fcn.00402a40
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46065e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, edi
call fcn.004049fc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x46030c
call fcn.0040d408
lea eax, [ebp - 8]
push eax
push esi
push 0x460698
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x460328
call fcn.0040d408
lea eax, [ebp - 0x14]
push eax
mov edi, dword [esi]
movzx eax, word [edi]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
movzx eax, word [edi + 2]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x4606bc
call fcn.00409464
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x4606ec
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x28]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x460393
mov eax, ebx
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x460704
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x2c]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4603d2
lea eax, [ebx + 4]
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x460720
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x30]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x460411
lea eax, [ebx + 8]
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x460738
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x34]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x460450
lea eax, [ebx + 0xc]
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x460750
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x38]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46048f
lea eax, [ebx + 0x10]
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x460768
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x3c]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4604ce
lea eax, [ebx + 0x14]
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x460784
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x40]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46050d
lea eax, [ebx + 0x18]
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x4607a0
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x44]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46054c
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x4607b8
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x48]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46058b
lea eax, [ebx + 0x20]
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x4607d0
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x4c]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4605ca
lea eax, [ebx + 0x24]
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x4607e4
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x50]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x460609
lea eax, [ebx + 0x28]
mov edx, dword [esi]
call fcn.00404734
lea eax, [ebp - 8]
push eax
push esi
push 0x4606d0
push dword [ebp - 0x14]
push 0x4607fc
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.004048bc
mov eax, dword [ebp - 0x54]
call fcn.004049fc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x460648
lea eax, [ebx + 0x2c]
mov edx, dword [esi]
call fcn.00404734
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460665
mov eax, dword [ebp - 0xc]
call fcn.00402a70
ret