Function at 0x40f340
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x41a178]
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 0x4205c0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
ja 0x40f3a1
jmp 0x40f669
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 0x40f3cf
cmp dword [ebp - 4], 0
jne 0x40f3d4
jmp 0x40f669
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xac]
push ecx
push 0
push 0x4205c0
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40f3f4
jmp 0x40f669
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 0x40f43d
cmp dword [ebp - 0xa0], 4
jb 0x40f43d
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0xb0], edx
push 0x41a14c
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 0x40f498
jmp 0x40f669
mov ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp - 0xa4]
ja 0x40f4ab
jmp 0x40f669
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx]
cmp eax, 0x76
je 0x40f4cb
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx]
cmp edx, 0x56
jne 0x40f662
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x69
je 0x40f4ed
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 1]
cmp eax, 0x49
jne 0x40f662
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 2]
cmp edx, 0x72
je 0x40f50f
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 2]
cmp ecx, 0x52
jne 0x40f662
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 3]
cmp eax, 0x74
je 0x40f531
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 3]
cmp edx, 0x54
jne 0x40f662
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 4]
cmp ecx, 0x75
je 0x40f553
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 4]
cmp eax, 0x55
jne 0x40f662
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 5]
cmp edx, 0x61
je 0x40f575
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 5]
cmp ecx, 0x41
jne 0x40f662
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 6]
cmp eax, 0x6c
je 0x40f597
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 6]
cmp edx, 0x4c
jne 0x40f662
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 7]
cmp ecx, 0x61
je 0x40f5b9
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 7]
cmp eax, 0x41
jne 0x40f662
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 8]
cmp edx, 0x6c
je 0x40f5db
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 8]
cmp ecx, 0x4c
jne 0x40f662
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 9]
cmp eax, 0x6c
je 0x40f5f9
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 9]
cmp edx, 0x4c
jne 0x40f662
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 0xa]
cmp ecx, 0x6f
je 0x40f617
mov edx, dword [ebp - 0xa8]
movsx eax, byte [edx + 0xa]
cmp eax, 0x4f
jne 0x40f662
mov ecx, dword [ebp - 0xa8]
movsx edx, byte [ecx + 0xb]
cmp edx, 0x63
je 0x40f635
mov eax, dword [ebp - 0xa8]
movsx ecx, byte [eax + 0xb]
cmp ecx, 0x43
jne 0x40f662
mov edx, dword [ebp - 0xa8]
add edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
push eax
call fcn.0040f690
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 8], 1
jmp 0x40f669
cmp dword [ebp - 0xc], 0
je 0x40f679
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.0040f735
mov esp, ebp
pop ebp
ret