Function at 0x40f3d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463126
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x4920c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40f405
sub edx, ecx
sar edx, 1
je 0x40f479
lea eax, [ebp - 0x378]
push eax
push esi
mov dword [ebp - 0x37c], 0
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40f479
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [ebp - 0xe0]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40f479
push ebx
call fcn.00451565
mov edi, eax
add esp, 4
test edi, edi
je 0x40f479
push edi
push ebx
push dword [ebp - 0xe0]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40f497
push edi
call fcn.0045152d
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044fdac
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x124]
call fcn.0040a170
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x38c]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
push 0x46b810
push edi
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call esi
test eax, eax
je 0x40f51f
mov ecx, dword [ebp - 0x38c]
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x124], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x120], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x11c], eax
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x118], eax
push 1
push 0
sub esp, 0x2c
lea eax, [ebp - 0x124]
mov ecx, esp
push eax
call fcn.0040f750
mov edx, 0x3d
lea ecx, [edx - 0x3c]
call fcn.0040e0d0
add esp, 0x34
test eax, eax
setg bl
xor eax, eax
mov dword [ebp - 0x384], 0
mov dword [ebp - 0x388], 0
mov dword [ebp - 0xe4], 7
mov dword [ebp - 0xe8], 0
mov word [ebp - 0xf8], ax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x380]
push eax
push str.VarFileInfoTranslation
push edi
mov byte [ebp - 4], 1
call esi
test eax, eax
je 0x40f69e
mov eax, dword [ebp - 0xdc]
cdq
and edx, 3
add eax, edx
sar eax, 2
xor esi, esi
test eax, eax
jle 0x40f69e
jmp 0x40f5c0
mov eax, dword [ebp - 0x380]
lea ecx, [eax + esi*4]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0xd8]
push 0x46d488
push eax
call fcn.004097a0
add esp, 0x10
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0xd8]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40f69e
push dword [ebp - 0x388]
lea ecx, [ebp - 0x3a4]
push dword [ebp - 0x384]
call fcn.0044d180
push eax
lea ecx, [ebp - 0xf8]
call fcn.00408ec0
lea ecx, [ebp - 0x3a4]
call fcn.00401f20
push ecx
push 0x46d4d4
lea ecx, [ebp - 0xf8]
call fcn.00408f50
cmp eax, 0xffffffff
jne 0x40f709
push ecx
push str.Professional
lea ecx, [ebp - 0xf8]
call fcn.00408f50
cmp eax, 0xffffffff
jne 0x40f702
test bl, bl
je 0x40f686
push ecx
push str.Tool
lea ecx, [ebp - 0xf8]
call fcn.00408f50
cmp eax, 0xffffffff
jne 0x40f6fb
mov eax, dword [ebp - 0xdc]
cdq
and edx, 3
add eax, edx
inc esi
sar eax, 2
cmp esi, eax
jl 0x40f5c0
xor ebx, ebx
push edi
call fcn.0045152d
add esp, 4
cmp dword [ebp - 0xe4], 8
jb 0x40f6c0
push dword [ebp - 0xf8]
call fcn.00450920
add esp, 4
xor eax, eax
cmp dword [ebp - 0x100], 8
mov dword [ebp - 0xe4], 7
mov dword [ebp - 0xe8], 0
mov word [ebp - 0xf8], ax
jb 0x40f6f4
push dword [ebp - 0x114]
call fcn.00450920
add esp, 4
mov eax, ebx
jmp 0x40f47b
mov ebx, 1
jmp 0x40f6a0
mov ebx, 2
jmp 0x40f70e
mov ebx, 3
push 0
push 0
sub esp, 0x2c
lea eax, [ebp - 0x124]
mov ecx, esp
push eax
call fcn.0040f750
mov edx, 0x3f
lea ecx, [edx - 0x3e]
call fcn.0040e0d0
add esp, 0x34
mov ecx, 4
test eax, eax
cmovns ebx, ecx
jmp 0x40f6a0