Function at 0x40f0cf
Capabilities:
Get file version info

Disassembly:
push ebx
push edi
mov edx, 0x10
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40f0d6
call fcn.0042bdd0
push dword [esp + 0x58]
call fcn.00416420
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 0x40f163
jl 0x40f15f
cmp ebx, 0
ja 0x40f163
xor eax, eax
jmp 0x40f168
mov eax, 1
or eax, eax
je 0x40f520
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 0x40f520
movsx eax, word [esp + 0xc]
push eax
call fcn.0042ae70
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x40f520
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 0x40f517
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 0x40f2c1
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.004163e0
cdq
push edx
push eax
call fcn.00429840
call fcn.00416402
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.004163e0
cdq
push edx
push eax
call fcn.00429840
call fcn.00416402
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.004163e0
push eax
call sub.KERNEL32.dll_VerLanguageNameW
mov dword [esp + 0x2c], 1
mov byte [esp + 0x28], 1
jmp 0x40f2d0
mov eax, 0xc
cmp al, byte [esp + 0x28]
jl 0x40f44a
mov ebx, dword [esp + 0x2c]
and ebx, dword [esp + 0x50]
and ebx, ebx
je 0x40f436
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0x30]
call fcn.00404e40
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 0x40f436
push dword [esp + 0x34]
mov edx, 0x42f02e
pop ecx
call fcn.00416440
jne 0x40f3a4
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 0x40f3fc
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, 0x43186e
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 0x40f436
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 0x40f2d0
mov ebx, dword [esp + 0x2c]
and ebx, dword [esp + 0x50]
and ebx, ebx
je 0x40f517
push dword [esp + 0x34]
mov edx, 0x42f02e
pop ecx
call fcn.00416440
jne 0x40f492
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 0x40f4f1
push edx
call fcn.0042bbf0
pop edx
push eax
push dword [esp + 0x30]
call fcn.00404e40
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, 0x43186e
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 0x40f517
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.004163f0
pop edx
add eax, edx
jmp 0x40f548
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