Function at 0x4069fa
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x97c
push ebx
push esi
push edi
lea eax, [ebp - 0x78]
xor ebx, ebx
push str.Unknown
push eax
mov dword [ebp - 0x10], ebx
call fcn.0040b4f0
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
je 0x406a2e
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x10]
call fcn.0040b4f0
pop ecx
pop ecx
cmp dword [ebp + 0x18], ebx
je 0x406a41
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x18]
call fcn.0040b4f0
pop ecx
pop ecx
cmp dword [ebp + 0x1c], ebx
je 0x406a54
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x1c]
call fcn.0040b4f0
pop ecx
pop ecx
cmp dword [ebp + 0x20], ebx
je 0x406a67
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x20]
call fcn.0040b4f0
pop ecx
pop ecx
cmp dword [ebp + 0x24], ebx
je 0x406a7a
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x24]
call fcn.0040b4f0
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
mov esi, 0x104
je 0x406a96
mov edi, 0x103
lea eax, [ebp - 0x17c]
push edi
push eax
push dword [ebp + 8]
jmp 0x406ad8
push esi
lea eax, [ebp - 0x17c]
push ebx
push eax
call fcn.0040b6c0
add esp, 0xc
cmp dword [ebp + 0xc], ebx
je 0x406aca
lea eax, [ebp - 0x10]
mov edi, 0x103
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
jmp 0x406ade
mov edi, 0x103
lea eax, [ebp - 0x17c]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x406b1c
lea eax, [ebp - 0x17c]
push eax
call fcn.0040b470
test eax, eax
pop ecx
je 0x406b10
lea eax, [ebp - 0x17c]
push edi
push eax
push ebx
call fcn.0040bac0
add esp, 0xc
and byte [ebx + 0x103], 0
jmp 0x406b1c
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.0040b4f0
pop ecx
pop ecx
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x17c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x406e8d
push ebx
call fcn.0040b718
test eax, eax
pop ecx
mov dword [ebp + 8], eax
je 0x406e8d
push eax
push ebx
lea eax, [ebp - 0x17c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x97c]
push str.StringFileInfo_04x_04xProductName
push eax
call fcn.0040bf0d
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x97c]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406e84
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x406bed
push esi
push 0
push ebx
call fcn.0040b6c0
push dword [ebp - 4]
call fcn.0040b470
add esp, 0x10
cmp eax, esi
jb 0x406be2
push edi
push dword [ebp - 4]
push ebx
call fcn.0040bac0
add esp, 0xc
jmp 0x406bed
push dword [ebp - 4]
push ebx
call fcn.0040b4f0
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x97c]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.0040bf0d
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x97c]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406e84
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x406c65
push esi
push 0
push ebx
call fcn.0040b6c0
push dword [ebp - 4]
call fcn.0040b470
add esp, 0x10
cmp eax, esi
jb 0x406c5a
push edi
push dword [ebp - 4]
push ebx
call fcn.0040bac0
add esp, 0xc
jmp 0x406c65
push dword [ebp - 4]
push ebx
call fcn.0040b4f0
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x97c]
push str.StringFileInfo_04x_04xFileDescription
push eax
call fcn.0040bf0d
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x97c]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406e84
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x406cdd
push esi
push 0
push ebx
call fcn.0040b6c0
push dword [ebp - 4]
call fcn.0040b470
add esp, 0x10
cmp eax, esi
jb 0x406cd2
push edi
push dword [ebp - 4]
push ebx
call fcn.0040bac0
add esp, 0xc
jmp 0x406cdd
push dword [ebp - 4]
push ebx
call fcn.0040b4f0
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x97c]
push str.StringFileInfo_04x_04xLegalCopyright
push eax
call fcn.0040bf0d
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x97c]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406e84
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x406d55
push esi
push 0
push ebx
call fcn.0040b6c0
push dword [ebp - 4]
call fcn.0040b470
add esp, 0x10
cmp eax, esi
jb 0x406d4a
push edi
push dword [ebp - 4]
push ebx
call fcn.0040bac0
add esp, 0xc
jmp 0x406d55
push dword [ebp - 4]
push ebx
call fcn.0040b4f0
pop ecx
pop ecx
cmp dword [ebp + 0x10], 0
je 0x406e84
lea eax, [ebp - 8]
and dword [ebp + 0x1c], 0
push eax
lea eax, [ebp + 0x1c]
push eax
push 0x4142b4
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406e84
mov eax, dword [ebp + 0x1c]
push 0xa
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
lea eax, [ebp - 0x97c]
push eax
mov eax, edi
shr eax, 0x10
push eax
call fcn.0040c0ca
lea eax, [ebp - 0x97c]
push eax
push dword [ebp + 0x10]
call fcn.0040b4f0
lea eax, [ebp - 0x97c]
push 0xa
push eax
movzx eax, di
push eax
call fcn.0040c0ca
add esp, 0x20
cmp di, 0xa
mov esi, 0x4142a4
jb 0x406dda
mov edi, dword [ebp + 0x10]
push esi
push edi
call fcn.0040b500
pop ecx
pop ecx
jmp 0x406dec
push 0x41510c
push dword [ebp + 0x10]
call fcn.0040b500
mov edi, dword [ebp + 0x10]
pop ecx
pop ecx
lea eax, [ebp - 0x97c]
push eax
push edi
call fcn.0040b500
pop ecx
test bx, bx
pop ecx
je 0x406e53
lea eax, [ebp - 0x97c]
push 0xa
push eax
mov eax, ebx
shr eax, 0x10
push eax
call fcn.0040c0ca
push esi
push edi
call fcn.0040b500
lea eax, [ebp - 0x97c]
push eax
push edi
call fcn.0040b500
lea eax, [ebp - 0x97c]
push 0xa
push eax
movzx eax, bx
push eax
call fcn.0040c0ca
push esi
push edi
call fcn.0040b500
lea eax, [ebp - 0x97c]
push eax
push edi
call fcn.0040b500
add esp, 0x38
jmp 0x406e84
shr ebx, 0x10
test bx, bx
je 0x406e84
lea eax, [ebp - 0x97c]
push 0xa
push eax
movzx eax, bx
push eax
call fcn.0040c0ca
push esi
push edi
call fcn.0040b500
lea eax, [ebp - 0x97c]
push eax
push edi
call fcn.0040b500
add esp, 0x1c
push dword [ebp + 8]
call fcn.0040b6ac
pop ecx
pop edi
pop esi
pop ebx
leave
ret