Function at 0x40f063
Capabilities:
Get file version info

Disassembly:
push ebx
push edi
mov edx, 0x10
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40f06a
call fcn.0042bdd0
push dword [esp + 0x58]
call fcn.00416410
mov edx, dword [esp + 0x4c]
lea ecx, [esp]
call fcn.00416060
mov word [esp + 8], pe_nt_image_headers32
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
movsx eax, word [esp + 0x10]
push eax
call fcn.004295b0
lea eax, [esp + 0x28]
push eax
call fcn.0042bc30
mov edx, 0x42f02e
lea ecx, [esp + 0x34]
call fcn.00416068
push dword [esp]
call fcn.00423524
push edx
push eax
pop ebx
pop edi
cmp edi, 0
jg 0x40f0f7
jl 0x40f0f3
cmp ebx, 0
ja 0x40f0f7
xor eax, eax
jmp 0x40f0fc
mov eax, 1
or eax, eax
je 0x40f4b4
lea eax, [esp + 4]
push eax
push dword [esp + 4]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov word [esp + 0xc], ax
movsx ebx, word [esp + 0xc]
and ebx, ebx
jle 0x40f4b4
movsx eax, word [esp + 0xc]
push eax
call fcn.0042ae70
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x40f4b4
push dword [esp + 0x1c]
movsx eax, word [esp + 0x10]
push eax
push 0
push dword [esp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
je 0x40f4ab
mov edx, str.VarFileInfoTranslation
lea ecx, [esp + 0x20]
call fcn.00416068
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
call sub.VERSION.dll_VerQueryValueW
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
je 0x40f255
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f17a
push eax
push 4
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, dword [esp + 0x2c]
call fcn.004163d0
cdq
push edx
push eax
call fcn.00429840
call fcn.004163f2
add dword [esp], edx
call fcn.004298c0
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov eax, 0x42f17a
push eax
push 4
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
mov ebx, dword [esp + 0x30]
add ebx, 2
mov eax, ebx
call fcn.004163d0
cdq
push edx
push eax
call fcn.00429840
call fcn.004163f2
add dword [esp], edx
call fcn.004298c0
pop eax
lea eax, [esp + 0x3c]
push eax
call fcn.0042bc30
movsx eax, word [esp + 8]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
call fcn.004163d0
push eax
call sub.KERNEL32.dll_VerLanguageNameW
mov dword [esp + 0x2c], 1
mov byte [esp + 0x28], 1
jmp 0x40f264
mov eax, 0xc
cmp al, byte [esp + 0x28]
jl 0x40f3de
mov ebx, dword [esp + 0x2c]
and ebx, dword [esp + 0x50]
and ebx, ebx
je 0x40f3ca
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0x30]
call fcn.00404e30
lea eax, [esp + 0x34]
push eax
call fcn.0042bc30
push edx
call fcn.0042bbf0
pop edx
push eax
mov edx, str.StringFileInfo_
push edx
call fcn.0042bcc0
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042bcc0
mov edx, 0x42fc22
push edx
call fcn.0042bcc0
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bcc0
lea eax, [esp + 0x24]
push eax
call fcn.0042bc30
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
call sub.VERSION.dll_VerQueryValueW
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x3c], 0
je 0x40f3ca
push dword [esp + 0x34]
mov edx, 0x42f02e
pop ecx
call fcn.00416430
jne 0x40f338
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
mov edx, 0x42f04a
push edx
call fcn.0042bcc0
lea eax, [esp + 0x38]
push eax
call fcn.0042bc30
cmp dword [esp + 0x54], 0
je 0x40f390
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bcc0
mov edx, 0x431844
push edx
call fcn.0042bcc0
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0042ad80
pop eax
lea eax, [esp + 0x38]
push eax
call fcn.0042bc30
jmp 0x40f3ca
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0042ad80
pop eax
lea eax, [esp + 0x38]
push eax
call fcn.0042bc30
mov ebx, dword [esp + 0x2c]
shl ebx, 1
mov dword [esp + 0x2c], ebx
inc byte [esp + 0x28]
jno 0x40f264
mov ebx, dword [esp + 0x2c]
and ebx, dword [esp + 0x50]
and ebx, ebx
je 0x40f4ab
push dword [esp + 0x34]
mov edx, 0x42f02e
pop ecx
call fcn.00416430
jne 0x40f426
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
mov edx, 0x42f04a
push edx
call fcn.0042bcc0
lea eax, [esp + 0x38]
push eax
call fcn.0042bc30
cmp dword [esp + 0x54], 0
je 0x40f485
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0x30]
call fcn.00404e30
lea eax, [esp + 0x34]
push eax
call fcn.0042bc30
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bcc0
mov edx, 0x431844
push edx
call fcn.0042bcc0
mov edx, dword [esp + 0x28]
push edx
call fcn.0042bcc0
lea eax, [esp + 0x38]
push eax
call fcn.0042bc30
jmp 0x40f4ab
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
mov edx, dword [esp + 0x28]
push edx
call fcn.0042bcc0
lea eax, [esp + 0x38]
push eax
call fcn.0042bc30
push dword [esp + 0x1c]
call fcn.0042ae90
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bbf0
pop edx
push eax
push edx
call fcn.0042bcc0
pop eax
push eax
call fcn.004163e0
pop edx
add eax, edx
jmp 0x40f4dc
push dword [esp + 0x30]
call fcn.0042be60
push dword [esp]
call fcn.0042be60
push dword [esp + 0x38]
call fcn.0042be60
push dword [esp + 0x34]
call fcn.0042be60
push dword [esp + 0x24]
call fcn.0042be60
push dword [esp + 0x20]
call fcn.0042be60
add esp, 0x40
pop edi
pop ebx
ret 0xc