Function at 0x40f610
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x41b250]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xc
lea eax, [ebp - 0x9c]
push eax
push 0x4216a0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
ja 0x40f671
jmp 0x40f939
mov ecx, dword [ebp - 0xac]
add ecx, 1
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
je 0x40f69f
cmp dword [ebp - 4], 0
jne 0x40f6a4
jmp 0x40f939
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xac]
push ecx
push 0
push 0x4216a0
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40f6c4
jmp 0x40f939
mov edx, 0x409
mov word [ebp - 0xb0], dx
mov eax, 0x4e4
mov word [ebp - 0xae], ax
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x10]
push edx
push str.VarFileInfoTranslation
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f70d
cmp dword [ebp - 0xa0], 4
jb 0x40f70d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0xb0], edx
push 0x41b224
movzx eax, word [ebp - 0xae]
push eax
movzx ecx, word [ebp - 0xb0]
push ecx
push str.StringFileInfo_04x_04x_s
lea edx, [ebp - 0x98]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [ebp - 0xa0], 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40f768
jmp 0x40f939
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0xa4]
ja 0x40f77b
jmp 0x40f939
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx]
cmp eax, 0x76
je 0x40f79b
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx]
cmp edx, 0x56
jne 0x40f932
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x69
je 0x40f7bd
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 1]
cmp eax, 0x49
jne 0x40f932
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 2]
cmp edx, 0x72
je 0x40f7df
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 2]
cmp ecx, 0x52
jne 0x40f932
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 3]
cmp eax, 0x74
je 0x40f801
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 3]
cmp edx, 0x54
jne 0x40f932
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 4]
cmp ecx, 0x75
je 0x40f823
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 4]
cmp eax, 0x55
jne 0x40f932
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 5]
cmp edx, 0x61
je 0x40f845
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 5]
cmp ecx, 0x41
jne 0x40f932
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 6]
cmp eax, 0x6c
je 0x40f867
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 6]
cmp edx, 0x4c
jne 0x40f932
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 7]
cmp ecx, 0x61
je 0x40f889
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 7]
cmp eax, 0x41
jne 0x40f932
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 8]
cmp edx, 0x6c
je 0x40f8ab
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 8]
cmp ecx, 0x4c
jne 0x40f932
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 9]
cmp eax, 0x6c
je 0x40f8c9
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 9]
cmp edx, 0x4c
jne 0x40f932
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 0xa]
cmp ecx, 0x6f
je 0x40f8e7
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 0xa]
cmp eax, 0x4f
jne 0x40f932
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 0xb]
cmp edx, 0x63
je 0x40f905
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 0xb]
cmp ecx, 0x43
jne 0x40f932
mov edx, dword [ebp - 0xa8]
add edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.0040f960
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 8], 1
jmp 0x40f939
cmp dword [ebp - 0xc], 0
je 0x40f949
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fa05
mov esp, ebp
pop ebp
ret