Function at 0x845360
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x845368
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
lea esi, [ebp - 0x14]
xor eax, eax
push ebp
push 0x84575c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.0040aa50
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x8453a7
call fcn.00431f1c
mov eax, dword [ebp - 0xc]
call fcn.00406f10
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x845732
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, edi
call fcn.0040aa50
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
jne 0x8453e0
call fcn.00431f1c
lea eax, [ebp - 0xc]
push eax
push esi
push 0x84576c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
jne 0x8453fc
call fcn.00431f1c
lea eax, [ebp - 4]
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, 0x8457ac
call fcn.0042a628
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x8457fc
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x28]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x845467
mov eax, ebx
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x845824
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x2c]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x8454a6
lea eax, [ebx + 4]
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x845854
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x30]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x8454e5
lea eax, [ebx + 8]
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x84587c
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x34]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x845524
lea eax, [ebx + 0xc]
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x8458a4
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x38]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x845563
lea eax, [ebx + 0x10]
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x8458d0
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x3c]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x8455a2
lea eax, [ebx + 0x14]
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x845900
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x40]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x8455e1
lea eax, [ebx + 0x18]
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x845930
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x44]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x845620
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x845958
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x48]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x84565f
lea eax, [ebx + 0x20]
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x845984
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x4c]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x84569e
lea eax, [ebx + 0x24]
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x8459a4
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x50]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x8456dd
lea eax, [ebx + 0x28]
mov edx, dword [esi]
call fcn.0040aab4
lea eax, [ebp - 0xc]
push eax
push esi
push 0x8457cc
push dword [ebp - 4]
push 0x8459cc
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.0040ad40
mov eax, dword [ebp - 0x54]
call fcn.0040aa50
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x84571c
lea eax, [ebx + 0x2c]
mov edx, dword [esi]
call fcn.0040aab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x845739
mov eax, dword [ebp - 0x10]
call fcn.00406f2c
ret