Function at 0x1007b99
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov esi, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x1007bcf
push 0x1002954
push dword [esi + 0x108]
call fcn.010076a1
pop ecx
pop ecx
jmp 0x1007f8a
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0xc], ebx
jne 0x1007c03
push 0x1002954
push dword [esi + 0x108]
call fcn.010076a1
pop ecx
pop ecx
jmp 0x1007f88
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1007f6a
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x1002938
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1007f6a
mov eax, dword [ebp - 4]
test eax, eax
je 0x1007f6a
mov eax, dword [eax]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, eax
movzx eax, ax
shr ecx, 0x10
push ecx
push eax
lea eax, [ebp - 0xc44]
push 0x100291c
push eax
call edi
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0x834]
push 0x1002908
push eax
call edi
add esp, 0x1c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x834]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 8], 0
mov ebx, 0x1002900
je 0x1007cef
push dword [ebp - 4]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1007cef
mov ecx, dword [esi + 0x108]
lea eax, [ebp - 0x424]
push eax
call fcn.01007670
lea eax, [ebp - 0x424]
push eax
push 0x10028fc
push dword [esi + 0x108]
call fcn.010076a1
add esp, 0xc
jmp 0x1007cfd
push ebx
push dword [esi + 0x108]
call fcn.010076a1
pop ecx
pop ecx
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0x834]
push 0x10028ec
push eax
call edi
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 8], 0
je 0x1007d81
push dword [ebp - 4]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1007d81
mov ecx, dword [esi + 0x108]
lea eax, [ebp - 0x424]
push eax
call fcn.01007670
lea eax, [ebp - 0x424]
push eax
push 0x10028fc
push dword [esi + 0x108]
call fcn.010076a1
add esp, 0xc
jmp 0x1007d8f
push ebx
push dword [esi + 0x108]
call fcn.010076a1
pop ecx
pop ecx
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0x834]
push 0x10028dc
push eax
call edi
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 8], 0
je 0x1007e13
push dword [ebp - 4]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1007e13
mov ecx, dword [esi + 0x108]
lea eax, [ebp - 0x424]
push eax
call fcn.01007670
lea eax, [ebp - 0x424]
push eax
push 0x10028fc
push dword [esi + 0x108]
call fcn.010076a1
add esp, 0xc
jmp 0x1007e21
push ebx
push dword [esi + 0x108]
call fcn.010076a1
pop ecx
pop ecx
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0x834]
push 0x10028c8
push eax
call edi
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 8], 0
je 0x1007eab
push dword [ebp - 4]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x424]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007e6f
sub eax, edx
mov dword [ebp + 8], eax
je 0x1007eab
mov ecx, dword [esi + 0x108]
lea eax, [ebp - 0x424]
push eax
call fcn.01007670
lea eax, [ebp - 0x424]
push eax
push 0x10028fc
push dword [esi + 0x108]
call fcn.010076a1
add esp, 0xc
jmp 0x1007eb9
push ebx
push dword [esi + 0x108]
call fcn.010076a1
pop ecx
pop ecx
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0x834]
push 0x10028b8
push eax
call edi
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 8], 0
je 0x1007f3d
push dword [ebp - 4]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1007f3d
mov ecx, dword [esi + 0x108]
lea eax, [ebp - 0x424]
push eax
call fcn.01007670
lea eax, [ebp - 0x424]
push eax
push 0x10028fc
push dword [esi + 0x108]
call fcn.010076a1
add esp, 0xc
jmp 0x1007f4b
push ebx
push dword [esi + 0x108]
call fcn.010076a1
pop ecx
pop ecx
push 0x10028b4
push dword [esi + 0x108]
call fcn.010076a1
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jmp 0x1007f81
push 0x1002954
push dword [esi + 0x108]
call fcn.010076a1
pop ecx
pop ecx
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
xor eax, eax
inc eax
pop esi
leave
ret 4