Function at 0x461779
Capabilities:
Get file version info

Disassembly:
mov eax, 0x6b42dc
call fcn.0066bd6c
sub esp, 0x68
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
inc ebx
call fcn.0045f5f5
test al, al
je 0x4619e4
cmp dword [edi + 0x14], 8
mov eax, edi
push 2
pop ebx
jb 0x4617a9
mov eax, dword [edi]
lea ecx, [ebp - 0x38]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
xor edx, edx
or eax, edx
mov dword [ebp + 8], ecx
je 0x4619e4
push esi
push 3
pop ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.004604d7
xor ecx, ecx
mov esi, dword [eax]
mov dword [eax], ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x1c], ecx
je 0x4617ea
push dword [ebp - 0x1c]
call fcn.0066bdae
pop ecx
test esi, esi
je 0x4619e3
cmp dword [edi + 0x14], 8
jb 0x4617fa
mov edi, dword [edi]
push esi
push dword [ebp + 8]
push dword [ebp - 0x38]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4619d8
push 2
xor eax, eax
pop ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
mov edi, dword [ebp - 0x20]
shr edi, 2
test eax, eax
je 0x4619d8
xor eax, eax
mov dword [ebp - 0x18], eax
test edi, edi
je 0x4619d8
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cdq
idiv dword [ebp - 0x34]
test eax, eax
je 0x4619c2
xor edx, edx
mov eax, edx
mov dword [ebp + 8], eax
add eax, ecx
cmp dword [eax + 0x14], 8
jb 0x461879
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
push eax
movzx eax, word [ecx + edx*4 + 2]
push eax
movzx eax, word [ecx + edx*4]
push eax
lea eax, [ebp - 0x74]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.004646d1
add esp, 0x14
xor ecx, ecx
mov dword [ebp - 0x48], 7
xor eax, eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x4c], ecx
mov word [ebp - 0x5c], ax
cmp dword [ebp - 0x60], 8
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], ecx
jb 0x4618c7
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46192e
cmp dword [ebp - 0x10], 0
je 0x46192e
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x28]
call fcn.00427638
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x46192a
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
jb 0x461901
mov ecx, dword [ebp - 0x5c]
xor edx, edx
cmp word [ecx + eax*2 - 2], dx
jne 0x46192a
lea ecx, [eax - 1]
cmp eax, ecx
jb 0x4619f6
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], ecx
jb 0x461924
mov eax, dword [ebp - 0x5c]
xor edx, edx
mov word [eax + ecx*2], dx
xor eax, eax
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004603da
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x461982
mov ecx, dword [ebp - 0x5c]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
cmp eax, 0x1000
jb 0x461979
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0042741e
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ecx
xor eax, eax
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x74]
mov word [ebp - 0x5c], ax
call fcn.0042756c
push 0x18
pop eax
add dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
inc dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
cdq
idiv dword [ebp - 0x34]
cmp dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
jb 0x46186f
test ebx, ebx
je 0x4619d8
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, edi
jge 0x4619d8
xor eax, eax
jmp 0x46184f
test esi, esi
je 0x4619e3
push esi
call fcn.0066bdae
pop ecx
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
call fcn.0040f2d5
int3